activemq-artemis/tests
Justin Bertram 19d8059a4e ARTEMIS-4794 configure pending ack behavior for bridge
When a bridge is stopped it doesn't wait for pending send
acknowledgements to arrive. However, when a bridge is paused it does
wait. The behavior should be consistent and more importantly
configurable. This commit implements these improvements and generally
refactors BridgeImpl to clarify and simplify the code. In total, this
commit includes the follow changes:

 - Removes the hard-coded 60-second timeout for pending acks when
   pausing the bridge and adds a new config parameter (i.e.
   "pending-ack-timeout").
 - Applies the new pending-ack-timeout when the bridge is stopped.
 - Updates existing and adds new logging messages for clarity.
 - De-duplicates code for sending bridge-related notifications.
 - Avoids converting bridge name to/from SimpleString.
 - Removes unnecessary comments.
 - Renames variables & functions for clarity.
 - Replaces the `started`, `stopping`, & `active` booleans with a
   single `state` variable which is an enum.
 - Adds `final` to a few variables that were functionally final.
 - Synchronizes `stop` & `pause` methods to add safety when invoked
   concurrently with `handle` (since both deal with `state` and execute
   runnables on the ordered executor).
 - Reorganizes and removes a few methods for clarity.
 - Relocates `connect` method directly into `ConnectRunnable` (mirroring
   the structure of the `StopRunnable` and `PauseRunnable`).
 - Eliminates unnecessary variables in `ConnectRunnable` and
   `ScheduledConnectRunnable`.
 - Adds test to verify pending ack timeout works as expected with both
   `stop` & `pause` with both regular and large messages.
2024-07-15 18:19:39 +01:00
..
activemq5-unit-tests ARTEMIS-4880: remove unnecessary dependency, not needed 2024-07-02 17:26:32 +01:00
artemis-test-support ARTEMIS-3509 Concurrent Modification Exception on Stomp Transactions 2024-07-05 14:30:58 -04:00
compatibility-tests ARTEMIS-4872: remove superfluous+incorrect distributionManagement for non-deployed test module 2024-07-09 10:41:24 +01:00
config NO-JIRA proposed log4j commented out log configuration for testing 2024-02-07 15:20:57 -06:00
db-tests ARTEMIS-4829 use lambdas consistently 2024-06-21 12:01:16 -04:00
e2e-tests ARTEMIS-4829 use lambdas consistently 2024-06-21 12:01:16 -04:00
integration-tests ARTEMIS-4794 configure pending ack behavior for bridge 2024-07-15 18:19:39 +01:00
integration-tests-isolated ARTEMIS-4829 use lambdas consistently 2024-06-21 12:01:16 -04:00
jms-tests ARTEMIS-4833 remove redundant type arguments 2024-06-24 10:41:39 -07:00
joram-tests ARTEMIS-4829 use lambdas consistently 2024-06-21 12:01:16 -04:00
karaf-client-integration-tests ARTEMIS-4897 Bump org.apache.servicemix.tooling:depends-maven-plugin 2024-07-01 22:35:10 -05:00
karaf-server-integration-tests ARTEMIS-4897 Bump org.apache.servicemix.tooling:depends-maven-plugin 2024-07-01 22:35:10 -05:00
leak-tests ARTEMIS-4862 Bump check-leak-version from 0.8 to 0.11 2024-06-27 10:02:48 -05:00
performance-jmh ARTEMIS-4879 Bump jmh.version from 1.26 to 1.37 2024-06-30 11:27:45 -05:00
performance-tests ARTEMIS-4833 remove redundant type arguments 2024-06-24 10:41:39 -07:00
security-resources ARTEMIS-4697 Auto reload SSL PEM config sources on change 2024-03-25 14:26:42 +01:00
smoke-tests ARTEMIS-4833 remove redundant type arguments 2024-06-24 10:41:39 -07:00
soak-tests ARTEMIS-3509 Concurrent Modification Exception on Stomp Transactions 2024-07-05 14:30:58 -04:00
stress-tests ARTEMIS-4833 remove redundant type arguments 2024-06-24 10:41:39 -07:00
timing-tests ARTEMIS-4833 remove redundant type arguments 2024-06-24 10:41:39 -07:00
unit-tests ARTEMIS-4833 remove redundant type arguments 2024-06-24 10:41:39 -07:00
pom.xml ARTEMIS-4908: update to commons-logging 1.3.3 2024-07-04 16:23:29 +01:00