[SERVER-53819] support retryable writes for time-series collection inserts Created: 14/Jan/21  Updated: 29/Oct/23  Resolved: 25/Jan/21

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Improvement Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2021-01-25
Participants:

 Description   

The existing logic for inserting measurements into time-series collections does not consider retryable writes that may result in a no-op in write_ops::performUpdates. This may throw off the bucket catalog's accounting for the element count in the data field.

==== OLD DESCRIPTION ====

Time-series tests are currently excluded from the retryable writes jscore passthrough suites using the does_not_support_causal_consistency test tag. It would be beneficial for test coverage to look into whether this restriction can be lifted.



 Comments   
Comment by Githook User [ 24/Jan/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-53819 re-enable timeseries tests in causal consistency suites

Adds tag for excluding tests from retryable passthrough.
Branch: master
https://github.com/mongodb/mongo/commit/27be7cc893de5b06aea8b8f7551ebf8dd6815921

Comment by Githook User [ 24/Jan/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-53819 provide each test case in timeseries_min_max.js with unique collection name

Supports dbhash background checking on system.views by ensuring each test case is represented
by a separate document in system.views.
Branch: master
https://github.com/mongodb/mongo/commit/a130ea2518e3a3161d6d3e1606140c2f30676c44

Comment by Githook User [ 23/Jan/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-53819 support retryable writes (batch size 1) for time-series collections
Branch: master
https://github.com/mongodb/mongo/commit/0a47b7e93b94f232857cffdc7c7a73f3f20774ef

Comment by Githook User [ 23/Jan/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-53819 move timeseries_collStats.js to noPassthrough

Creates collections that may block downgrades for other tests in noPassthroughWithMongod
that may share the same server process.
Branch: master
https://github.com/mongodb/mongo/commit/3c929aaf8a7d849b9f19a05252f36f0a999c17d0

Comment by Githook User [ 23/Jan/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-53819 add js test for retrying writes on time-series collections
Branch: master
https://github.com/mongodb/mongo/commit/a27a9c284f0f3bceee61f88bc5f1a5a94a665040

Generated at Thu Feb 08 05:31:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.