nservicebus 插入后删除订阅记录? [英] nservicebus deleting subscription record after inserting it?

查看:61
本文介绍了nservicebus 插入后删除订阅记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用 nservicebus 几个星期了,由于我的本地机器上一切正常,我决定尝试设置一个测试环境并进行部署.我正在使用 nservicebus 附带的通用主机,并在本地运行时使用 nservicebus.Integration 配置文件,但想在测试环境中使用 Nservicebus.Production.我设置了一个 sql server 2008 数据库,对我的 app.config 进行了更改,一切似乎都正常.但是经过几次尝试后,我注意到我的订阅者没有收到消息.我检查了订阅表,它是空的.在检查日志后,我注意到以下内容:

I have been playing with nservicebus for a few weeks now and since everything was going well on my local machine I decided to try to set up a test environment and work on deployment. I am using the generic host that comes with nservicebus and was using the nservicebus.Integration profile when running locally, but would like to use Nservicebus.Production in the test environment. I set up a sql server 2008 database, made changes to my app.config and everything seemed to work fine. But after a few attempts, I noticed messages were not being picked up by my subscriber. I checked the subscription table and it was empty. Upon examination of the logs I noticed the following:

2010-05-06 15:07:57,416 [1] 调试 NHibernate.Persister.Entity.AbstractEntityPersister [(null)] <(null)> - 插入 0: INSERT INTO [Subscription] (SubscriberEndpoint, MessageType) 值 (?, ?)2010-05-06 15:07:57,416 [1] 调试 NHibernate.Persister.Entity.AbstractEntityPersister [(null)] <(null)> - 更新 0:2010-05-06 15:07:57,416 [1] 调试 NHibernate.Persister.Entity.AbstractEntityPersister [(null)] <(null)> - 删除 0: DELETE FROM [Subscription] WHERE Subscriber端点 = ?AND 消息类型 = ?

2010-05-06 15:07:57,416 [1] DEBUG NHibernate.Persister.Entity.AbstractEntityPers ister [(null)] <(null)> - Insert 0: INSERT INTO [Subscription] (SubscriberEndpo int, MessageType) VALUES (?, ?) 2010-05-06 15:07:57,416 [1] DEBUG NHibernate.Persister.Entity.AbstractEntityPers ister [(null)] <(null)> - Update 0: 2010-05-06 15:07:57,416 [1] DEBUG NHibernate.Persister.Entity.AbstractEntityPers ister [(null)] <(null)> - Delete 0: DELETE FROM [Subscription] WHERE Subscriber Endpoint = ? AND MessageType = ?

为什么它会插入然后删除我的订阅?为了排除 nhibernate 方言问题,我尝试将订阅存储切换到 oracle 10g 数据库.它的行为完全相同,前 2 次都有效,然后我开始看到我的订阅在插入后立即被删除.任何想法是什么导致这种行为?

Why would it insert then delete my subscription right afterwards? To try to rule out a nhibernate dialect issue I tried switching my subscription storage to an oracle 10g database. It behaved exactly the same, it worked the first 2 times, then I started seeing my subscriptions being deleted right after they were inserted. Any ideas what is causing this behavior?

推荐答案

自从升级到 2.0.0.1145 版本后,我没有遇到过这个问题.我没有进行任何其他更改(除了日志配置),所以我假设这是以前版本的错误.

I have not run into this issue since upgrading to version 2.0.0.1145. I have not made any other changes (besides logging config) so I'm assuming this was a bug with the previous version.

这篇关于nservicebus 插入后删除订阅记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆