tkhurana commented on code in PR #1735:
URL: https://github.com/apache/phoenix/pull/1735#discussion_r1388731219


##########
phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataRegionObserver.java:
##########
@@ -109,13 +112,16 @@ public class MetaDataRegionObserver implements 
RegionObserver,RegionCoprocessor
             QueryConstants.SYSTEM_SCHEMA_NAME_BYTES,
             PhoenixDatabaseMetaData.SYSTEM_CATALOG_TABLE_BYTES);
     protected ScheduledThreadPoolExecutor executor = new 
ScheduledThreadPoolExecutor(1);
+    private ScheduledThreadPoolExecutor truncateTaskExectuor = new 
ScheduledThreadPoolExecutor(1,
+            new 
ThreadFactoryBuilder().setDaemon(true).setNameFormat("task-truncated%s").build());
     private boolean enableRebuildIndex = 
QueryServicesOptions.DEFAULT_INDEX_FAILURE_HANDLING_REBUILD;
     private long rebuildIndexTimeInterval = 
QueryServicesOptions.DEFAULT_INDEX_FAILURE_HANDLING_REBUILD_INTERVAL;
     private static Map<PName, Long> batchExecutedPerTableMap = new 
HashMap<PName, Long>();
     @GuardedBy("MetaDataRegionObserver.class")
     private static Properties rebuildIndexConnectionProps;
     // Added for test purposes
     private long initialRebuildTaskDelay;
+    private long startTruncateTaskDelay;

Review Comment:
   rename this to statsTruncateTaskDelay



-- 
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]

Reply via email to