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:
Bryan Beaudreault 2022-10-01 09:55:40 -04:00 committed by GitHub
parent 5c60f1d86d
commit 64fdb95b09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}