You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($this->publisherAcknowledgments && !$this->amqpTransactionInterceptor->isRunningInTransaction()) {
86
+
/** Ensures no messages are lost along the way when heartbeat is lost and ensures messages was peristed on the Broker side. Without this message can be simply "swallowed" without throwing exception */
$context->getExtChannel()->setConfirmCallback(fn() => false, fn() => thrownew \RuntimeException("Message was failed to be persisted in RabbitMQ instance. Check RabbitMQ server logs."));
42
+
43
+
return$context;
41
44
}
42
45
43
46
publicfunctiongetConnectionInstanceId(): string
@@ -63,6 +66,10 @@ public function isDisconnected(?Context $context): bool
63
66
64
67
Assert::isSubclassOf($context, AmqpContext::class, 'Context must be ' . AmqpContext::class);
65
68
69
+
if (!$context->getExtChannel()->getConnection()->isConnected()) {
Copy file name to clipboardExpand all lines: packages/Ecotone/src/Messaging/Channel/PollableChannel/SendRetries/SendRetryChannelInterceptor.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ public function afterSendCompletion(Message $message, MessageChannel $messageCha
41
41
if ($exception !== null) {
42
42
$attempt = 1;
43
43
while ($this->retryTemplate->canBeCalledNextTime($attempt)) {
44
-
$this->logger->info("Message was not sent to {$this->relatedChannel} due to exception. Trying to self-heal by doing retry attempt: {$attempt}/{$this->retryTemplate->getMaxAttempts()}", [
44
+
$this->logger->info("Message was not sent to {$this->relatedChannel} due to exception. Trying to self-heal by doing retry attempt: {$attempt}/{$this->retryTemplate->getMaxAttempts()}. Exception message: `{$exception->getMessage()}`", [
45
45
'exception' => $exception->getMessage(),
46
46
'relatedChannel' => $this->relatedChannel,
47
47
]);
@@ -60,7 +60,7 @@ public function afterSendCompletion(Message $message, MessageChannel $messageCha
60
60
}
61
61
}
62
62
63
-
$this->logger->error("Message was not sent to {$this->relatedChannel} due to exception. No more retries will be done", [
63
+
$this->logger->error("Message was not sent to {$this->relatedChannel} due to exception. No more retries will be done. Exception message: `{$exception->getMessage()}`", [
0 commit comments