Skip to content

Commit 5674505

Browse files
committed
Restart recovery on connection error in publisher recovery
1 parent 8ea2677 commit 5674505

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/com/rabbitmq/client/amqp/impl/AmqpConnection.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,13 @@ private void recoverPublishers() throws InterruptedException {
537537
publisher.state(OPEN);
538538
LOGGER.debug(
539539
"Recovered publisher {} (address '{}')", publisher.id(), publisher.address());
540+
} catch (AmqpException.AmqpConnectionException ex) {
541+
LOGGER.warn(
542+
"Connection error while trying to recover publisher {} (address '{}'), restarting recovery",
543+
publisher.id(),
544+
publisher.address(),
545+
ex);
546+
throw ex;
540547
} catch (Exception ex) {
541548
LOGGER.warn(
542549
"Error while trying to recover publisher {} (address '{}')",

0 commit comments

Comments
 (0)