[
https://issues.apache.org/jira/browse/HBASE-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
stack resolved HBASE-1524.
--------------------------
Resolution: Fixed
Fix Version/s: 0.19.4
Hadoop Flags: [Reviewed]
Thank you for the patch Qiaoilang Xiang. Applied to branch (TRUNK is different
here).
> HBase[0.19.3]: TableInputFormatBase.TableRecordReader.restart() @line 110.
> "startRow" should be changed to "firstRow"
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: HBASE-1524
> URL: https://issues.apache.org/jira/browse/HBASE-1524
> Project: Hadoop HBase
> Issue Type: Bug
> Components: mapred
> Affects Versions: 0.19.3
> Reporter: Qiaoilang Xiang
> Priority: Minor
> Fix For: 0.19.4
>
> Original Estimate: 0.02h
> Remaining Estimate: 0.02h
>
> Version: 0.19.3
> Class org.apache.hadoop.hbase.mapred.TableInputFormatBase.TableRecordReader
> Method: restart()
> Line: 110
> Code:
> "this.scanner = this.htable.getScanner(trrInputColumns, startRow,"
> Suggestions:
> Change startRow to firstRow.
> Reasons:
> 1. The restart() method tries to obtain a new Scanner given by the input
> parameter firstRow under various conditions.
> In both lines 114 and 119, firstRow are used for obtaining a
> Scanner. However, at line 110, startRow is used, which
> should be changed to firstRow.
> 2. The init() method won't be affected since it calls restart(startRow)
> at line 129.
> 3. The next() method will be affected since it calls restart(lastRow) at
> line 215.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.