Skip to content

M7, ports part 4: the Queue and Checkpoint consumers - #51

Merged
merlimat merged 1 commit into
mainfrom
m7-ports-queue-checkpoint
Nov 23, 2026
Merged

merlimat merged 1 commit into
mainfrom
m7-ports-queue-checkpoint

Conversation

@merlimat

Copy link
Copy Markdown
Contributor

Java V5 tests of the Queue and Checkpoint consumers, ported (PLAN.md, M7: tests/PORTING.md shows the Java scenarios in scope covered; that file follows in its own PR). Only test code changes.

Java Rust
V5MultipleConsumersTest.testCheckpointConsumersEachSeeFullStream checkpoint_tests.rs::consumers_from_the_earliest_position_each_read_every_message
V5CheckpointConsumerGroupTest.testMembersOutnumberingSegmentsDeliverEachMessageOnce testkit checkpoint_group.rs::members_outnumbering_the_segments_deliver_each_message_once (extended: the segment has four entry buckets, which only the Checkpoint registration keeps from being shared)
V5ReceiveQueueTest.olderPendingReceiveIsServedBeforeANewerOne, olderPendingReceiveIsServedBeforeANewerTimedOne, receiveMultiDoesNotOvertakeAnOlderPendingReceive consumer_tests.rs::waiting_receives_are_answered_in_the_order_they_were_polled
V5ReceiveQueueTest.resumeViaReceiveMultiDrain, resumeViaTimedReceiveDrain consumer_tests.rs::taking_half_the_receiver_queue_grants_as_many_permits_again (Java's receive queue is the segments' permits here)
V5AuthErrorTest.testLookupNotAuthorized (Queue, Checkpoint, grouped Checkpoint) consumer_tests.rs::a_refused_lookup_fails_the_subscribe, checkpoint_tests.rs::a_refused_lookup_fails_the_create
V5ScalableTopicAutoCreateTest.testNoAutoCreateWhenNamespaceDisallows (Queue, Checkpoint) consumer_tests.rs::a_missing_topic_is_not_found, checkpoint_tests.rs::a_missing_topic_is_not_found
The spec's C15 for both consumer_tests.rs::a_broker_without_scalable_topics_is_refused, checkpoint_tests.rs::a_broker_without_scalable_topics_is_refused
The spec's C14 (an idempotent close) for the Checkpoint consumer checkpoint_tests.rs::resumes_from_a_checkpoint (extended: closed twice, and receives fail with AlreadyClosed after)

Testing

  • Every workspace test passes, and each new or extended test passed 5 runs in a row.
  • Each new test was checked against a client broken on purpose, in the way it guards against: it fails.
  • cargo fmt; clippy -D warnings with Rust 1.100. No library code changes.

Java V5's tests of the Queue and Checkpoint consumers that had no Rust counterpart, ported
(PLAN.md, M7; tests/PORTING.md follows in its own PR): Checkpoint consumers from the earliest
position each reading every message, group members outnumbering the segments delivering each
message once, waiting receives answered in the order they were polled, taking half the
receiver queue granting as many permits again, a refused lookup, a missing topic not found, a
broker without scalable topics refused, and a Checkpoint consumer closed twice. Only test code
changes.
@merlimat
merlimat merged commit 725ef2a into main Nov 23, 2026
15 checks passed
@merlimat
merlimat deleted the m7-ports-queue-checkpoint branch November 23, 2026 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant