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

Parameter cacheBlocks does not take effect in REST API for scan

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha-1, 1.4.0, 2.0.0
    • 1.4.0, 2.0.0-alpha-3, 2.0.0
    • REST
    • None
    • Reviewed

    Description

      Assign the parameter SCAN_BATCH_SIZE to the variable cacheBlocks incorrectly.

      And cacheBlocks has never been used.

      TableResource.java
        @Path("{scanspec: .*[*]$}")
        public TableScanResource  getScanResource(
            final @PathParam("scanspec") String scanSpec,
            @DefaultValue(Integer.MAX_VALUE + "")
            @QueryParam(Constants.SCAN_LIMIT) int userRequestedLimit,
            @DefaultValue("") @QueryParam(Constants.SCAN_START_ROW) String startRow,
            @DefaultValue("") @QueryParam(Constants.SCAN_END_ROW) String endRow,
            @DefaultValue("") @QueryParam(Constants.SCAN_COLUMN) List<String> column,
            @DefaultValue("1") @QueryParam(Constants.SCAN_MAX_VERSIONS) int maxVersions,
            @DefaultValue("-1") @QueryParam(Constants.SCAN_BATCH_SIZE) int batchSize,
            @DefaultValue("0") @QueryParam(Constants.SCAN_START_TIME) long startTime,
            @DefaultValue(Long.MAX_VALUE + "") @QueryParam(Constants.SCAN_END_TIME) long endTime,
            @DefaultValue("true") @QueryParam(Constants.SCAN_BATCH_SIZE) boolean cacheBlocks,
            @DefaultValue("false") @QueryParam(Constants.SCAN_REVERSED) boolean reversed,
            @DefaultValue("") @QueryParam(Constants.SCAN_FILTER) String paramFilter) {
      

      Attachments

        1. HBASE-18647.branch-1.patch
          5 kB
          Guangxu Cheng
        2. HBASE-18647.patch
          5 kB
          Guangxu Cheng

        Activity

          People

            gxcheng Guangxu Cheng
            gxcheng Guangxu Cheng
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: