[SERVER-21848] bulk write operations on config/admin triggers invariant failure Created: 10/Dec/15  Updated: 16/Nov/16  Resolved: 11/Dec/15

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.3.0
Fix Version/s: 3.2.1, 3.3.0

Type: Bug Priority: Major - P3
Reporter: Robert Guo (Inactive) Assignee: Kaloian Manassiev
Resolution: Done Votes: 0
Labels: code-and-test
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-21050 Add a failover workload to cause CSRS... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Sprint: Sharding E (01/08/16)
Participants:
Linked BF Score: 0

 Description   

The invariant was added to disallow bulk writes on the config server.

commit: https://github.com/mongodb/mongo/commit/cdace0a4071983173e45d4bc11057a70d235bf67#diff-9b1bfd6f7cc997c693ba9f833b6a0752R904

s20005| 2015-12-10T13:42:57.773-0500 I -        [conn2] Invariant failure batchRequest.sizeWriteOps() == 1 src/mongo/s/catalog/replset/catalog_manager_replica_set.cpp 904
s20005|  mongos(_ZN5mongo15invariantFailedEPKcS1_j+0x183) [0x108626c73]
s20005|  mongos(_ZN5mongo24CatalogManagerReplicaSet21_runBatchWriteCommandEPNS_16OperationContextERKNS_21BatchedCommandRequestEPNS_22BatchedCommandResponseERKNSt3__113unordered_setINS_10ErrorCodes5ErrorENS_13ShardRegistry14ErrorCodesHashENS8_8equal_toISB_EENS8_9allocatorISB_EEEE+0x196) [0x10837f5a6]
s20005|  mongos(_ZN5mongo24CatalogManagerReplicaSet23writeConfigServerDirectEPNS_16OperationContextERKNS_21BatchedCommandRequestEPNS_22BatchedCommandResponseE+0x34) [0x10837f404]
s20005|  mongos(_ZZN5mongo24ForwardingCatalogManager23writeConfigServerDirectEPNS_16OperationContextERKNS_21BatchedCommandRequestEPNS_22BatchedCommandResponseEENK4$_26clEv+0xBB) [0x1082fba9b]
s20005|  mongos(_ZN5mongo24ForwardingCatalogManager5retryIZNS0_23writeConfigServerDirectEPNS_16OperationContextERKNS_21BatchedCommandRequestEPNS_22BatchedCommandResponseEE4$_26EEDTclclsr3stdE7forwardIT_Efp0_EEES3_OSA_+0x59) [0x1082f7679]
s20005|  mongos(_ZN5mongo24ForwardingCatalogManager23writeConfigServerDirectEPNS_16OperationContextERKNS_21BatchedCommandRequestEPNS_22BatchedCommandResponseE+0x4B) [0x1082f760b]
s20005|  mongos(_ZN5mongo13ClusterWriter5writeEPNS_16OperationContextERKNS_21BatchedCommandRequestEPNS_22BatchedCommandResponseE+0x1155) [0x1084a2d65]
s20005|  mongos(_ZN5mongo12_GLOBAL__N_115ClusterWriteCmd3runEPNS_16OperationContextERKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERNS_7BSONObjEiRSA_RNS_14BSONObjBuilderE+0x24E) [0x10850231e]
s20005|  mongos(_ZN5mongo7Command22execCommandClientBasicEPNS_16OperationContextEPS0_RNS_11ClientBasicEiPKcRNS_7BSONObjERNS_14BSONObjBuilderE+0xAFE) [0x1085830be]
s20005|  mongos(_ZN5mongo7Command20runAgainstRegisteredEPNS_16OperationContextEPKcRNS_7BSONObjERNS_14BSONObjBuilderEi+0x3A4) [0x1085836c4]
s20005|  mongos(_ZN5mongo8Strategy15clientCommandOpEPNS_16OperationContextERNS_7RequestE+0x1067) [0x10859ff67]
s20005|  mongos(_ZN5mongo7Request7processEPNS_16OperationContextEi+0x58B) [0x10858190b]
s20005|  mongos(_ZN5mongo21ShardedMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortE+0x101) [0x1079dcc71]
s20005|  mongos(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x77D) [0x10867f22d]



 Comments   
Comment by Githook User [ 11/Dec/15 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: SERVER-21848 CSRS catalog manager should not allow batch writes greater than 1
Branch: v3.2
https://github.com/mongodb/mongo/commit/218539ae2c5699e95f543f8d247823570c0cb264

Comment by Githook User [ 11/Dec/15 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: SERVER-21848 CSRS catalog manager should not allow batch writes greater than 1
Branch: master
https://github.com/mongodb/mongo/commit/f28df29ac82f17778f46c010a311198bec28b9b7

Comment by Spencer Brody (Inactive) [ 10/Dec/15 ]

Confirmed. This is a regression that seems to have been just recently introduced by the commit that Robert linked, which is in master and was backported to the 3.2 branch. kaloian.manassiev, can we simply remove that invariant?

Generated at Thu Feb 08 03:58:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.