Oleg Danilov created HIVE-18506:
-----------------------------------

             Summary: LlapBaseInputFormat - negative array index
                 Key: HIVE-18506
                 URL: https://issues.apache.org/jira/browse/HIVE-18506
             Project: Hive
          Issue Type: Bug
            Reporter: Oleg Danilov


 

"nextInt % value" may generate negative values:
{code:java}
int randIdx = rand.nextInt() % allInstances.size();
serviceInstance = allInstances.toArray(serviceInstanceArray)[randIdx];
{code}
 

 



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

Reply via email to