Skip to content

Commit

Permalink
[KUDU-1959] - Fix the counter in StartupProgressStepsRemainingMetric()
Browse files Browse the repository at this point in the history
The counter was incremented twice if tablets are not processed
during the startup of a tablet server.

This is a follow-up to 59070bf.

Change-Id: I6570f438dd85aafa16093465ae654ece8d056eb5
Reviewed-on: http://gerrit.cloudera.org:8080/18073
Reviewed-by: Alexey Serbin <[email protected]>
Tested-by: Kudu Jenkins
  • Loading branch information
achennaka authored and andrwng committed Dec 13, 2021
1 parent 44e5175 commit 60d34b6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/kudu/server/startup_path_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ int StartupPathHandler::StartupProgressStepsRemainingMetric() {
int counter = 0;
counter += (init_progress_.IsStopped() ? 0 : 1);
counter += (read_filesystem_progress_.IsStopped() ? 0 : 1);
counter += (is_tablet_server_ ? (start_tablets_progress_.IsStopped() ? 0 : 1) : 0);
if (is_tablet_server_) {
counter += start_tablets_progress_.IsStopped() ? 0 : 1;
} else {
Expand Down

0 comments on commit 60d34b6

Please sign in to comment.