apurtell commented on code in PR #2658:
URL: https://github.com/apache/phoenix/pull/2658#discussion_r4507761182
##########
phoenix-core-server/src/main/java/org/apache/phoenix/hbase/index/IndexCDCConsumer.java:
##########
@@ -319,8 +326,42 @@ private PTable getDataTable(PhoenixConnection conn) throws
SQLException {
return dataTable;
}
+ /**
+ * Reads the data table definition from SYSTEM.CATALOG. The metadata cache
of the region server
+ * can keep an old definition after an ALTER, for example when the region
moves to this server.
+ */
private void refreshDataTableCache(PhoenixConnection conn) throws
SQLException {
- cachedDataTable = conn.getTable(dataTableName);
+ cachedDataTable = conn.getTableNoCache(conn.getTenantId(), dataTableName);
+ }
Review Comment:
I'll implement a lazy refresh that only triggers when a batch has events
newer than the snapshot, throttled to one refresh per interval, so idle regions
see no extra RPCs and bursty writes aren't delayed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]