-
Notifications
You must be signed in to change notification settings - Fork 311
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
Make event data views more resilient of errors #2884
Comments
I have a WIP with that solution. What exactly makes you not sure about it? Just want to reassure before I continue working on this. |
I dont know how the final UI will look and Im not sure how helpful this
We still need an action that closes the stream because of connection issues or because the user left the view with the events component. It seems that Im missing something and if it is the case, please correct me. Looking forward to your solution |
Is this related to #2825? |
Sort of. If the console loses internet connection, it will eventually receive an It's still good to have this as a separate issue since the specifics for the event streams are a bit special. |
Sentry issue: TTI-CLOUD-HOSTED-26 |
Sentry issue: TTI-CLOUD-HOSTED-30 |
Summary
Our event views are currently crashing altogether when there is any kind of error related to the event stream. In many situations, errors are related to the parsing of one single event. In these situations we can safely keep the overall event stream running.
Why do we need this?
Unnecessary crashing of the entire event data view.
What is already there? What do you see now?
We already make use of error boundaries that should help catching errors that result from faulty handling of event data on the frontend side.
What is missing? What do you want to see?
Before #2883, the SDK event streams would escalate some errors far too much in a way that caused the entire stream to be closed when it would actually not be necessary. Respectively, the Console also treats any error coming from the SDK stream as fatal and closes the event stream.
We need to treat event errors as non-fatal, since they mostly relate to the parsing of one specific data chunk. A failure does not warrant closing the event stream completely.
Environment
v3.8.5
How do you propose to implement this?
My idea is
notify(listeners[EVENTS.ERROR], new Error('Dismissed unparseable message chunk'))
isSyntheticErrorEvent(event)
and<SyntheticErrorEvent />
GET_EVENT_MESSAGE_FAILURE
action type from the list of actions that close the event stream@bafonins please let me know if you approve of such a solution.
How do you propose to test this?
We still need some ideas about how to properly end-to-end test event data views in the Console. This has already bitten us too often.
Can you do this yourself and submit a Pull Request?
Yes.
The text was updated successfully, but these errors were encountered: