Github user ramkrish86 commented on a diff in the pull request:
https://github.com/apache/phoenix/pull/8#discussion_r16764530
--- Diff:
phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
---
@@ -1594,4 +1775,46 @@ public boolean filterRowKey(byte[] buffer, int
offset, int length) {
return cmp != 0;
}
}
+ /**
+ * A thread (Chore) that keeps reading the updated stats and
invalidates the Meta cache incase there is
+ * a change in the stats
+ */
+ private static class StatisticsUpdator extends Chore {
--- End diff --
Done this. Introduce a new method in MEtaDataService.proto that invalidates
the cache for a specific table key.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---