Repository navigation
Conversation
conformance::failover_by_unload failed once locally, on a host busy with other builds: the topic's stats listed no producer within 30 s, the failover thread panicked before the unload, and the clients carried on for five more minutes before the case failed with "the failover did not complete". Both failover cases now wait until a send to each segment has completed (up to 120 s), and the unload until the stats list the producer on both segments (up to 60 s). A wait that runs out stops the clients and fails the case at once, saying what was missing.
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.
Problem
conformance::failover_by_unload(from #45) can fail on a slow host, and when it does, its message hides the cause. It starts the failover after 20 sends, then waits at most 30 s for the topic's stats to list the producer on both segments, and asserts on the failover thread. In one local full run, made while five other builds shared the host (it took 400 s instead of about 145 s), the stats listed no producer for the whole 30 s. The thread panicked before the unload; the clients carried on for five more minutes, and the case failed with "the failover did not complete". The producer wasn't stuck: all 6000 sends completed without an error. So either its first registrations on the fresh namespace took over 30 s, or the stats lagged behind them; the case couldn't tell which.Example
from the failover thread:
Change
the topic couldn't fail over: sends completed on both segments ({0: 12, 1: 9}), but in 60 s the topic's stats listed its producers as {}. A send that never completes no longer holds the case up.tests/conformance/README.mdsays when the failover starts.Testing
Against
apachepulsar/pulsar:5.0.1:the topic couldn't fail over: in 120 s, sends completed on 2 of 2 segments: {0: 71, 1: 48}. Only the deadline was changed, not the message.cargo fmt, and clippy with Rust 1.100 on the integration target, which CI's clippy skips (-A clippy::type_complexity, as its other modules need). Only test code changes.