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

通过Bolt连接TuGraph v4.5.0版本时,服务启动会报Health check failed #679

Closed
wuwj-cn opened this issue Sep 26, 2024 · 2 comments

Comments

@wuwj-cn
Copy link

wuwj-cn commented Sep 26, 2024

Environment:

  • OS: CentOS 7.9
  • CPU: Intel(R) Core(TM) i7-12700H
  • TuGraph-DB Version 4.5.0

Describe the bug

SpringBoot应用引入neo4j驱动依赖,通过bolt协议连接上tugraph时,在服务启动的时候会提示Health check failed

How to reproduce and expected behavior

系统服务启动时报错信息如下:
image

driver初始化方式如下:
image

引入的neo4j驱动依赖的版本如下
image

我有试过多个不同的neo4j-java-driver版本,最初参考官方文档中的4.4.2不行,后续逐步升级5.10.0,5.20.0,以及最新5.24.0,都会出现同一样的错误。

本地用的JDK17的版本,应用服务运行在docker环境中。

@wuwj-cn
Copy link
Author

wuwj-cn commented Oct 2, 2024

有看了一下neo4j-java-driver的源码,在5.19.0版本后,在启动时会去检查健康状态,应该是tugraph这边没支持导致去检查时报出了异常,这个是否官方能够看下能够支持?或者有其他方法可以处理这类的异常?

@wuwj-cn
Copy link
Author

wuwj-cn commented Oct 3, 2024

经过代码排查,发现是因为集成了springboot Actuator导致报出来的异常,Actuator会去检查TuGraph的健康状态,可以通过management.health.neo4j.enabled=false 的配置将健康检查关闭。

@wuwj-cn wuwj-cn closed this as completed Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant