Tried to reload the segment from the rest API which is loading the segment further because of the segment registration not happened yet and _segmentDataManagerMap doesn't have entry for the segment.
2024/11/30 00:21:11.702 WARN [HelixInstanceDataManager] [HelixTaskExecutor-message_handle_thread_54] Failed to get segment data manager for segments: [<segment_name>] of table: org.apache.pinot.core.data.manager.offline.OfflineTableDataManager@52a09a91, skipping reloading them
New segment addition flow
public void downloadAndLoadSegment(SegmentZKMetadata zkMetadata, IndexLoadingConfig indexLoadingConfig)
throws Exception {
String segmentName = zkMetadata.getSegmentName();
_logger.info("Downloading and loading segment: {}", segmentName);
File indexDir = downloadSegment(zkMetadata);
addSegment(ImmutableSegmentLoader.load(indexDir, indexLoadingConfig));
_logger.info("Downloaded and loaded segment: {} with CRC: {} on tier: {}", segmentName, zkMetadata.getCrc(),
TierConfigUtils.normalizeTierName(zkMetadata.getTier()));
}
Segment stuck in bad state when the download from deep store failed with EOF exception while adding new segment.
Tried to reload the segment from the rest API which is loading the segment further because of the segment registration not happened yet and _segmentDataManagerMap doesn't have entry for the segment.
New segment addition flow