[ 
https://issues.apache.org/jira/browse/RANGER-2388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16806410#comment-16806410
 ] 

Bolke de Bruin commented on RANGER-2388:
----------------------------------------

if the schema is not created (by an error or alike) the while loop will never 
fail. CountTries is initialized with '0' and will happily grow to whatever. I 
expect it to stop when countries == 2 is reached or the schema has been created.

> db_setup is not using counTries properly 
> -----------------------------------------
>
>                 Key: RANGER-2388
>                 URL: https://issues.apache.org/jira/browse/RANGER-2388
>             Project: Ranger
>          Issue Type: Bug
>          Components: admin
>    Affects Versions: master
>            Reporter: Bolke de Bruin
>            Priority: Major
>
> line 300:
>  
> {code:java}
> while(isSchemaCreated==False or countTries<2):
>  
> {code}
>  
> should read
>  
> {code:java}
> while(isSchemaCreated==False and countTries<2):{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to