-
-
Notifications
You must be signed in to change notification settings - Fork 84
Handle only the relevant events to prevent continuous crash #336
Conversation
@grampelberg |
@alok87 it sounds like this doesn't fix it for you? Seems like a reasonable change either way. |
@alok87 please sign your commits so that I can merge this. |
@grampelberg There were 2 issues:
have pushed the signed commit |
@alok87 I'm trying to catch up here, so let me see if I'm understanding correctly. When we do an event request, and for some reason the cluster errors out, the returned event doesn't match type and the process fails. Is that right? If I'm understanding that correctly this change might "fix" it in that it doesn't crash in this case, but it also won't catch any errors. Let me think about this a little bit and see if we can handle it gracefully. |
@timfallmk out of the two issues i mentioned above
I will give the PR for catching the error and logging it. |
Got it @alok87 . I read it wrong. Looked like you weren't handling any errors from the events stream, but I see what's going on now. Merged and released in https://github.com/ksync/ksync/releases/tag/0.4.4 |
thanks @timfallmk |
What?
Typecast the event object only when the event is relevant.
Fixes #334