Repository navigation
M7, ports part 2: the producer, routing and message ids - #49
Merged
Merged
Conversation
Java V5's tests of the producer, routing and message ids that had no Rust counterpart, ported (PLAN.md, M7; tests/PORTING.md follows in its own PR): an exclusive create refused for authorization, a refused lookup, a producer created after a split sending to the children, dropped sends keeping their room in the memory limit until they complete, sends waiting for room going through a split, concurrent producers and consumers getting every message once, messages moved to a child that splits again reaching the grandchild in order, the client's close waiting for a producer already closing, a legacy segment beside a managed one routing by hash range, the controller's URL for plain and TLS connections, and ids hashing and ordering as they compare. 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 producer, routing and message ids, ported (
PLAN.md, M7:tests/PORTING.mdshows the Java scenarios in scope covered; that file follows in its own PR). Only test code changes.V5AuthErrorTest.testProduceNotAuthorized(exclusive create)producer_edges.rs::an_exclusive_create_refused_for_authorization_failsV5AuthErrorTest.testLookupNotAuthorized(producer)producer_tests.rs::a_refused_lookup_fails_createV5LayoutChangeDuringCreateTest.testProducerRoutesToChildrenOfSplitBeforeCreateproducer_tests.rs::a_producer_created_after_a_split_sends_to_the_childrenV5ProducerBackpressureTest.cancelledSendsGiveTheirReservationBackOnceDroppedproducer_tests.rs::dropped_sends_keep_their_room_until_they_completeV5ProducerBackpressureTest.retriesAcrossASegmentSplitKeepTheAccountingBalancedproducer_tests.rs::sends_waiting_for_room_go_through_a_split_and_give_it_backV5ConcurrentProducersConsumersTest.testManyProducersAndConsumersConcurrentproducer_tests.rs::concurrent_producers_and_consumers_get_every_message_onceScalableTopicProducerOrderingTest.aLayoutAppliedWhileReleasingStopsTheRestOfTheBatchproducer.rs::messages_moved_to_a_child_that_splits_reach_the_grandchild_in_orderScalableTopicProducerOrderingTest.closingTheClientWaitsForAProducerThatIsAlreadyClosingproducer_tests.rs::closing_the_client_waits_for_a_producer_already_closingSegmentRouterTest.testMixedLegacyAndRegularStillUsesHashRoutinglayout.rs::a_legacy_segment_beside_a_managed_one_routes_by_hash_rangeClientSegmentLayoutTest.testControllerBrokerUrlPropagatedlayout.rs::gives_the_controller_url_for_plain_or_tls_connectionsMessageIdV5Test.testEqualsIgnoresPositionVectormessage_id_vectors.rs::ids_hash_and_order_as_they_compare(extended)Where Rust differs from Java, the tests pin Rust's behaviour:
MessageBuilder::send's rustdoc): it is stored, and its room in the memory limit comes back once it completes. Java drops a cancelled send at dispatch.closing_the_client_waits_for_a_producer_already_closingholds the broker's answer to the producer's close withWorldServer::hold_output, a test helper added inproducer_tests.rs.Testing
cargo fmt;clippy -D warningswith Rust 1.100. No library code changes.