You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hugegraph.apache.org by "lanerbean (via GitHub)" <gi...@apache.org> on 2023/05/13 09:45:36 UTC

[GitHub] [incubator-hugegraph] lanerbean opened a new issue, #2209: [Bug] The backend store version is inconsistent

lanerbean opened a new issue, #2209:
URL: https://github.com/apache/incubator-hugegraph/issues/2209

   ### Bug Type (问题类型)
   
   server status (启动/运行异常)
   
   ### Before submit
   
   - [X] 我已经确认现有的 [Issues](https://github.com/apache/hugegraph/issues) 与 [FAQ](https://hugegraph.apache.org/docs/guides/faq/) 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)
   
   ### Environment (环境信息)
   
   - Server Version: 1.0.0 (Apache Release Version)
   - Backend: MySQL
   - OS: CentOS 7.x 
   
   
   ### Expected & Actual behavior (期望与实际表现)
   
   When the HugeGraph Server and Hadoop cluster are shut down and restarted, an error is encountered, causing the startup to fail.
   ![error1](https://github.com/apache/incubator-hugegraph/assets/18582787/0e2af46d-5a07-4df4-b657-5b8f1252f725)
   
   
   
   ### Vertex/Edge example (问题点 / 边数据举例)
   
   _No response_
   
   ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


[GitHub] [incubator-hugegraph] lanerbean commented on issue #2209: [Bug] The backend store version is inconsistent

Posted by "lanerbean (via GitHub)" <gi...@apache.org>.
lanerbean commented on issue #2209:
URL: https://github.com/apache/incubator-hugegraph/issues/2209#issuecomment-1568067223

   > U could add & print the log (what's the differ version) and how to reproduce it?
   
   您好,我是在3台虚拟机上部署的Hadoop集群,并在其中一台机器上部署了HugeGraph,每次关闭HugeGraph,Hadoop集群,并且关闭虚拟机之后,第二天重启Hadoop集群,再开启HugeGraph Server时,就会出现图数据版本不一致的问题。
   
   我之前采用的解决方法非常暴力,直接删除了MySQL(后台图数据库)的hugegraph,然后在MySQL重新创建了hugegraph数据库,重新init和启动了HugeGraph Server。
   
   这种方法,会导致之前导入的图数据都会丢失,需要重新导入,很不方便。不知道该如何回避这种问题的出现。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


Re: [I] [Bug] The backend store version is inconsistent [incubator-hugegraph]

Posted by "robinhood-jim (via GitHub)" <gi...@apache.org>.
robinhood-jim commented on issue #2209:
URL: https://github.com/apache/incubator-hugegraph/issues/2209#issuecomment-1855438264

   存储store的m 库没有数据导致,添加下name version,value 提示的版本号就可以,问题是BackendStore代码逻辑里写了insert 为啥没有执行呢?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


Re: [I] [Bug] The backend store version is inconsistent [incubator-hugegraph]

Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on issue #2209:
URL: https://github.com/apache/incubator-hugegraph/issues/2209#issuecomment-1857211749

   > MysqlSystemStore 的init方法调用this.meta.writeVersion 应该将versin写入m表,问题是不管InitStore还是第一次启动,在mysql作为存储的情况下m表都是空的,导致下次启动时检查版本报错,我本地已重现两次,麻烦定位下问题点
   
   @z7658329 could u take a look for it?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


[GitHub] [incubator-hugegraph] lp19910807 commented on issue #2209: [Bug] The backend store version is inconsistent

Posted by "lp19910807 (via GitHub)" <gi...@apache.org>.
lp19910807 commented on issue #2209:
URL: https://github.com/apache/incubator-hugegraph/issues/2209#issuecomment-1556708566

   问一下楼主是怎么解决的,我这边也是同样的问题。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


[GitHub] [incubator-hugegraph] imbajin commented on issue #2209: [Bug] The backend store version is inconsistent

Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on issue #2209:
URL: https://github.com/apache/incubator-hugegraph/issues/2209#issuecomment-1568084725

   > 是不是因为HugeGraph和MySQL不在同一台机器上导致的呢?并且MySQL也是部署在虚拟机上的,应该也是关闭过服务又重启的
   
   虚拟机不会是影响点, 关键的问题应该是其他环境或者状态的变化, 最简单好排除的办法就是在容器里进行测试(获得一个 clean 的环境), 看是否还有同样的问题, 包括你在容器里可以把 mysql 也内嵌进去/或者是单独另一个容器关联都行.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


[GitHub] [incubator-hugegraph] lanerbean commented on issue #2209: [Bug] The backend store version is inconsistent

Posted by "lanerbean (via GitHub)" <gi...@apache.org>.
lanerbean commented on issue #2209:
URL: https://github.com/apache/incubator-hugegraph/issues/2209#issuecomment-1568078737

   是不是因为HugeGraph和MySQL不在同一台机器上导致的呢?并且MySQL也是部署在虚拟机上的,应该也是关闭过服务又重启的
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


[GitHub] [incubator-hugegraph] imbajin commented on issue #2209: [Bug] The backend store version is inconsistent

Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on issue #2209:
URL: https://github.com/apache/incubator-hugegraph/issues/2209#issuecomment-1546891172

   U could add & print the log (what's the differ version) and how to reproduce it?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


Re: [I] [Bug] The backend store version is inconsistent [incubator-hugegraph]

Posted by "robinhood-jim (via GitHub)" <gi...@apache.org>.
robinhood-jim commented on issue #2209:
URL: https://github.com/apache/incubator-hugegraph/issues/2209#issuecomment-1857201528

   MysqlSystemStore 的init方法调用this.meta.writeVersion 应该将versin写入m表,问题是不管InitStore还是第一次启动,在mysql作为存储的情况下m表都是空的,导致下次启动时检查版本报错,我本地已重现两次,麻烦定位下问题点


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


[GitHub] [incubator-hugegraph] lanerbean commented on issue #2209: [Bug] The backend store version is inconsistent

Posted by "lanerbean (via GitHub)" <gi...@apache.org>.
lanerbean commented on issue #2209:
URL: https://github.com/apache/incubator-hugegraph/issues/2209#issuecomment-1568057951

   
   
   
   > U could add & print the log (what's the differ version) and how to reproduce it?
   
   您好,我是在3台虚拟机上部署的Hadoop集群,并在其中一台机器上部署了HugeGraph,每次关闭HugeGraph,Hadoop集群,并且关闭虚拟机之后,第二天重启Hadoop集群,再开启HugeGraph Server时,就会出现图数据版本不一致的问题。
   
   我之前采用的解决方法非常暴力,因为我采用了MySQL作为后台的图数据库,我直接删除了MySQL的hugegraph,然后在MySQL重新创建了hugegraph数据库,重新init和启动了HugeGraph Server。
   
   这种方法,会导致我之前导入的图数据都会丢失,需要重新导入,很不方便。不知道该如何回避这种问题的出现。
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


[GitHub] [incubator-hugegraph] imbajin commented on issue #2209: [Bug] The backend store version is inconsistent

Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on issue #2209:
URL: https://github.com/apache/incubator-hugegraph/issues/2209#issuecomment-1568071476

   > > U could add & print the log (what's the differ version) and how to reproduce it?
   > 
   > 您好,我是在3台虚拟机上部署的Hadoop集群,并在其中一台机器上部署了HugeGraph,每次关闭HugeGraph,Hadoop集群,并且关闭虚拟机之后,第二天重启Hadoop集群,再开启HugeGraph Server时,就会出现图数据版本不一致的问题。
   > 
   > 我之前采用的解决方法非常暴力,直接删除了MySQL(后台图数据库)的hugegraph,然后在MySQL重新创建了hugegraph数据库,重新init和启动了HugeGraph Server。
   > 
   > 这种方法,会导致之前导入的图数据都会丢失,需要重新导入,很不方便。不知道该如何回避这种问题的出现。
   
   我理解 `hadoop` 环境在这里应该和图是基本没有关系的吧, mysql 来说, 一台单独的虚拟机甚至是容器环境应该也都足矣了, 能否保持一个 clean 的环境试试呢? 或者你甚至可以在  server 的 docker 镜像中配置一下 mysql, 然后看看是否会有类似问题


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org