You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
C++/ulib-mongodb only making a single trip with its Update handler #2546
There are a couple issues with this implementation:
The Update test specifies that you need to make 2 trips: one to retrieve an object from a random ID and one to update it in the database. So far as I can tell, this test is doing all of that in a single request.
It doesn't account for cases where the database request fails. I came to this conclusion in my testing in Remove capitalized mongo tables #2545. Because we are setting id and rnum within the updateOneBulk function call, even if the call fails, the variables are still updated, so the World object is instantiated without a hitch. This is definitely problematic, as it means that Travis could receive 500 {id, randomNumber} pairs back and emit a PASS when no items have actually been retrieved or updated in the database.
Activity
code update + address issue #2546 (#2548)
code update + address issue TechEmpower#2546 (TechEmpower#2548)