This is an automated email from the ASF dual-hosted git repository.
mradhakrishnan pushed a commit to branch branch-feature-AMBARI-14714-dep
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to
refs/heads/branch-feature-AMBARI-14714-dep by this push:
new c28908f Add RESOLVE_FAILED state as a valid desired state
c28908f is described below
commit c28908f77a032b1bdcebd6d71fc3dac9d98efd32
Author: Madhuvanthi Radhakrishnan <[email protected]>
AuthorDate: Fri May 25 14:50:58 2018 -0700
Add RESOLVE_FAILED state as a valid desired state
---
.../src/main/java/org/apache/ambari/server/state/State.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git
a/ambari-server/src/main/java/org/apache/ambari/server/state/State.java
b/ambari-server/src/main/java/org/apache/ambari/server/state/State.java
index a1c3947..2fedbab 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/state/State.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/state/State.java
@@ -96,6 +96,7 @@ public enum State {
case UNINSTALLED:
case DISABLED:
case RESOLVED:
+ case RESOLVE_FAILED:
return true;
default:
return false;
@@ -241,6 +242,11 @@ public enum State {
return true;
}
break;
+ case RESOLVE_FAILED:
+ if (startState == State.INIT) {
+ return true;
+ }
+ break;
}
return false;
}
--
To stop receiving notification emails like this one, please contact
[email protected].