jtao15 commented on a change in pull request #8422: URL: https://github.com/apache/pinot/pull/8422#discussion_r839056385
########## File path: pinot-server/src/main/java/org/apache/pinot/server/starter/helix/SegmentMessageHandlerFactory.java ########## @@ -144,6 +147,28 @@ public HelixTaskResult handleMessage() } } + private class TableDeletionMessageHandler extends DefaultMessageHandler { + TableDeletionMessageHandler(TableDeletionMessage tableDeletionMessage, ServerMetrics metrics, + NotificationContext context) { + super(tableDeletionMessage, metrics, context); + } + + @Override + public HelixTaskResult handleMessage() + throws InterruptedException { + HelixTaskResult helixTaskResult = new HelixTaskResult(); + _logger.info("Handling message: {}", _message); + try { + _instanceDataManager.deleteTable(_tableNameWithType); + helixTaskResult.setSuccess(true); + } catch (Exception e) { + _metrics.addMeteredTableValue(_tableNameWithType, ServerMeter.DELETE_TABLE_FAILURES, 1); + Utils.rethrowException(e); Review comment: Yes, it will print something like `ERROR [HelixTask] [HelixTaskExecutor-message_handle_thread] [pinot-server] [] Exception while executing a message...` -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org