Skip to content

Conversation

@pniedzielski
Copy link
Collaborator

@pniedzielski pniedzielski commented Nov 21, 2025

The test_client_timeout.py integration test creates producers with artificially short timeouts in order to test the behavior of clients on open, reopen, and close timeouts. However, because bmqtool only supports a single timeout flag, the short timeouts can cause the initial open queue operation to fail on slow test runners. This patch makes these test more robust, by:

  1. introducing a client with a long timeout to each test, which connects and opens the necessary queues, assigning them on the primary; and

  2. suspending the primary in each test as well as all other brokers in the cluster, to ensure that the queue already being assigned does not interfere with the short timeouts on the operations we want them for.

If we need to, we can add separate flags in bmqtool for each timeout exposed in SessionOptions. This is a cheaper solution for just this test.

@pniedzielski pniedzielski force-pushed the it/client-timeout-assignment branch 2 times, most recently from 1ed6c93 to f747d42 Compare November 24, 2025 19:23
The `test_client_timeout.py` integration test creates producers with
artificially short timeouts in order to test the behavior of clients
on open, reopen, and close timeouts.  However, because bmqtool only
supports a single timeout flag, the short timeouts can cause the
initial open queue operation to fail on slow test runners.  This patch
makes these test more robust, by:

  1) introducing a client with a long timeout to each test, which
     connects and opens the necessary queues, assigning them on the
     primary; and

  2) suspending the primary in each test as well as all other brokers
     in the cluster, to ensure that the queue already being assigned
     does not interfere with the short timeouts on the operations we
     want them for.

Signed-off-by: Patrick M. Niedzielski <[email protected]>
@pniedzielski pniedzielski force-pushed the it/client-timeout-assignment branch from f747d42 to 79d7191 Compare November 25, 2025 17:39
Copy link

@bmq-oss-ci bmq-oss-ci bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build 3154 of commit 79d7191 has completed with FAILURE

@pniedzielski pniedzielski marked this pull request as ready for review December 2, 2025 19:40
@pniedzielski pniedzielski requested a review from a team as a code owner December 2, 2025 19:40
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.

2 participants