mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
setting the right condition
This commit is contained in:
parent
c3e74f29c9
commit
93708cd41a
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ public class LivyHelper {
|
|||
if (!jsonMap.get("state").equals("idle")) {
|
||||
Integer nosRetry = 60;
|
||||
//Try for 60Sec, if session is not made then throw error.
|
||||
while (nosRetry <= 0) {
|
||||
while (nosRetry >= 0) {
|
||||
LOGGER.error(String.format("sessionId:%s state is %s",
|
||||
jsonMap.get("id"), jsonMap.get("state")));
|
||||
Thread.sleep(1000);
|
||||
|
|
|
|||
Loading…
Reference in a new issue