Indian-boult opened a new issue, #20384:
URL: https://github.com/apache/pinot/issues/20384

   On an upsert table with `metadataTTL` set, offloading a consuming segment 
that holds rows throws a NullPointerException. That happens on the CONSUMING to 
OFFLINE or DROPPED transition, so when the table is disabled or deleted, or 
when a rebalance moves a consuming segment.
   
       java.lang.NullPointerException: Cannot invoke 
"org.apache.pinot.segment.spi.ColumnMetadata.getMaxValue()" because the return 
value of 
"org.apache.pinot.segment.spi.SegmentMetadata.getColumnMetadataFor(String)" is 
null
           at 
org.apache.pinot.segment.local.upsert.BasePartitionUpsertMetadataManager.getMaxComparisonValue(BasePartitionUpsertMetadataManager.java:359)
   
   `removeSegment` calls `isOutOfMetadataTTL`, which reads the max comparison 
value from the segment's column metadata. `MutableSegmentImpl` builds its 
`SegmentMetadataImpl` without column metadata, so the lookup returns null. 
Dedup avoids the same problem by handling `MutableSegment` on its own in 
`getMaxDedupTime`.
   
   Because the offload throws, the state transition fails before the segment is 
released, and the primary keys of the consuming segment stay in the metadata 
map.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to