【发布时间】:2018-06-24 23:35:35
【问题描述】:
在 jgroups 自动选举集群中索引大约 180,000,000 条记录,一切正常(我索引和查询数据,结果似乎有效)但在每次启动和关闭时我都会遇到这类错误。是不是因为我必须关注的实验模式?
这是我在启动时得到的:
2018-01-16 08:46:43,315 ERROR [org.infinispan.persistence.sifs.Index]
(BCS-IndexUpdater-2) Error in indexer thread:
java.lang.IndexOutOfBoundsException
这是我在关机时得到的:
8-01-16 09:22:12,538 INFO [org.hibernate.search.backend.jgroups.impl.DispatchMessageSender](ServerService 线程池 -- 77)HSEARCH200017:断开和关闭 JGroups 通道到集群“休眠搜索集群” '
2018-01-16 09:22:12,579 错误 [org.infinispan.persistence.sifs.Index] (BCS-IndexUpdater-0) 索引器线程中的错误: java.lang.IndexOutOfBoundsException 在 java.nio.Buffer.checkIndex(Buffer.java:546) 在 java.nio.HeapByteBuffer.putLong(HeapByteBuffer.java:432) 在 org.infinispan.persistence.sifs.Index$Segment.shutdown(Index.java:368) 在 org.infinispan.persistence.sifs.Index$Segment.run(Index.java:265)
2018-01-16 09:22:12,583 错误 [org.infinispan.persistence.sifs.Index] (BCS-IndexUpdater-2) 索引器线程中的错误: java.lang.IndexOutOfBoundsException 在 java.nio.Buffer.checkIndex(Buffer.java:546) 在 java.nio.HeapByteBuffer.putLong(HeapByteBuffer.java:432) 在 org.infinispan.persistence.sifs.Index$Segment.shutdown(Index.java:368) 在 org.infinispan.persistence.sifs.Index$Segment.run(Index.java:265)
我的索引在两个字段中,并且都不是 Long 类型,以防错误与索引数据的类型有关:
@Id
@Type(type="objectid")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private String id;
@Temporal(TemporalType.TIMESTAMP)
@Field(index=Index.YES, analyze=Analyze.NO, store=Store.NO, norms=Norms.NO)
@DateBridge(resolution = Resolution.SECOND)
private Date dateCreated;
@Field(index=Index.YES, analyze=Analyze.NO, store=Store.NO, norms=Norms.NO)
private String eventType;
@Embedded
private Location location;
@Embedded
private EventStatus status;
之前有人遇到过同样的问题或有什么想法吗?谢谢。
【问题讨论】:
-
看起来像 Infinispan 的 sifs 中的一个错误。您能说说使用的版本吗?
-
Infinispan 8.2.7,休眠搜索 5.6.1,休眠 OGM 5.1。到目前为止,这个组合对我来说效果很好。谢谢!
-
@Sanne 我应该在某处报告吗?
-
看看这个问题是否仍然存在于最新的 Infinispan 版本中,即 9.1.4.Final 会很有趣。但是,我没有看到任何使用它的稳定 OGM 版本,也许您可以尝试使用开发 OGM 5.2 版本以防万一?如果问题仍然存在,报告的地方是here
-
@GalderZamarreno 我也尝试过,但在使用 OGM 5.2、Infinispan 9.1.4.Final 构建时遇到了麻烦。我不断收到 java.lang.ClassNotFoundException: org.infinispan.remoting.transport.jgroups.JGroupsTransport 即使该类存在并且所有内容都已清理和重建。我想这与版本有关,因为很难找到休眠搜索、ogm、infinispan 之间的工作组合。 ://
标签: java hibernate lucene hibernate-search infinispan