Skip to content

NPE during segment commit #16831

@noob-se7en

Description

@noob-se7en
java.lang.NullPointerException: Cannot invoke "java.util.List.contains(Object)" because the return value of "org.apache.pinot.spi.config.table.PauseState.getIndexOfInactiveTopics()" is null
	at org.apache.pinot.controller.helix.core.realtime.PinotLLCRealtimeSegmentManager.isTopicPaused(PinotLLCRealtimeSegmentManager.java:1409)
	at org.apache.pinot.controller.helix.core.realtime.PinotLLCRealtimeSegmentManager.isTopicPaused(PinotLLCRealtimeSegmentManager.java:1417)
	at org.apache.pinot.controller.helix.core.realtime.PinotLLCRealtimeSegmentManager.createNewSegmentMetadata(PinotLLCRealtimeSegmentManager.java:785)
	at org.apache.pinot.controller.helix.core.realtime.PinotLLCRealtimeSegmentManager.commitSegmentMetadataInternal(PinotLLCRealtimeSegmentManager.java:659)
	at org.apache.pinot.controller.helix.core.realtime.PinotLLCRealtimeSegmentManager.commitSegmentMetadata(PinotLLCRealtimeSegmentManager.java:623)
	at org.apache.pinot.controller.helix.core.realtime.BlockingSegmentCompletionFSM.commitSegmentMetadata(BlockingSegmentCompletionFSM.java:844)
	at org.apache.pinot.controller.helix.core.realtime.BlockingSegmentCompletionFSM.commitSegment(BlockingSegmentCompletionFSM.java:829)
	at org.apache.pinot.controller.helix.core.realtime.BlockingSegmentCompletionFSM.segmentCommitEnd(BlockingSegmentCompletionFSM.java:388)
	at org.apache.pinot.controller.helix.core.realtime.SegmentCompletionManager.segmentCommitEnd(SegmentCompletionManager.java:322)
	at org.apache.pinot.controller.api.resources.LLCSegmentCompletionHandlers.segmentCommitEndWithMetadata(LLCSegmentCompletionHandlers.java:303)

Looks like these errors are due to #16692

@lnbest0707-uber @chenboat can you check this and help with unit tests/integrations tests for covering the new code
Seems like a backward incompatible change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions