NServiceBus 的 RavenDB 索引错误 [英] RavenDB Index Error With NServiceBus
问题描述
我正在运行 NServiceBus 3.3,但出现此错误:
I am running NServiceBus 3.3 and I am getting this error:
超时轮询失败.
没有名为:RavenTimeoutPersistence/TimoutDataSortedByType
Polling of timeouts failed.
There is no index named: RavenTimeoutPersistence/TimoutDataSortedByType
我将这个工作人员作为我的经销商运行.像这样:
I run this worker as my Distributor. Like this:
NServiceBus.Host.exe
/install NServiceBus.Distributor NServiceBus.Production
/serviceName:BusDistributorService
/displayName:"Bus Distributor Service"
这个答案表明我需要删除并重新创建索引.
This answer indicates that I need to delete and recreate the index.
但是除了 NServiceBus 使用它之外,我对 RavenDB 一无所知,而且它以前从未给我带来过问题.当我没有这样做的经验时,我会犹豫是否使用我的产品系统.
But I don't know anything about RavenDB besides the fact that NServiceBus uses it and it has never caused me issues before. I am hesitant to play around with my prod system when I have no experience doing this.
谁能告诉我如何删除和重新创建此索引?
顺便说一句,有人知道这种错误是否意味着我丢失了消息?
As a side note, does anyone know if this kind of error means that I lost messages?
推荐答案
- 登录到运行 NServiceBus 的机器.
- 浏览到
http://localhost:8080/raven/studio.html
- 点击右上角的
Databases
. - 为您的队列选择数据库
- 选择索引(在工具栏"中间)
- 点击您需要修复的索引旁边的铅笔图标
- 截图/复制所有这些数据(应该有名称、地图和字段)
- 点击右上角的 X(注意:这将删除索引.)
- 再次点击
Indexes
(在工具栏"中) - 选择右上角的
Create Index
. - 从右上角选择
Add Field
. - 重新输入
RanvenTimeoutPersistence/TimeoutDataSortedByTime
的信息. - 选择右上角和侧面的保存图标.
- Log-In to the machine that runs NServiceBus.
- Browse to
http://localhost:8080/raven/studio.html
- Click on
Databases
in the upper right hand side. - Select the database for your queue
- Select indexes (in the middle of the "toolbar")
- Click on the pencil icon next to the index you need to fix
- Screenshot/copy all this data out (should have Name, Maps and Fields)
- Click on the X in the upper right hand side (NOTE: This will delete the index.)
- Click on
Indexes
again (in the "toolbar") - Select
Create Index
in the upper right hand side. - Select
Add Field
from the upper right hand side. - Reenter the information for the
RanvenTimeoutPersistence/TimeoutDataSortedByTime
. - Select the save Icon from the upper right and side.
这篇关于NServiceBus 的 RavenDB 索引错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!