Skip to content

test: bump CI broker to 4.2.2 and fix delayed-delivery tests - #308

Merged
BewareMyPower merged 1 commit into
apache:mainfrom
grishaf:fix/bump-test-broker-4.2.2
Jun 17, 2026
Merged

test: bump CI broker to 4.2.2 and fix delayed-delivery tests#308
BewareMyPower merged 1 commit into
apache:mainfrom
grishaf:fix/bump-test-broker-4.2.2

Conversation

@grishaf

@grishaf grishaf commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Why bump needed

PR #304 add support for sending None to compaction topic, however there was a bug in pulsar prior 4.2.2 that didn't deleted messages from topic in case of None

Why these changes are needed

Since Pulsar 4.0.1, InMemoryDelayedDeliveryTracker buckets deliverAt timestamps via trimLowerBit() (apache/pulsar#23611). With the default 1s tick and non-strict cutoff (now + tickTime), a 1100ms delay can be treated as immediately deliverable, so receive(1000) no longer raises Timeout as the tests expect. A 2500ms delay restores a safe margin.

Broker 4.2.x also fails fast with TopicNotFound (instead of hanging and returning Timeout) when auto-creating a producer on an unknown tenant/namespace.

Upgrade the integration-test Pulsar image from 4.0.0 to 4.2.2. Increase
deliver_at/deliver_after delay to 2500ms because broker 4.0.1+ buckets
deliverAt timestamps (~512ms with the default 1s tick), so the old 1100ms
margin no longer guarantees receive(1000) times out. Expect TopicNotFound
when creating a producer on a non-existent tenant/ns on broker 4.2.x.

Co-authored-by: Cursor <cursoragent@cursor.com>
@BewareMyPower BewareMyPower added this to the 3.13.0 milestone Jun 17, 2026
@BewareMyPower
BewareMyPower merged commit 0fc51a0 into apache:main Jun 17, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants