你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Azure 服务总线中的 AMQP 错误

本文提供了在 Azure 服务总线中使用 AMQP 时所收到的一些错误。 这些都是服务的标准行为。 可以通过在连接/链路上发出发送/接收调用来避免这些错误,这会自动重新创建连接/链路。

当 AMQP 连接和链路处于活动状态,但 10 分钟内没有使用该链路发出调用(例如发送或接收)时,你将看到以下错误。 因此,该链路将关闭。 连接仍处于打开状态。

amqp:link:detach-forced:The link 'G2:7223832:user.tenant0.cud_00000000000-0000-0000-0000-00000000000000' is force detached by the broker due to errors occurred in publisher(link164614). Detach origin: AmqpMessagePublisher.IdleTimerExpired: Idle timeout: 00:10:00. TrackingId:00000000000000000000000000000000000000_G2_B3, SystemTracker:mynamespace:Topic:MyTopic, Timestamp:2/16/2018 11:10:40 PM

连接已关闭

由于没有活动(空闲)并且未在 5 分钟内创建新链接,当连接中的所有链接都已关闭时,AMQP 连接上会出现以下错误。

Error(condition:amqp:connection:forced, description:The connection was closed by container '7f9c2480b17647c0a5acc8aea6f8607c_G2' because it did not have any active links in the past 300000 milliseconds. TrackingId:7f9c2480b17647c0a5acc8aea6f8607c_G2, SystemTracker:gateway5, Timestamp:2024-05-06T22:26:00, info=null}

如果创建了新的 AMQP 连接,但在 AMQP 连接创建后的 1 分钟内未创建链接,则会出现此错误。

Error(condition:amqp:connection:forced, description:The connection was closed by container '7f9c2480b17647c0a5acc8aea6f8607c_G2' because it did not have any active links in the past 60000 milliseconds. TrackingId:7f9c2480b17647c0a5acc8aea6f8607c_G2, SystemTracker:gateway5, Timestamp:2024-05-06T22:26:00, info=null}

后续步骤

若要详细了解 AMQP 和服务总线,请单击以下链接: