-
Notifications
You must be signed in to change notification settings - Fork 1
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
Collisions in updated_at
when POST
ing late_bytes
#86
Comments
updated_at
?updated_at
when POST
ing late_bytes
this is likely someone running tests against the system no? someone opening and closing sessions insanely fast? |
certainly not. It was just bash running a mainline build. The start and end times checked out, so I think |
For additional details see #87 |
stupid race conditions |
@Bash-09 I can implement a non breaking optional param on the API side that can accept session_id as an optional param in the body of this request so that we can lazily implement that on the client backend if we think its worth it. This will allow us to explicitly update the row in the database that we need to instead of looking for what we should be updating. This is just a little scary territory because we can't control what version of the backend the clients are actually using so need to allow both and eventually deprecate and return a response that says "update your damn client" or something |
This report comes from @Bash-09. The offending lines are these:
masterbase/masterbase/lib.py
Lines 535 to 545 in d4cd5d3
Clients periodically get a
500
during header overwrites because this query returns multiple results, causingone()
to throw an exception.The easy fix is to use
first()
here instead ofone()
; still, I think it merits an investigation into why multiple entries ofdemo_sessions
with identicalupdated_at
fields exist. More comprehensive changes to the database schema could also make it easier to disambiguate which session the requester last interacted with.The text was updated successfully, but these errors were encountered: