[SERVER-46054] Incorrect invariant in NewOplogFetcher::_getNextBatch Created: 10/Feb/20  Updated: 29/Oct/23  Resolved: 11/Feb/20

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

Type: Bug Priority: Major - P3
Reporter: Lingzhi Deng Assignee: Lingzhi Deng
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-45468 Create a DBClientCursor in the new op... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2020-02-24
Participants:

 Description   

This invariant is incorrect because more() can also return false for empty batches. And we should add an unittest to test empty batches.



 Comments   
Comment by Githook User [ 10/Feb/20 ]

Author:

{'name': 'Lingzhi Deng', 'username': 'ldennis', 'email': 'lingzhi.deng@mongodb.com'}

Message: SERVER-46054: Test getMore empty batch for NewOplogFetcher
Branch: master
https://github.com/mongodb/mongo/commit/09295d5476f3f5163abe0597128afc0e8f0b04ca

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