Skip to content

Conversation

@Technoboy-
Copy link
Contributor

Motivation

Use poll instead of remove to avoid NoSuchElementException

2025-10-30T02:08:39,706+0000 [broker-client-shared-internal-executor-5-1] ERROR org.apache.pulsar.client.util.ExecutorProvider - Thread broker-client-shared-internal-executor-5-1 got uncaught Exception
java.util.NoSuchElementException: null
	at java.base/java.util.AbstractQueue.remove(Unknown Source) ~[?:?]
	at org.apache.pulsar.client.impl.RawReaderImpl$RawConsumerImpl.failPendingRawReceives(RawReaderImpl.java:221) 
	at org.apache.pulsar.client.impl.RawReaderImpl$RawConsumerImpl.lambda$failPendingReceive$0(RawReaderImpl.java:209) ~
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[?:?]
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) 
	at java.base/java.lang.Thread.run(Unknown Source) [?:?]
2025-10-30T02:08:39,705+0000 [broker-client-shared-internal-executor-5-2] WARN  org.apache.pulsar.broker.service.persistent.PersistentTopic - [persistent://public/default/test] Compaction failure.
java.util.concurrent.CompletionException: java.util.concurrent.CancellationException
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source) ~[?:?]
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source) ~[?:?]
	at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(Unknown Source) ~[?:?]
	at java.base/java.util.concurrent.CompletableFuture.postComplete(Unknown Source) ~[?:?]
	at java.base/java.util.concurrent.CompletableFuture.cancel(Unknown Source) ~[?:?]
	at org.apache.pulsar.client.impl.RawReaderImpl$RawConsumerImpl.lambda$failPendingRawReceives$1(RawReaderImpl.java:223) 
	at java.base/java.util.ArrayList.forEach(Unknown Source) ~[?:?]
	at org.apache.pulsar.client.impl.RawReaderImpl$RawConsumerImpl.failPendingRawReceives(RawReaderImpl.java:223) 
	at org.apache.pulsar.client.impl.RawReaderImpl$RawConsumerImpl.reset(RawReaderImpl.java:234) 

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Nov 3, 2025
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.26%. Comparing base (fbc50b0) to head (2801def).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #24933      +/-   ##
============================================
- Coverage     74.34%   74.26%   -0.09%     
- Complexity    33532    33868     +336     
============================================
  Files          1913     1913              
  Lines        149419   149422       +3     
  Branches      17356    17357       +1     
============================================
- Hits         111089   110968     -121     
- Misses        29480    29587     +107     
- Partials       8850     8867      +17     
Flag Coverage Δ
inttests 26.22% <0.00%> (-0.49%) ⬇️
systests 22.72% <0.00%> (-0.13%) ⬇️
unittests 73.80% <100.00%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...a/org/apache/pulsar/client/impl/RawReaderImpl.java 85.83% <100.00%> (-0.50%) ⬇️

... and 92 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Technoboy- Technoboy- merged commit 402ed5b into apache:master Nov 3, 2025
54 of 56 checks passed
lhotari pushed a commit that referenced this pull request Nov 4, 2025
lhotari pushed a commit that referenced this pull request Nov 4, 2025
ganesh-ctds pushed a commit to datastax/pulsar that referenced this pull request Nov 6, 2025
…ption` (apache#24933)

(cherry picked from commit 402ed5b)
(cherry picked from commit db676b9)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Nov 6, 2025
…ption` (apache#24933)

(cherry picked from commit 402ed5b)
(cherry picked from commit db676b9)
lhotari pushed a commit that referenced this pull request Nov 17, 2025
lhotari pushed a commit that referenced this pull request Nov 17, 2025
manas-ctds pushed a commit to datastax/pulsar that referenced this pull request Dec 2, 2025
…ption` (apache#24933)

(cherry picked from commit 402ed5b)
(cherry picked from commit 807e261)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Dec 2, 2025
…ption` (apache#24933)

(cherry picked from commit 402ed5b)
(cherry picked from commit 807e261)
nodece pushed a commit to ascentstream/pulsar that referenced this pull request Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants