Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-18506

LlapBaseInputFormat - negative array index

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.0
    • None
    • None

    Description

       

      "nextInt % value" may generate negative values:

      int randIdx = rand.nextInt() % allInstances.size();
      serviceInstance = allInstances.toArray(serviceInstanceArray)[randIdx];
      

       

       

      Attachments

        1. HIVE-18506.01.patch
          0.8 kB
          Sergey Shelukhin
        2. HIVE-18506.patch
          1 kB
          Oleg Danilov

        Activity

          People

            olegd Oleg Danilov
            olegd Oleg Danilov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: