You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2021/06/23 23:59:16 UTC
[GitHub] [incubator-pinot] jackjlli commented on a change in pull request #7086: Optimize BaseSingleSegmentConversionExecutor by skipping task if CRC not match
jackjlli commented on a change in pull request #7086:
URL: https://github.com/apache/incubator-pinot/pull/7086#discussion_r657534082
##########
File path: pinot-plugins/pinot-minion-tasks/pinot-minion-builtin-tasks/src/main/java/org/apache/pinot/plugin/minion/tasks/BaseTaskExecutor.java
##########
@@ -56,4 +57,12 @@ protected Schema getSchema(String tableName) {
Preconditions.checkState(schema != null, "Failed to find schema for table: %s", tableName);
return schema;
}
+
+ protected long getSegmentCrc(String tableNameWithType, String segmentName) {
+ OfflineSegmentZKMetadata segmentZKMetadata = ZKMetadataProvider
+ .getOfflineSegmentZKMetadata(MINION_CONTEXT.getHelixPropertyStore(), tableNameWithType, segmentName);
Review comment:
It doesn't have to be an offline segment. Might be good to check the table type first?
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org