Skip to content

Commit 23249c7

Browse files
committed
Log index commit quorum retry error
1 parent 7de572a commit 23249c7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pbm/restore/logical.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,6 +1326,7 @@ func (r *Restore) restoreIndexes(ctx context.Context, nss []string) error {
13261326
err := r.nodeConn.Database(ns.DB).RunCommand(ctx, rawCommand).Err()
13271327
if shouldRetryWithDefaultIndexCommitQuorum(err, commitQuorum) {
13281328
commitQuorum = config.DefaultRestoreIndexCommitQuorum.CommandValue()
1329+
r.log.Debug("createIndexes for %s.%s failed with MongoDB error: %v", ns.DB, ns.Collection, err)
13291330
r.log.Warning(
13301331
"index commit quorum cannot be satisfied for %s.%s, retrying with %s",
13311332
ns.DB, ns.Collection, commitQuorum,

0 commit comments

Comments
 (0)