This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 287
Peek throw com.google.gson.JsonSyntaxException #82
Comments
Defensive code here ! Not sexy But here is a sneak peak of how to get defensive about this :
|
Okay. Real life aka. Production shows that queue.remove() send a NoSuchElement exception in that case. |
@thedamfr Ah! I'm glad I'm not alone on this one. I encounter the same exact errors in production: I've seen the queue get stuck several times, and I've also seen the I was able to debug the queue one time when it was stuck. |
+1, happens with protocol buffers as well while peeking.
|
Are you peeking on a different thread than writing? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey !
Sometimes, in production, I will get something wrong and an object will be stuck. The Queue is going to throw a com.google.gson.JsonSyntaxException each time this object is
peek()
Do you have any idea why ?
For now, all I can do is ask the user to clear data cache, but some datas are lost each time.
Thanks !
The text was updated successfully, but these errors were encountered: