jojochuang commented on code in PR #10917:
URL: https://github.com/apache/ozone/pull/10917#discussion_r3694306575
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java:
##########
@@ -4201,7 +4201,7 @@ public List<OzoneAcl> getAcl(OzoneObj obj) throws
IOException {
* @throws IOException if download or cleanup fails
*/
public synchronized TermIndex installSnapshotFromLeader(String leaderId)
throws IOException {
- if (!isRunning() || testInstallSnapshot) {
+ if (!isRunningOrBootstrapping() || testInstallSnapshot) {
LOG.warn("OzoneManager is not in running state, state {}. Abort install
snapshot from Leader.",
Review Comment:
```suggestion
LOG.warn("OzoneManager is not in running state nor bootstrapping,
state {}. Abort install snapshot from Leader.",
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]