NServiceBus 的 RavenDB 索引错误 [英] RavenDB Index Error With NServiceBus

查看:47
本文介绍了NServiceBus 的 RavenDB 索引错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行 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?

推荐答案

  1. 登录到运行 NServiceBus 的机器.
  2. 浏览到http://localhost:8080/raven/studio.html
  3. 点击右上角的Databases.
  4. 为您的队列选择数据库
  5. 选择索引(在工具栏"中间)
  6. 点击您需要修复的索引旁边的铅笔图标
  7. 截图/复制所有这些数据(应该有名称、地图和字段)
  8. 点击右上角的 X(注意:这将删除索引.)
  9. 再次点击Indexes(在工具栏"中)
  10. 选择右上角的Create Index.
  11. 从右上角选择Add Field.
  12. 重新输入 RanvenTimeoutPersistence/TimeoutDataSortedByTime 的信息.
  13. 选择右上角和侧面的保存图标.
  1. Log-In to the machine that runs NServiceBus.
  2. Browse to http://localhost:8080/raven/studio.html
  3. Click on Databases in the upper right hand side.
  4. Select the database for your queue
  5. Select indexes (in the middle of the "toolbar")
  6. Click on the pencil icon next to the index you need to fix
  7. Screenshot/copy all this data out (should have Name, Maps and Fields)
  8. Click on the X in the upper right hand side (NOTE: This will delete the index.)
  9. Click on Indexes again (in the "toolbar")
  10. Select Create Index in the upper right hand side.
  11. Select Add Field from the upper right hand side.
  12. Reenter the information for the RanvenTimeoutPersistence/TimeoutDataSortedByTime.
  13. Select the save Icon from the upper right and side.

这篇关于NServiceBus 的 RavenDB 索引错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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