Temporary fix: Clone scan to avoid modifying user object from scan internals. See https://issues.apache.org/jira/browse/HBASE-27402 (#26)
This commit is contained in:
parent
5c60f1d86d
commit
64fdb95b09
|
@ -301,6 +301,10 @@ public class HTable implements Table {
|
|||
*/
|
||||
@Override
|
||||
public ResultScanner getScanner(Scan scan) throws IOException {
|
||||
// Clone to avoid modifying user object from scan internals.
|
||||
// See https://issues.apache.org/jira/browse/HBASE-27402.
|
||||
scan = new Scan(scan);
|
||||
|
||||
if (scan.getCaching() <= 0) {
|
||||
scan.setCaching(scannerCaching);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue