Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-4556

Fix all incorrect uses of InternalScanner.next(...)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.92.0, 0.94.0
    • None
    • None

    Description

      There are cases all over the code where InternalScanner.next(...) is not used correctly.

      I see this a lot:

      while(scanner.next(...)) {
      }
      

      The correct pattern is:

      boolean more = false;
      do {
         more = scanner.next(...);
      } while (more);
      

      Attachments

        1. 4556.txt
          8 kB
          Lars Hofhansl
        2. 4556-v1.txt
          3 kB
          Lars Hofhansl

        Activity

          People

            larsh Lars Hofhansl
            larsh Lars Hofhansl
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: