Github user JamesRTaylor commented on a diff in the pull request:
https://github.com/apache/phoenix/pull/12#discussion_r17406099
--- Diff:
phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java ---
@@ -257,8 +265,15 @@
COLUMN_FAMILY + "," +
ORDINAL_POSITION +
") VALUES (?, ?, ?, ?, ?, ?)";
+ private static final String UPDATE_STATS_TS =
+ "UPSERT INTO " + SYSTEM_CATALOG_SCHEMA + ".\"" +
SYSTEM_STATS_TABLE + "\"( " +
+ TABLE_SCHEM + ","+
+ TABLE_NAME + "," +
+ LAST_STATS_UPDATE_TIME_IN_MS +
+ ") VALUES (?, ?, ?)";
private final PhoenixConnection connection;
+ private final AtomicInteger inProgress = new AtomicInteger(0);
--- End diff --
A client side check isn't going to help us much, so I'd remove this and
move to checking the last time stats was run instead.
---
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.
---