Skip to content

Commit

Permalink
Increase initial delay time to fix scheduledTask refresh metadata exc…
Browse files Browse the repository at this point in the history
…eption when broker start (apache#4901)
  • Loading branch information
RongtongJin authored Aug 26, 2022
1 parent 03f3a4e commit 1cc7afd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ public void run() {
LOG.error("ScheduledTask refresh metadata exception", e);
}
}
}, 1, 5, TimeUnit.SECONDS);
}, 10, 5, TimeUnit.SECONDS);

if (this.brokerConfig.getNamesrvAddr() != null) {
this.brokerOuterAPI.updateNameServerAddressList(this.brokerConfig.getNamesrvAddr());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public void run2() {
LOG.error("ScheduledTask refresh metadata exception", e);
}
}
}, 1, 5, TimeUnit.SECONDS);
}, 10, 5, TimeUnit.SECONDS);

return true;
}
Expand Down

0 comments on commit 1cc7afd

Please sign in to comment.