diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/LogicalTableNameBaseIT.java b/phoenix-core/src/it/java/org/apache/phoenix/end2end/LogicalTableNameBaseIT.java index 9e2048362b2..ea9dd3e5d34 100644 --- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/LogicalTableNameBaseIT.java +++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/LogicalTableNameBaseIT.java @@ -73,6 +73,9 @@ static void initCluster(boolean isNamespaceMapped) throws Exception { props.put(QueryServices.DROP_METADATA_ATTRIB, Boolean.TRUE.toString()); props.put(BaseScannerRegionObserverConstants.PHOENIX_MAX_LOOKBACK_AGE_CONF_KEY, Integer.toString(60 * 60 * 1000)); // An hour + // In HBase 2.5, a master race can lose the wakeup that releases a snapshot table lock. + // A short lock timeout releases the lock before the client snapshot call times out. + props.put("hbase.master.procedure.local.master.locks.timeout.ms", Integer.toString(30000)); if (isNamespaceMapped) { props.put(QueryServices.IS_NAMESPACE_MAPPING_ENABLED, Boolean.TRUE.toString()); }