Hazelcast - 所有者节点和备份节点是相同的

时间:2016-02-15 13:56:15

标签: java hazelcast

我正在使用hazelcast 3.6来聚类某些锁,我收到以下错误:

2016-02-15 08:30:56,212{GMT} ERROR c.h.c.l.o.UnlockIfLeaseExpiredOperation:[10.70.167.253]:6701 [dev] [3.6] Normally shouldn't happen! Owner node and backup node are the same! Partition [204]{
    0:Address[10.70.167.254]:6701
    1:Address[10.70.167.253]:6701
    2:Address[10.70.167.252]:6701
    3:Address[10.70.167.251]:6701
    4:Address[10.70.167.255]:6701
}java.lang.IllegalStateException: Normally shouldn't happen! Owner node and backup node are the same! Partition [204]{
    0:Address[10.70.167.254]:6701
    1:Address[10.70.167.253]:6701
    2:Address[10.70.167.252]:6701
    3:Address[10.70.167.251]:6701
    4:Address[10.70.167.255]:6701
}
    at com.hazelcast.spi.impl.operationservice.impl.OperationBackupHandler.assertNoBackupOnPrimaryMember(OperationBackupHandler.java:262) ~[hazelcast-3.6.jar:3.6]
    at com.hazelcast.spi.impl.operationservice.impl.OperationBackupHandler.sendSingleBackup(OperationBackupHandler.java:182) ~[hazelcast-3.6.jar:3.6]
    at com.hazelcast.spi.impl.operationservice.impl.OperationBackupHandler.makeBackups(OperationBackupHandler.java:159) ~[hazelcast-3.6.jar:3.6]
    at com.hazelcast.spi.impl.operationservice.impl.OperationBackupHandler.backup(OperationBackupHandler.java:78) ~[hazelcast-3.6.jar:3.6]
    at com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.sendBackup(OperationRunnerImpl.java:262) ~[hazelcast-3.6.jar:3.6]
    at com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.handleResponse(OperationRunnerImpl.java:245) ~[hazelcast-3.6.jar:3.6]
    at com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run(OperationRunnerImpl.java:173) ~[hazelcast-3.6.jar:3.6]
    at com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.processOperation(OperationThread.java:198) [hazelcast-3.6.jar:3.6]
    at com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.process(OperationThread.java:132) [hazelcast-3.6.jar:3.6]
    at com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.doRun(OperationThread.java:124) [hazelcast-3.6.jar:3.6]
    at com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.run(OperationThread.java:99) [hazelcast-3.6.jar:3.6]

2016-02-15 08:30:56,212{GMT} WARN  c.h.c.l.LockEvictionProcessor:[10.70.167.253]:6701 [dev] [3.6] Normally shouldn't happen! Owner node and backup node are the same! Partition [204]{
    0:Address[10.70.167.254]:6701
    1:Address[10.70.167.253]:6701
    2:Address[10.70.167.252]:6701
    3:Address[10.70.167.251]:6701
    4:Address[10.70.167.255]:6701
}java.lang.IllegalStateException: Normally shouldn't happen! Owner node and backup node are the same! Partition [204]{
    0:Address[10.70.167.254]:6701
    1:Address[10.70.167.253]:6701
    2:Address[10.70.167.252]:6701
    3:Address[10.70.167.251]:6701
    4:Address[10.70.167.255]:6701
}
    at com.hazelcast.spi.impl.operationservice.impl.OperationBackupHandler.assertNoBackupOnPrimaryMember(OperationBackupHandler.java:262) ~[hazelcast-3.6.jar:3.6]
    at com.hazelcast.spi.impl.operationservice.impl.OperationBackupHandler.sendSingleBackup(OperationBackupHandler.java:182) ~[hazelcast-3.6.jar:3.6]
    at com.hazelcast.spi.impl.operationservice.impl.OperationBackupHandler.makeBackups(OperationBackupHandler.java:159) ~[hazelcast-3.6.jar:3.6]
    at com.hazelcast.spi.impl.operationservice.impl.OperationBackupHandler.backup(OperationBackupHandler.java:78) ~[hazelcast-3.6.jar:3.6]
    at com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.sendBackup(OperationRunnerImpl.java:262) ~[hazelcast-3.6.jar:3.6]
    at com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.handleResponse(OperationRunnerImpl.java:245) ~[hazelcast-3.6.jar:3.6]
    at com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run(OperationRunnerImpl.java:173) ~[hazelcast-3.6.jar:3.6]
    at com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.processOperation(OperationThread.java:198) [hazelcast-3.6.jar:3.6]
    at com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.process(OperationThread.java:132) [hazelcast-3.6.jar:3.6]
    at com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.doRun(OperationThread.java:124) [hazelcast-3.6.jar:3.6]
    at com.hazelcast.spi.impl.operationexecutor.classic.OperationThread.run(OperationThread.java:99) [hazelcast-3.6.jar:3.6]

我在其他项目中使用的是3.5.X版,我没有遇到这个问题。我没有找到关于此错误的更多信息,我需要更改此版本的Hazelcast的一些设置吗?

1 个答案:

答案 0 :(得分:0)

正如您在Jaromir的评论中所看到的,这是一个已知问题,已在3.6.1中修复,如果您尚未更新,请考虑更新(https://github.com/hazelcast/hazelcast/pull/7405