[SERVER-48465] restore noop write msg format for single-phase index builds Created: 28/May/20  Updated: 29/Oct/23  Resolved: 28/May/20

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.4.0-rc8, 4.7.0

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

Issue Links:
Backports
Depends
Related
is related to SERVER-34172 Turn primary index build ghost writes... Closed
is related to SERVER-48010 Substitute ghost timestamp with no-op... Closed
is related to SERVER-47182 Single-phase index builds should run ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Execution Team 2020-06-01
Participants:
Linked BF Score: 50

 Description   

At the beginning of each replicated single phase index build, the primary writes a noop oplog entry with a msg field that includes the namespace of the collection. This noop write, introduced in SERVER-34172, is intended to provide a timestamp for the catalog update that sets the index entry's state to ready: false.

In SERVER-48010, the msg field value was modified to "Creating indexescoll:<ns>".

The original msg format was introduced in SERVER-34172: "Creating indexes. Coll: <ns>".

Since there is no other identifying information in the noop oplog entry, it would be prudent to keep this message stable for users that may have be relying on this since 4.0.

Starting in 4.4, this is less of an issue with two phase index builds because we have distinct oplog entries for both index build start and completion.



 Comments   
Comment by Githook User [ 28/May/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-48465 restore noop msg format for single phase index builds

This partially reverts commit e7febe077be215d6af6a84232c7070b6905523d7.

(cherry picked from commit d9252e517ec41bd7251055f8fde234d9c22ca671)
Branch: v4.4
https://github.com/mongodb/mongo/commit/6836555e1d9734e21a681f3495d8febbfb4621ee

Comment by Githook User [ 28/May/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-48465 restore noop msg format for single phase index builds

This partially reverts commit 1417eee440b4132e24d1388011d681e2c9fcec41.
Branch: master
https://github.com/mongodb/mongo/commit/d9252e517ec41bd7251055f8fde234d9c22ca671

Comment by Benety Goh [ 28/May/20 ]

The need for a noop write at the start of a single phase index build should go away in SERVER-47182.

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