This is an automated email from the ASF dual-hosted git repository. ankit pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/master by this push: new f969444 PHOENIX-5178 SYSTEM schema is not getting cached at MetaData server(addendum) f969444 is described below commit f969444c96a060a5619e70e543c6d6fb21b32bed Author: Ankit Singhal <ankitsingha...@gmail.com> AuthorDate: Mon Mar 11 21:54:40 2019 -0700 PHOENIX-5178 SYSTEM schema is not getting cached at MetaData server(addendum) --- .../java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java index 06d36d9..192d004 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java @@ -1088,7 +1088,12 @@ public class MetaDataEndpointImpl extends MetaDataProtocol implements RegionCopr keyRanges.add(PVarbinary.INSTANCE.getKeyRange(key, true, stopKey, false)); } Scan scan = new Scan(); - scan.setTimeRange(MIN_TABLE_TIMESTAMP, clientTimeStamp + 1); + if (clientTimeStamp != HConstants.LATEST_TIMESTAMP + && clientTimeStamp != HConstants.OLDEST_TIMESTAMP) { + scan.setTimeRange(MIN_TABLE_TIMESTAMP, clientTimeStamp + 1); + } else { + scan.setTimeRange(MIN_TABLE_TIMESTAMP, clientTimeStamp); + } ScanRanges scanRanges = ScanRanges.createPointLookup(keyRanges); scanRanges.initializeScan(scan); scan.setFilter(scanRanges.getSkipScanFilter());