[SERVER-47604] Don't log "Index build failed" if it continues in the background due to a stepDown Created: 16/Apr/20  Updated: 29/Oct/23  Resolved: 11/Aug/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.1, 4.7.0

Type: Improvement Priority: Major - P3
Reporter: Louis Williams Assignee: Samyukta Lanka
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Duplicate
is duplicated by SERVER-49440 Don't log that an index build failed ... Closed
Related
is related to SERVER-48227 review log messages for index build Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4
Sprint: Execution Team 2020-08-10, Execution Team 2020-08-24
Participants:

 Description   

During a stepdown, the server logs look like this:

I  INDEX    [conn2] Index build received interrupt signal{"buildUUID":{"uuid":{"$uuid":"35f19a17-f2e6-435d-ab18-97894162f02e"}},"signal":{"code":11602,"codeName":"InterruptedDueToReplStateChange","errmsg":"operation was interrupted"}}
I  INDEX    [conn2] Index build ignoring interrupt and continuing in background{"buildUUID":{"uuid":{"$uuid":"35f19a17-f2e6-435d-ab18-97894162f02e"}}}
I  INDEX    [conn2] Index build failed{"buildUUID":{"uuid":{"$uuid":"35f19a17-f2e6-435d-ab18-97894162f02e"}},"ex":{"code":11602,"codeName":"InterruptedDueToReplStateChange","errmsg":"operation was interrupted"}}

These log messages are contradictory because we report the index build as failing immediately after saying it will continue in the background



 Comments   
Comment by Githook User [ 21/Aug/20 ]

Author:

{'name': 'Samy Lanka', 'email': 'samy.lanka@mongodb.com', 'username': 'lankas'}

Message: SERVER-47604 Don't log that index build failed if it continues in the background due to a repl state transition

(cherry picked from commit 5eb282fc586d7ba55587346c014d2610937c03a8)
Branch: v4.4
https://github.com/mongodb/mongo/commit/a47eeed28cebfe6713c935ea70c2dfc7fa836b5a

Comment by Githook User [ 11/Aug/20 ]

Author:

{'name': 'Samy Lanka', 'email': 'samy.lanka@mongodb.com', 'username': 'lankas'}

Message: SERVER-47604 Don't log that index build failed if it continues in the background due to a repl state transition
Branch: master
https://github.com/mongodb/mongo/commit/5eb282fc586d7ba55587346c014d2610937c03a8

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