Badhusha Muhammed
11/24/2026, 3:51 PMUpsertCompactionTask or other segment conversion tasks).
The Issue: Normally, committed Realtime (LLC) segments store segment.start.offset and segment.end.offset in their metadata.properties. However, when a Minion task processes and rebuilds these segments, those offset properties are dropped from the generated metadata.properties before the segment is uploaded back to the controller.
This causes failures when we later try to migrate or upload those segments from deep store into a newly created Realtime table (e.g., in another Pinot cluster). Because ZKOperator sees them as new LLC segments, the upload fails with:
Got invalid segment metadata when adding segment: segmentName for table: tableName, reason: New uploaded LLC segment must have start/end offset in the segment metadata
Question: Is there any way we can disable this check ..?
Root Issue and possible fix : In the Minion task executors (e.g., inside UpsertCompactionTaskExecutor#getSegmentGeneratorConfig ), SegmentGeneratorConfig is created from the input SegmentMetadataImpl without copying over startOffset and endOffset. As a result, SegmentIndexCreationDriverImpl will use them when writing metadata.properties.
If we propagate these values when present on the source `SegmentMetadataImpl`:
if (segmentMetadata.getStartOffset() != null) {
config.setStartOffset(segmentMetadata.getStartOffset());
}
if (segmentMetadata.getEndOffset() != null) {
config.setEndOffset(segmentMetadata.getEndOffset());
}
the rebuilt segments will retain their original stream offsets in metadata.properties and remain portable across clusters.
@Xiang Fu , @MayankXiang Fu
Badhusha Muhammed
11/24/2026, 7:04 PMBadhusha Muhammed
11/24/2026, 7:06 PMBadhusha Muhammed
11/24/2026, 7:06 PMBadhusha Muhammed
11/24/2026, 7:09 PMPROPERTYSTORE/SEGMENT znode still contain offset info for each segments, its only missing from the deepstore tar segments , so a work around that we done is , adding this missing offset by getting segmentMetadata from zonde ( using controller api ) and updating the metadata.proeprties before attempting to pushXiang Fu
Badhusha Muhammed
11/24/2026, 7:18 PMMayank
Mayank
Badhusha Muhammed
11/24/2026, 8:45 PMmetadata.proeprty associated with segment in deep store , If possible can we include this change , this will also ensure smooth data copy from realtime to realtime ( if hybrid mode is not possible ) , this will be also true incase if the realtime tables are upsert enabledBadhusha Muhammed
11/24/2026, 8:47 PMBadhusha Muhammed
11/25/2026, 10:04 PMXiang Fu
Badhusha Muhammed
11/26/2026, 7:36 AMif (newSegment && LLCSegmentName.isLLCSegment(segmentMetadata.getName())) {
Preconditions.checkArgument(
segmentMetadata.getStartOffset() != null && segmentMetadata.getEndOffset() != null,
"New uploaded LLC segment must have start/end offset in the segment metadata");
}