File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
src/main/java/com/rabbitmq/client/amqp/impl Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 24
24
cache : ' maven'
25
25
- name : Start broker
26
26
run : ci/start-broker.sh
27
- env :
28
- RABBITMQ_IMAGE : ' pivotalrabbitmq/rabbitmq:main'
29
27
- name : Start toxiproxy
30
28
run : ci/start-toxiproxy.sh
31
29
- name : Display Java version
Original file line number Diff line number Diff line change @@ -388,7 +388,7 @@ private void recoverAfterConnectionFailure(
388
388
this .state (OPEN );
389
389
} catch (Exception ex ) {
390
390
// likely InterruptedException or IO exception
391
- LOGGER .info (
391
+ LOGGER .warn (
392
392
"Error while trying to recover topology for connection '{}': {}" ,
393
393
this .name (),
394
394
ex .getMessage ());
@@ -481,6 +481,13 @@ private void recoverConsumers() throws InterruptedException {
481
481
consumer .recoverAfterConnectionFailure ();
482
482
consumer .state (OPEN );
483
483
LOGGER .debug ("Recovered consumer {} (queue '{}')" , consumer .id (), consumer .queue ());
484
+ } catch (AmqpException .AmqpConnectionException ex ) {
485
+ LOGGER .warn (
486
+ "Connection error while trying to recover consumer {} (queue '{}'), restarting recovery" ,
487
+ consumer .id (),
488
+ consumer .queue (),
489
+ ex );
490
+ throw ex ;
484
491
} catch (Exception ex ) {
485
492
LOGGER .warn (
486
493
"Error while trying to recover consumer {} (queue '{}')" ,
You can’t perform that action at this time.
0 commit comments