virajjasani commented on code in PR #2252:
URL: https://github.com/apache/phoenix/pull/2252#discussion_r2270785262
##########
phoenix-core-server/src/main/java/org/apache/phoenix/coprocessor/UncoveredGlobalIndexRegionScanner.java:
##########
@@ -178,7 +167,8 @@ protected void submitTasks(TaskBatch<Boolean> tasks) throws
IOException {
Pair<List<Boolean>, List<Future<Boolean>>> resultsAndFutures = null;
try {
LOGGER.debug("Waiting on index tasks to complete...");
- resultsAndFutures = this.pool.submitUninterruptible(tasks);
+ resultsAndFutures =
+
PhoenixRegionServerEndpoint.getUncoveredIndexThreadPool(env).submitUninterruptible(tasks);
Review Comment:
This would be complex check, all we need to check is whether the threadpool
is initialized or not. If not initialized, regionserver coproc was also not
initialized, so throw error.
--
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]