Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sink process abruptly terminates with an error #4

Open
let4be opened this issue Jan 23, 2023 · 4 comments
Open

Sink process abruptly terminates with an error #4

let4be opened this issue Jan 23, 2023 · 4 comments

Comments

@let4be
Copy link

let4be commented Jan 23, 2023

ERRO (sink-postgres) substreams encountered an error {"error": "receive stream next message: rpc error: code = Internal desc = subscription channel at max capacity"}
My substream is running in a development mode and can become throttled by an RPC(RPS limit) on dense blocks

Shouldn't this error be handled more gracefully?

@let4be
Copy link
Author

let4be commented Jan 23, 2023

Usually when channel buffer becomes full producer should back off, here it affects consumer's side which is ... unexpected

@maoueh
Copy link
Contributor

maoueh commented Jan 23, 2023

This is an issue within the Substreams server directly, seen by rpc error: code ... message which tells that the error is coming from the server. Seems like the server close the connection and reported this error.

It's more asubstreams issue than a substreams-sink-postgres issue.

@let4be
Copy link
Author

let4be commented Jan 23, 2023

We can move it, it's just originated when using substreams-sink-postgres
It also "could be probably" reported at substreams-sink, he-he

@maoueh
Copy link
Contributor

maoueh commented Jan 24, 2023

Definitely an error on substreams server, might be more visible when using a sink that is connected to a database. There is probably a wrong handling in substreams server when client don't consume message(s) fast enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants