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

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

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.10.0, 3.0.1
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: