Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-7387

SnapshotScanner's next method is ignoring the boolean value from hbase's nextRaw method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.2.1, 5.3.0, 5.1.4
    • core
    • None

    Description

      The below code (SnapshotScanner.java) is ignoring the boolean value returning from the nextRaw method

      public Result next() throws IOException {
      values.clear();
      scanner.nextRaw(values);
      statisticsCollector.collectStatistics(values);
      if (values.isEmpty()) {
      //we are done
      return null;
      }
      
      return Result.create(values);
      }

      Below is the comment in nextRaw method of Hbase

      /**
       * Grab the next row's worth of values. This is a special internal method to be called from
       * coprocessor hooks to avoid expensive setup. Caller must set the thread's readpoint, start and
       * close a region operation, an synchronize on the scanner object. Caller should maintain and
       * update metrics. See {@link #nextRaw(List, ScannerContext)}
       * @param result return output array
       * @return true if more rows exist after this one, false if scanner is done
       * @throws IOException e
       */
      boolean nextRaw(List<Cell> result) throws IOException; 

       

      Attachments

        Issue Links

          Activity

            People

              abhradeep.kundu Abhradeep Kundu
              abhradeep.kundu Abhradeep Kundu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: