Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MetaDataSyncer.isHavenaskShardChanged方法会返回NPE,导致节点失联 #346

Closed
weizijun opened this issue Dec 2, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@weizijun
Copy link
Collaborator

weizijun commented Dec 2, 2023

NPE报错如下:

failed to apply updated cluster state in [0s]:
version [1384], uuid [EKfudtDyTUaGBkXNzEr3zg], source [becoming candidate: joinLeaderInTerm]
java.lang.NullPointerException: null
        at org.havenask.engine.MetaDataSyncer.isHavenaskShardChanged(MetaDataSyncer.java:649) ~[?:?]
        at org.havenask.engine.MetaDataSyncer.shouldUpdateQrs(MetaDataSyncer.java:333) ~[?:?]
        at org.havenask.engine.MetaDataSyncer.applyClusterState(MetaDataSyncer.java:320) ~[?:?]
        at org.elasticsearch.cluster.service.ClusterApplierService.callClusterStateAppliers(ClusterApplierService.java:535) ~[elasticsearch-7.10.0.jar:7.10.0]
        at org.elasticsearch.cluster.service.ClusterApplierService.callClusterStateAppliers(ClusterApplierService.java:526) ~[elasticsearch-7.10.0.jar:7.10.0]
        at org.elasticsearch.cluster.service.ClusterApplierService.applyChanges(ClusterApplierService.java:496) ~[elasticsearch-7.10.0.jar:7.10.0]
        at org.elasticsearch.cluster.service.ClusterApplierService.runTask(ClusterApplierService.java:439) [elasticsearch-7.10.0.jar:7.10.0]
        at org.elasticsearch.cluster.service.ClusterApplierService$UpdateTask.run(ClusterApplierService.java:179) [elasticsearch-7.10.0.jar:7.10.0]
        at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:684) [elasticsearch-7.10.0.jar:7.10.0]
        at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:252) [elasticsearch-7.10.0.jar:7.10.0]
@Huaixinww
Copy link
Collaborator

fixed by:#349

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants