[SERVER-45112] Cluster createIndexes command should pass error labels to client. Created: 12/Dec/19  Updated: 29/Oct/23  Resolved: 16/Jan/20

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

Type: Task Priority: Major - P3
Reporter: Maria van Keulen Assignee: Maria van Keulen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2020-01-13, Execution Team 2020-01-27
Participants:

 Description   

SERVER-44997 blacklists createIndexes from running in a suite that performs multi document transactions and triggers retryable errors. These failures occurred because in order to retry an error caught inside a transaction in this suite, the TransientTransactionError label needs to be present.

mongos does not look at error labels when parsing command responses from shards for createIndexes.
As a result, the result that gets sent back to the client does not contain the requisite error label, even if the original shard response did.

The error labels should be propagated back to the client to allow retryability.

The work for this ticket should consider any potential Upgrade/Downgrade repercussions.



 Comments   
Comment by Githook User [ 16/Jan/20 ]

Author:

{'name': 'Maria van Keulen', 'username': 'mvankeulen94', 'email': 'maria.vankeulen@mongodb.com'}

Message: SERVER-45112 Report error labels for cluster create indexes responses
Branch: master
https://github.com/mongodb/mongo/commit/bb6e5391a9591139804038b3524a1b92ad1c327b

Comment by Maria van Keulen [ 10/Jan/20 ]

Per a discussion with jack.mulrow, the mongos disregards error labels when examining shard responses for createIndexes. I've updated the ticket description with a proposed solution.

Comment by Maria van Keulen [ 02/Jan/20 ]

The work for this ticket should include determining whether the tests blacklisted as part of SERVER-44997 can be un-blacklisted as of the changes in SERVER-45112.

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