Skip to content

[Bug] HStore get version NPE #2743

@JackyYangPassion

Description

@JackyYangPassion

Bug Type (问题类型)

None

Before submit

  • 我已经确认现有的 IssuesFAQ 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)

Environment (环境信息)

  • Server Version: master
  • Backend: HStore
  • OS: Mac

Expected & Actual behavior (期望与实际表现)

Store LOG

2025-03-09 23:56:59 [ partition-hb] [ERROR] o.a.h.s.u.Version - Version.getVersion exception: 
java.lang.NullPointerException: null
	at org.apache.hugegraph.store.util.Version.getVersion(Version.java:36) ~[hg-store-core-1.5.0.jar!/:1.5.0]
	at org.apache.hugegraph.store.meta.Store.<init>(Store.java:67) ~[hg-store-core-1.5.0.jar!/:1.5.0]
	at org.apache.hugegraph.store.pd.DefaultPdProvider.getStoreByID(DefaultPdProvider.java:402) ~[hg-store-core-1.5.0.jar!/:1.5.0]
	at org.apache.hugegraph.store.meta.PartitionManager.getStore(PartitionManager.java:674) ~[hg-store-core-1.5.0.jar!/:1.5.0]
	at org.apache.hugegraph.store.meta.PartitionManager.lambda$getShardByRaftEndpoint$12(PartitionManager.java:839) ~[hg-store-core-1.5.0.jar!/:1.5.0]
	at java.util.ArrayList.forEach(ArrayList.java:1541) ~[?:?]
	at org.apache.hugegraph.store.meta.PartitionManager.getShardByRaftEndpoint(PartitionManager.java:838) ~[hg-store-core-1.5.0.jar!/:1.5.0]
	at org.apache.hugegraph.store.PartitionEngine.lambda$getAlivePeers$11(PartitionEngine.java:524) ~[hg-store-core-1.5.0.jar!/:1.5.0]
	at java.util.ArrayList.forEach(ArrayList.java:1541) ~[?:?]
	at org.apache.hugegraph.store.PartitionEngine.getAlivePeers(PartitionEngine.java:523) ~[hg-store-core-1.5.0.jar!/:1.5.0]
	at org.apache.hugegraph.store.HeartbeatService.partitionHeartbeat(HeartbeatService.java:307) ~[hg-store-core-1.5.0.jar!/:1.5.0]
	at org.apache.hugegraph.store.HeartbeatService.doPartitionHeartbeat(HeartbeatService.java:156) ~[hg-store-core-1.5.0.jar!/:1.5.0]
	at org.apache.hugegraph.store.HeartbeatService$2.run(HeartbeatService.java:100) ~[hg-store-core-1.5.0.jar!/:1.5.0]
	at java.lang.Thread.run(Thread.java:834) ~[?:?]

i will fix it ASAP

Metadata

Metadata

Labels

bugSomething isn't workingstoreStore module

Type

No type

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions