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

Return value from BlockingQueue.offer() is not checked in DynamicPartitionPruner

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.14.0, 1.0.0, 1.1.0, 1.2.0
    • 2.1.0
    • None
    • None

    Description

      In addEvent() and processVertex(), there is call such as the following:

                queue.offer(event);
      

      The return value should be checked. If false is returned, event would not have been queued.
      Take a look at line 328 in:
      http://fuseyism.com/classpath/doc/java/util/concurrent/LinkedBlockingQueue-source.html

      Attachments

        1. HIVE-8343.patch
          1 kB
          JongWon Park

        Activity

          People

            youngman0411 JongWon Park
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: