mcvsubbu commented on a change in pull request #7756: URL: https://github.com/apache/pinot/pull/7756#discussion_r748460120
########## File path: pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/realtime/PinotLLCRealtimeSegmentManager.java ########## @@ -1232,18 +1232,25 @@ private LLCSegmentName getNextLLCSegmentName(LLCSegmentName lastLLCSegmentName, */ private String setupNewPartitionGroup(TableConfig tableConfig, PartitionLevelStreamConfig streamConfig, PartitionGroupMetadata partitionGroupMetadata, long creationTimeMs, InstancePartitions instancePartitions, - int numPartitionGroups, int numReplicas, List<PartitionGroupMetadata> partitionGroupMetadataList) { + int numPartitionGroups, int numReplicas, List<PartitionGroupMetadata> partitionGroupMetadataList, + boolean isLiveTable) { String realtimeTableName = tableConfig.getTableName(); int partitionGroupId = partitionGroupMetadata.getPartitionGroupId(); - String startOffset = partitionGroupMetadata.getStartOffset().toString(); + StreamPartitionMsgOffset startOffset; + if (isLiveTable) { + startOffset = getPartitionGroupSmallestOffset(streamConfig, partitionGroupId); Review comment: This is not in the performance path, and I am not worried about that at all. -- 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