[DocDB] Fix infinite log spew if the master loses leadership when it has a backfill rpc pending and the rpc happens to fail. #13595
Labels
area/docdb
YugabyteDB core features
kind/bug
This issue is a bug
priority/medium
Medium priority issue
Jira Link: DB-3170
Description
If a leader has loses it’s leadership and can’t write to the syscatalog, it fails to mark the index as failed.
In the failed-rpc code path,
https://github.com/yugabyte/yugabyte-db/blob/master/src/yb/master/backfill_index.cc#L1225
We should exit out of the first if {} if we can’t persist information, instead of proceeding further and trying to LaunchNextChunkOrDone() based off of outdated information.
The text was updated successfully, but these errors were encountered: