Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15023

ValueQueue should also validate (lowWatermark * numValues) > 0 on construction

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.10.0, 3.0.1
    • None
    • None
    • Reviewed

    Description

      ValueQueue has precondition checks for each item independently, but does not check (int)(lowWatermark * numValues) > 0. If the product is low enough, casting to int will wrap that to 0, causing problems later when filling / getting from the queue.

      code

      Attachments

        1. HADOOP-15023.01.patch
          2 kB
          Xiao Chen

        Activity

          People

            xiaochen Xiao Chen
            xiaochen Xiao Chen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: