-
Notifications
You must be signed in to change notification settings - Fork 161
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
can't add a new key into hash during iteration #436
Comments
hmm thanks @gingerlime I haven't been able to reproduce yet... I am upgrading a bunch of apps in the next week so perhaps I will see it as the deployment expands. If you see it again let me know... Might need to dig a bit more into that bit in the view tracker |
Thanks @danmayer. It seemed to have happened in both our staging and live environment, but only once in each environment after we upgraded... So I'm not entirely sure how to reproduce it either... I can try to play with it a bit and maybe clear the data, but it might be more tricky and time-consuming if I have to downgrade/upgrade obviously... Hope you can spot something as well. |
OK, interesting the once per environment gives me at least a clue about it being a one time upgrade issue. |
yep seems very likely. maybe not worth worrying about then? but just thought better safe than sorry so I reported it :) |
Hi @danmayer. We just got this error again on deploy. I'm not entirely sure what changed in our code to have triggered it, but it now looks like it's not a completely one-off thing... |
OK, I will take a closer look and see if I can reproduce it tonight. Can you share your Rails, Ruby, and Redis version? |
Thank you! We're using Rails 6.1, Ruby 3.0.2 and Redis 5.x (redis-rb is 4.5.1) |
OK, pushed up what I think should be a fix. It still hasn't reproduced on any of our apps, but I am pretty sure I see where the thread race condition in our view tracker could occur. Try out this RC release and let me know if it solves the issue |
can’t repro reliably either but will give it a try :) thank you! |
We still see some errors on deploy on production (not every deploy, but some), and with the rc on staging, we don't see those errors... So it looks like a safe bet 👍 |
OK great, I released 5.2.1 to rubygems. If you see more let me know |
Describe the bug
We saw this error (albeit only once) after upgrading to the latest coverband
To Reproduce
Not sure unfortunately...
Here's part of the stack trace
Expected behavior
No error? :)
Screenshots
see above
Desktop (please complete the following information):
Additional context
It seemed to have happened shortly after deploying the latest version of coverband, but only to one user, and only once...
The text was updated successfully, but these errors were encountered: