[SERVER-60960] Insert to a Time-Series getting error collection ErrorCodes::TimeseriesBucketCleared Created: 25/Oct/21  Updated: 25/Oct/21  Resolved: 25/Oct/21

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

Type: Bug Priority: Major - P3
Reporter: hung hoang Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: Bug
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-60959 Insert to a Time-Series getting error... Closed
Operating System: ALL
Steps To Reproduce:

Client side:

  • Using golang driver
  • Setup 6 concurrent connections to insert continuously to a Time-Series collections using InsertMany
  • Each batch contains about 100k documents

Server side:

  • Mongo version 5.0.3
  • Replica-set: 1 primary, 1 secondary
Participants:

 Description   

My service has 6 threads and concurrently write to a Time-Series collection using InsertMany. My mongo server is a replica set with one primary and one secondary. After few successful insertions, in the mongo db server log I'm getting this error then the server is shutdown. And I did use any transaction in my code.

{{

{"t":\{"$date":"2021-10-25T16:24:03.520+07:00"}

,"s":"F", "c":"-", "id":23081, "ctx":"conn66","msg":"Invariant failure","attr":{"expr":"batchStatus == ErrorCodes::TimeseriesBucketCleared || batchStatus.isA<ErrorCategory::Interruption>()","msg":"Unexpected error when aborting time-series batch: WriteConflict: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.","file":"src/mongo/db/timeseries/bucket_catalog.cpp","line":381}}}}

What is happening to my mongo server and how can I solve this? I try to google it but did have any luck.



 Comments   
Comment by Edwin Zhou [ 25/Oct/21 ]

Hi hunghoang@chotot.vn,

This ticket appears to have been accidentally created so I will close this as a duplicate of SERVER-60959.

Best,
Edwin

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