Info
If a change steam is opened on a particular collection with showMigrationEvents:true and a resharding operation happens on another collection, the stream will erroneously report reshardBegin and reshardDoneCatchup events.
This issue does not appear to happen on 5.0, and was likely introduced during the extensive change stream rewrite in PM-1942.
Top User Comments
xgen-internal-githook commented on Tue, 17 May 2022 20:03:34 +0000:
Author:
{'name': 'Mickey. J Winters', 'email': 'mickey.winters@mongodb.com', 'username': 'mjrb'}
Message: SERVER-64780 don't run resharding_change_stream_namespace_filtering.js against 5.2
Branch: v5.3
https://github.com/mongodb/mongo/commit/e6e30bc9e1addec31a5d01aa9769d48e5dcfe2e1
xgen-internal-githook commented on Thu, 28 Apr 2022 14:27:40 +0000:
Author:
{'name': 'Mickey. J Winters', 'email': 'mickey.winters@mongodb.com', 'username': 'mjrb'}
Message: SERVER-64780 filter out resharding events that aren't related to the namespace being watched by a changeStream
Branch: v5.3
https://github.com/mongodb/mongo/commit/18ad6a3c107d165be8b66b6b4be25c849d34f814
xgen-internal-githook commented on Wed, 6 Apr 2022 18:20:57 +0000:
Author:
{'name': 'Mickey. J Winters', 'email': 'mickey.winters@mongodb.com', 'username': 'mjrb'}
Message: SERVER-64780 filter out resharding events that aren't related to the namespace being watched by a changeStream
Branch: master
https://github.com/mongodb/mongo/commit/a6593ef1b2671c3ea126097bac3b9b6ab2138c2d
bernard.gorman commented on Tue, 22 Mar 2022 12:48:30 +0000:
cc kevin.rosendahl, oren.ovadia
bernard.gorman commented on Tue, 22 Mar 2022 12:41:01 +0000:
Attached a reproduction test above. The solution to this issue is to simply add a predicate on "ns" to buildInternalOpFilter. With that predicate in place, we can change the o.shardCollection and o.migrateLastChunkFromShard predicates to simple existence tests.