简体   繁体   English

SQL 服务器代理服务目标传输队列问题

[英]SQL Server Broker Service Target Transmission Queue issue

I've implemented two SSB across two different instances .我已经在两个不同的实例中实现了两个 SSB They are data push pattern based on asynchronous triggers .它们是基于异步触发器数据推送模式。

I am using SQL Server Enterprise 2008 R2 , version info is found below我正在使用SQL Server Enterprise 2008 R2 ,版本信息如下

My SQL Version is Microsoft SQL Server Management Studio 10.0.4064.0 Microsoft Analysis Services Client Tools 10.0.4064.0 Microsoft Data Access Components (MDAC) 6.1.7601.17514 Microsoft MSXML 3.0 4.0 5.0 6.0 Microsoft Internet Explorer 9.0.8112.16421 Microsoft .NET Framework 2.0.50727.5446 Operating System 6.1.7601 My SQL Version is Microsoft SQL Server Management Studio 10.0.4064.0 Microsoft Analysis Services Client Tools 10.0.4064.0 Microsoft Data Access Components (MDAC) 6.1.7601.17514 Microsoft MSXML 3.0 4.0 5.0 6.0 Microsoft Internet Explorer 9.0.8112.16421 Microsoft .NET Framework 2.0.50727.5446 Operating System 6.1.7601

  1. My queue is RETENTION set to off .我的队列RETENTION设置为off

  2. Sender Queue and sys.TransmissionQueue are empty . Sender Queue 和 sys.TransmissionQueue

  3. Target Queue is empty ,but Target sys.transmissionqueue contains the 5000 messages I sent .目标队列,但目标 sys.transmissionqueue包含我发送5000 条消息

  4. The table , data is inserted in @Target DB is locked .数据插入@Target DB 被锁定 "When I select with nolock the 5000 records appears" “当我没有锁定的 select出现5000 条记录

  5. Profiler shows探查器显示

@ Sender @发件人

Broker:Conversation STARTED_OUTBOUND经纪人:对话 STARTED_OUTBOUND

Broker:Conversation CONVERSING经纪人:Conversation CONVERSING

Broker:Message Classify Broker:消息分类

Broker:Remote Message Acknowledgement Broker:远程消息确认

Broker:Conversation Group经纪人:对话组

@ Reciever @接收者

Broker:Conversation DISCONNECTED_OUTBOUND经纪人:对话 DISCONNECTED_OUTBOUND

Broker:Conversation Group经纪人:对话组

Broker:Message Classify Broker:消息分类

Broker:Remote Message Acknowledgement Broker:远程消息确认

Broker:Message Undeliverable This message was dropped because it could not be dispatched on time. Broker:Message Undeliverable 由于无法按时发送,此消息已被丢弃。 State: 1 State:1

  1. SSBDIAGNOSE shows no error . SSBDIAGNOSE没有显示错误

I've used Rusanu's blog entry to troubleshoot the problem,but I think my situation is different!我已经使用 Rusanu 的博客条目来解决问题,但我认为我的情况有所不同!

Hope anyone could help:)希望任何人都可以提供帮助:)

Sounds like your target processing is receving messages, responding with and EndDialog, but not committing the transaction.听起来您的目标处理正在接收消息,使用 EndDialog 进行响应,但不提交事务。 This would explain the symptoms you describe (data is inserted but locked, target transmission queue has 5k messages not being sent).这将解释您描述的症状(数据已插入但已锁定,目标传输队列有 5k 条消息未发送)。 Can you confirm that the target processing is properly committing and ending the transactions?您能否确认目标处理正在正确提交和结束事务?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM