You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by GitBox <gi...@apache.org> on 2022/06/30 04:17:11 UTC

[GitHub] [incubator-hugegraph] homealim2012 opened a new issue, #1912: Failed to load, cause: The primary keys of the table 'xxx' shouldn't be empty

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

   ### Problem Type (问题类型)
   
   server status (启动/运行异常)
   
   ### Before submit
   
   - [X] 我已经确认现有的 [Issues](https://github.com/hugegraph/hugegraph/issues) 与 [FAQ](https://hugegraph.github.io/hugegraph-doc/guides/faq.html) 中没有相同 / 重复问题
   
   ### Environment (环境信息)
   
   - Server Version: v0.12.x
   - Backend: RocksDB, SSD 
   
   
   
   ### Your Question (问题描述)
   
   Failed to load, cause: The primary keys of the table 'xxx' shouldn't be empty
   
   2022-06-30 12:11:10 [main] [INFO ] c.b.h.l.HugeGraphLoader [] - Prepare to clear the data of graph 'hugegraph'
   2022-06-30 12:11:15 [main] [INFO ] c.b.h.l.HugeGraphLoader [] - The graph 'hugegraph' has been cleared successfully
   2022-06-30 12:11:58 [main] [INFO ] c.b.h.l.r.j.RowFetcher [] - Connect to database jdbc:mysql://127.0.0.1:3306/xxx?useSSL=false&characterEncoding=UTF-8&rewriteBatchedStatements=true&useServerPrepStmts=false&autoReconnect=true
   2022-06-30 12:11:59 [main] [ERROR] c.b.h.l.u.Printer [] - Failed to load, cause: The primary keys of the table 'xxx' shouldn't be empty
   java.lang.IllegalArgumentException: The primary keys of the table 'xxx' shouldn't be empty
           at com.google.common.base.Preconditions.checkArgument(Preconditions.java:164) ~[guava-29.0-jre.jar:?]
           at com.baidu.hugegraph.util.E.checkArgument(E.java:56) ~[hugegraph-common-2.0.1.jar:2.0.1.0]
           at com.baidu.hugegraph.loader.reader.jdbc.RowFetcher.readPrimaryKey(RowFetcher.java:112) ~[hugegraph-loader-0.12.0.jar:?]
           at com.baidu.hugegraph.loader.reader.jdbc.JDBCReader.init(JDBCReader.java:64) ~[hugegraph-loader-0.12.0.jar:?]
           at com.baidu.hugegraph.loader.HugeGraphLoader.loadStructs(HugeGraphLoader.java:217) ~[hugegraph-loader-0.12.0.jar:?]
           at com.baidu.hugegraph.loader.HugeGraphLoader.loadInputs(HugeGraphLoader.java:201) ~[hugegraph-loader-0.12.0.jar:?]
           at com.baidu.hugegraph.loader.HugeGraphLoader.loadInputs(HugeGraphLoader.java:173) ~[hugegraph-loader-0.12.0.jar:?]
           at com.baidu.hugegraph.loader.HugeGraphLoader.load(HugeGraphLoader.java:110) [hugegraph-loader-0.12.0.jar:?]
           at com.baidu.hugegraph.loader.HugeGraphLoader.main(HugeGraphLoader.java:73) [hugegraph-loader-0.12.0.jar:?]
   2022-06-30 12:11:59 [main] [INFO ] c.b.h.l.HugeGraphLoader [] - Stop loading then shutdown HugeGraphLoader
   2022-06-30 12:11:59 [main] [INFO ] c.b.h.l.t.TaskManager [] - Waiting for the insert tasks to finish
   2022-06-30 12:11:59 [main] [INFO ] c.b.h.l.t.TaskManager [] - All the insert tasks finished
   2022-06-30 12:11:59 [main] [INFO ] c.b.h.l.t.TaskManager [] - The batch-mode tasks service executor shutdown
   2022-06-30 12:11:59 [main] [INFO ] c.b.h.l.t.TaskManager [] - The single-mode tasks service executor shutdown
   2022-06-30 12:11:59 [main] [INFO ] c.b.h.l.e.LoadContext [] - Close all failure loggers successfully
   2022-06-30 12:11:59 [main] [INFO ] c.b.h.l.e.LoadContext [] - Write load progress successfully
   2022-06-30 12:11:59 [main] [INFO ] c.b.h.l.e.LoadContext [] - Close HugeClient successfully
   
   
   ### 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: dev-unsubscribe@hugegraph.apache.org.apache.org

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


[GitHub] [incubator-hugegraph] github-actions[bot] commented on issue #1912: Failed to load, cause: The primary keys of the table 'xxx' shouldn't be empty

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #1912:
URL: https://github.com/apache/incubator-hugegraph/issues/1912#issuecomment-1200293242

   Due to the lack of activity, the current issue is marked as stale and will be closed after 20 days, any update will remove the stale label


-- 
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: dev-unsubscribe@hugegraph.apache.org

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


[GitHub] [incubator-hugegraph] zhoney commented on issue #1912: Failed to load, cause: The primary keys of the table 'xxx' shouldn't be empty

Posted by GitBox <gi...@apache.org>.
zhoney commented on issue #1912:
URL: https://github.com/apache/incubator-hugegraph/issues/1912#issuecomment-1185184079

   @Linary 这块当时有什么考虑吗?逻辑上看起来即使pri字段为空,也不影响后续的从sql数据库导入数据


-- 
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: dev-unsubscribe@hugegraph.apache.org

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


[GitHub] [incubator-hugegraph] homealim2012 commented on issue #1912: Failed to load, cause: The primary keys of the table 'xxx' shouldn't be empty

Posted by GitBox <gi...@apache.org>.
homealim2012 commented on issue #1912:
URL: https://github.com/apache/incubator-hugegraph/issues/1912#issuecomment-1170844578

   我参考了  Not allowed empty primary values #847, 发现当查询视图时时发现information_schema.columns表中的没有值为pri字段


-- 
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: dev-unsubscribe@hugegraph.apache.org

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


[GitHub] [incubator-hugegraph] github-actions[bot] closed issue #1912: Failed to load, cause: The primary keys of the table 'xxx' shouldn't be empty

Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed issue #1912: Failed to load, cause: The primary keys of the table 'xxx' shouldn't be empty
URL: https://github.com/apache/incubator-hugegraph/issues/1912


-- 
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: dev-unsubscribe@hugegraph.apache.org

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