nebula-contrib / ngbatis

NGBATIS is a database ORM framework base NebulaGraph + spring-boot, which takes advantage of the mybatis’ fashion development, including some de-factor operations in single table and vertex-edge, like mybatis-plus. NGBATIS 是一款针对 NebulaGraph + Springboot 的数据库 ORM 框架。借鉴于 MyBatis 的使用习惯进行开发。https://graph-cn.github.io/ngbatis-docs/
https://nebula-contrib.github.io/ngbatis/
Apache License 2.0
132 stars 42 forks source link

ngbatis reconnecting to survive a NebulaGraph restart #179

Open zhangxk-ocean opened 1 year ago

zhangxk-ocean commented 1 year ago

1、停止nebula 2、查询nebula,页面报错 3、重新启动nebula 4、查询nebula,页面仍然报错,没有重新连接 ngbatis怎么配置,nebula启动之后,可自动重连呢 image

CorvusYe commented 1 year ago

目前sessionPool在ngbatis中还没有重连机制,刚刚看了下,用的是nebula-java原生的SessionPool https://github.com/nebula-contrib/ngbatis/blob/master/src/main/java/org/nebula/contrib/ngbatis/NgbatisBeanFactoryPostProcessor.java#L199-L199

有更详细的日志吗