Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,10 @@ public void createTableOnClusterPair(HighAvailabilityGroup haGroup, String table
*/
((PhoenixConnection) conn).getQueryServices().clearCache();
}
// Do not keep this connection's query services in the driver cache. A cached HBase
// connection can keep a stale master stub after a cluster restart. When the other cluster
// reuses that master port, later DDL goes to the wrong cluster.
PhoenixDriver.INSTANCE.invalidateCache(jdbcUrl, new Properties());
}
LOG.info("Created table {} on cluster pair {}", tableName, this);
}
Expand Down
Loading