Repository navigation
M7, ports part 4: the Queue and Checkpoint consumers - #51
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Java V5 tests of the Queue and Checkpoint consumers, ported (
PLAN.md, M7:tests/PORTING.mdshows the Java scenarios in scope covered; that file follows in its own PR). Only test code changes.V5MultipleConsumersTest.testCheckpointConsumersEachSeeFullStreamcheckpoint_tests.rs::consumers_from_the_earliest_position_each_read_every_messageV5CheckpointConsumerGroupTest.testMembersOutnumberingSegmentsDeliverEachMessageOncecheckpoint_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,receiveMultiDoesNotOvertakeAnOlderPendingReceiveconsumer_tests.rs::waiting_receives_are_answered_in_the_order_they_were_polledV5ReceiveQueueTest.resumeViaReceiveMultiDrain,resumeViaTimedReceiveDrainconsumer_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_createV5ScalableTopicAutoCreateTest.testNoAutoCreateWhenNamespaceDisallows(Queue, Checkpoint)consumer_tests.rs::a_missing_topic_is_not_found,checkpoint_tests.rs::a_missing_topic_is_not_foundconsumer_tests.rs::a_broker_without_scalable_topics_is_refused,checkpoint_tests.rs::a_broker_without_scalable_topics_is_refusedcheckpoint_tests.rs::resumes_from_a_checkpoint(extended: closed twice, and receives fail withAlreadyClosedafter)Testing
cargo fmt;clippy -D warningswith Rust 1.100. No library code changes.