apache / apache/druid

NPE while executing org.apache.druid.indexing.kafka.supervisor.KafkaSupervisorTest.testLatestOffset()

Open
#8,867 0 comments 0 reactions 0 assignees View on GitHub
Area - Streaming Ingestion Improvement
Dominant language
Java
Stars
14.1k
Forks
3.8k
Avg merge
2d 58m
Merged PRs (30d)
233

Description

NullPointerException happens in this line: https://github.com/apache/incubator-druid/blob/ce4ee42459f397b844d0e531fe98c3ba773624de/indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/supervisor/SeekableStreamSupervisor.java#L2550

Though the test passes, having an NPE in the normal control flow should be considered a defect.

I'm not sure whether this issue is a `Bug` or not, but it might be.

FYI @jihoonson

Contributor guide

Open the contributing guide

Research direction

Start with indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/supervisor/SeekableStreamSupervisor.java at line 2550 and reproduce org.apache.druid.indexing.kafka.supervisor.KafkaSupervisorTest.testLatestOffset(). Trace why the normal control flow reaches a null value, then verify the test still passes without an expected-path NullPointerException.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.