refact: improve error info of edge-update-api by imbajin · Pull Request #1443 · apache/hugegraph

[ERROR] Tests run: 688, Failures: 0, Errors: 25, Skipped: 25, Time elapsed: 722.801 s <<< FAILURE! - in com.baidu.hugegraph.core.CoreTestSuite
[ERROR] testQueryEdgesByHasValues(com.baidu.hugegraph.core.EdgeCoreTest)  Time elapsed: 0.242 s  <<< ERROR!
com.baidu.hugegraph.exception.ExistedException: The edge label 'transfer' has existed
	at com.baidu.hugegraph.core.EdgeCoreTest.initSchema(EdgeCoreTest.java:144)
[ERROR] testAddEdgeWithTtlAndTtlStartTime(com.baidu.hugegraph.core.EdgeCoreTest)  Time elapsed: 0.182 s  <<< ERROR!
com.baidu.hugegraph.exception.ExistedException: The edge label 'authored' has existed
	at com.baidu.hugegraph.core.EdgeCoreTest.initSchema(EdgeCoreTest.java:150)
[ERROR] testQueryAllEdgesWithGraphAPI(com.baidu.hugegraph.core.EdgeCoreTest)  Time elapsed: 0.161 s  <<< ERROR!
com.baidu.hugegraph.exception.ExistedException: The edge label 'write' has existed
	at com.baidu.hugegraph.core.EdgeCoreTest.initSchema(EdgeCoreTest.java:155)
[ERROR] testQueryEdgesWithOrderBy(com.baidu.hugegraph.core.EdgeCoreTest)  Time elapsed: 0.169 s  <<< ERROR!
com.baidu.hugegraph.exception.ExistedException: The edge label 'look' has existed
	at com.baidu.hugegraph.core.EdgeCoreTest.initSchema(EdgeCoreTest.java:161)
[ERROR] testQueryEdgesOfVertexWithCustomizeId(com.baidu.hugegraph.core.EdgeCoreTest)  Time elapsed: 0.195 s  <<< ERROR!
com.baidu.hugegraph.exception.ExistedException: The edge label 'know' has existed
	at com.baidu.hugegraph.core.EdgeCoreTest.initSchema(EdgeCoreTest.java:165)
[ERROR] testQueryEdgeBeforeAfterUpdateMultiPropertyWithIndex(com.baidu.hugegraph.core.EdgeCoreTest)  Time elapsed: 0.243 s  <<< ERROR!
com.baidu.hugegraph.exception.ExistedException: The edge label 'followedBy' has existed
	at com.baidu.hugegraph.core.EdgeCoreTest.initSchema(EdgeCoreTest.java:169)
[ERROR] testUpdateEdgePropertyOfAggregateType(com.baidu.hugegraph.core.EdgeCoreTest)  Time elapsed: 0.222 s  <<< ERROR!
com.baidu.hugegraph.exception.ExistedException: The edge label 'friend' has existed
	at com.baidu.hugegraph.core.EdgeCoreTest.initSchema(EdgeCoreTest.java:173)
[ERROR] testAddEdgePropertyWithNotExistPropKey(com.baidu.hugegraph.core.EdgeCoreTest)  Time elapsed: 0.228 s  <<< ERROR!
com.baidu.hugegraph.exception.ExistedException: The edge label 'follow' has existed
	at com.baidu.hugegraph.core.EdgeCoreTest.initSchema(EdgeCoreTest.java:177)
[ERROR] testQueryEdgesOfVertex(com.baidu.hugegraph.core.EdgeCoreTest)  Time elapsed: 0.245 s  <<< ERROR!
com.baidu.hugegraph.exception.ExistedException: The edge label 'created' has existed
	at com.baidu.hugegraph.core.EdgeCoreTest.initSchema(EdgeCoreTest.java:181)
[ERROR] testQueryEdgeWithSecondaryIndexAndTtlInTx(com.baidu.hugegraph.core.EdgeCoreTest)  Time elapsed: 0.26 s  <<< ERROR!
com.baidu.hugegraph.exception.ExistedException: The edge label 'strike' has existed
	at com.baidu.hugegraph.core.EdgeCoreTest.initSchema(EdgeCoreTest.java:188)
[ERROR] testAddEdgePropertyWithIllegalValueForIndex(com.baidu.hugegraph.core.EdgeCoreTest)  Time elapsed: 0.852 s  <<< ERROR!
com.baidu.hugegraph.exception.ExistedException: The edge label 'read' has existed
	at com.baidu.hugegraph.core.EdgeCoreTest.initSchema(EdgeCoreTest.java:194)
[ERROR] testQueryByOutEWithDateProperty(com.baidu.hugegraph.core.EdgeCoreTest)  Time elapsed: 0.276 s  <<< ERROR!
com.baidu.hugegraph.exception.ExistedException: The edge label 'borrow' has existed
	at com.baidu.hugegraph.core.EdgeCoreTest.initSchema(EdgeCoreTest.java:201)
[ERROR] testListAccess(com.baidu.hugegraph.core.AuthTest)  Time elapsed: 0.213 s  <<< ERROR!
java.lang.IllegalArgumentException: Undefined property key: '~access_creator'
	at com.baidu.hugegraph.core.AuthTest.testListAccess(AuthTest.java:995)
[ERROR] testListBelong(com.baidu.hugegraph.core.AuthTest)  Time elapsed: 0.694 s  <<< ERROR!
java.lang.IllegalArgumentException: Undefined property key: '~belong_update'
	at com.baidu.hugegraph.core.AuthTest.testListBelong(AuthTest.java:691)
[ERROR] testUpdateAccess(com.baidu.hugegraph.core.AuthTest)  Time elapsed: 0.188 s  <<< ERROR!
java.lang.IllegalArgumentException: Undefined property key: '~access_creator'
	at com.baidu.hugegraph.core.AuthTest.testUpdateAccess(AuthTest.java:1099)
[ERROR] testUpdateBelong(com.baidu.hugegraph.core.AuthTest)  Time elapsed: 0.187 s  <<< ERROR!
java.lang.IllegalArgumentException: Undefined property key: '~belong_description'
	at com.baidu.hugegraph.core.AuthTest.testUpdateBelong(AuthTest.java:793)
[ERROR] testDeleteAccess(com.baidu.hugegraph.core.AuthTest)  Time elapsed: 0.194 s  <<< ERROR!
java.lang.IllegalArgumentException: Undefined property key: '~access_creator'
	at com.baidu.hugegraph.core.AuthTest.testDeleteAccess(AuthTest.java:1160)
[ERROR] testDeleteBelong(com.baidu.hugegraph.core.AuthTest)  Time elapsed: 0.196 s  <<< ERROR!
java.lang.IllegalArgumentException: Undefined property key: '~belong_update'
	at com.baidu.hugegraph.core.AuthTest.testDeleteBelong(AuthTest.java:833)
[ERROR] testRolePermission(com.baidu.hugegraph.core.AuthTest)  Time elapsed: 0.249 s  <<< ERROR!
java.lang.IllegalArgumentException: Undefined property key: '~belong_update'
	at com.baidu.hugegraph.core.AuthTest.testRolePermission(AuthTest.java:1220)
[ERROR] testListAllAccess(com.baidu.hugegraph.core.AuthTest)  Time elapsed: 0.207 s  <<< ERROR!
java.lang.IllegalArgumentException: Undefined property key: '~access_creator'
	at com.baidu.hugegraph.core.AuthTest.testListAllAccess(AuthTest.java:1040)
[ERROR] testListAllBelong(com.baidu.hugegraph.core.AuthTest)  Time elapsed: 0.221 s  <<< ERROR!
java.lang.IllegalArgumentException: Undefined property key: '~belong_update'
	at com.baidu.hugegraph.core.AuthTest.testListAllBelong(AuthTest.java:734)
[ERROR] testGetAccess(com.baidu.hugegraph.core.AuthTest)  Time elapsed: 0.193 s  <<< ERROR!
java.lang.IllegalArgumentException: Undefined property key: '~access_creator'
	at com.baidu.hugegraph.core.AuthTest.testGetAccess(AuthTest.java:1066)
[ERROR] testGetBelong(com.baidu.hugegraph.core.AuthTest)  Time elapsed: 0.192 s  <<< ERROR!
java.lang.IllegalArgumentException: Undefined property key: '~belong_update'
	at com.baidu.hugegraph.core.AuthTest.testGetBelong(AuthTest.java:758)
[ERROR] testCreateAccess(com.baidu.hugegraph.core.AuthTest)  Time elapsed: 0.198 s  <<< ERROR!
java.lang.IllegalArgumentException: Undefined property key: '~access_creator'
	at com.baidu.hugegraph.core.AuthTest.testCreateAccess(AuthTest.java:865)
[ERROR] testCreateBelong(com.baidu.hugegraph.core.AuthTest)  Time elapsed: 0.189 s  <<< ERROR!
java.lang.IllegalArgumentException: Undefined property key: '~belong_update'
	at com.baidu.hugegraph.core.AuthTest.testCreateBelong(AuthTest.java:611)
2021-05-08 03:59:54 723851 [hugegraph-shutdown] [INFO ] com.baidu.hugegraph.HugeGraph [] - HugeGraph is shutting down
2021-05-08 03:59:54 723859 [hugegraph-shutdown] [ERROR] com.baidu.hugegraph.HugeGraph [] - Error while shutdown
java.lang.AssertionError: 2
	at com.baidu.hugegraph.task.TaskManager.shutdown(TaskManager.java:180) ~[classes/:?]
	at com.baidu.hugegraph.HugeFactory.shutdown(HugeFactory.java:140) ~[classes/:?]
	at com.baidu.hugegraph.HugeFactory.lambda$static$0(HugeFactory.java:52) ~[classes/:?]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]
Exception in thread "hugegraph-shutdown" com.baidu.hugegraph.HugeException: Failed to shutdown
	at com.baidu.hugegraph.HugeFactory.shutdown(HugeFactory.java:144)
	at com.baidu.hugegraph.HugeFactory.lambda$static$0(HugeFactory.java:52)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.AssertionError: 2
	at com.baidu.hugegraph.task.TaskManager.shutdown(TaskManager.java:180)
	at com.baidu.hugegraph.HugeFactory.shutdown(HugeFactory.java:140)
	... 2 more
[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Errors: 
[ERROR]   AuthTest.testCreateAccess:865 » IllegalArgument Undefined property key: '~acce...
[ERROR]   AuthTest.testCreateBelong:611 » IllegalArgument Undefined property key: '~belo...
[ERROR]   AuthTest.testDeleteAccess:1160 » IllegalArgument Undefined property key: '~acc...
[ERROR]   AuthTest.testDeleteBelong:833 » IllegalArgument Undefined property key: '~belo...
[ERROR]   AuthTest.testGetAccess:1066 » IllegalArgument Undefined property key: '~access...
[ERROR]   AuthTest.testGetBelong:758 » IllegalArgument Undefined property key: '~belong_...
[ERROR]   AuthTest.testListAccess:995 » IllegalArgument Undefined property key: '~access...
[ERROR]   AuthTest.testListAllAccess:1040 » IllegalArgument Undefined property key: '~ac...
[ERROR]   AuthTest.testListAllBelong:734 » IllegalArgument Undefined property key: '~bel...
[ERROR]   AuthTest.testListBelong:691 » IllegalArgument Undefined property key: '~belong...
[ERROR]   AuthTest.testRolePermission:1220 » IllegalArgument Undefined property key: '~b...
[ERROR]   AuthTest.testUpdateAccess:1099 » IllegalArgument Undefined property key: '~acc...
[ERROR]   AuthTest.testUpdateBelong:793 » IllegalArgument Undefined property key: '~belo...
[ERROR]   EdgeCoreTest.initSchema:194 » Existed The edge label 'read' has existed
[ERROR]   EdgeCoreTest.initSchema:177 » Existed The edge label 'follow' has existed
[ERROR]   EdgeCoreTest.initSchema:150 » Existed The edge label 'authored' has existed
[ERROR]   EdgeCoreTest.initSchema:155 » Existed The edge label 'write' has existed
[ERROR]   EdgeCoreTest.initSchema:201 » Existed The edge label 'borrow' has existed
[ERROR]   EdgeCoreTest.initSchema:169 » Existed The edge label 'followedBy' has existed
[ERROR]   EdgeCoreTest.initSchema:188 » Existed The edge label 'strike' has existed
[ERROR]   EdgeCoreTest.initSchema:144 » Existed The edge label 'transfer' has existed
[ERROR]   EdgeCoreTest.initSchema:181 » Existed The edge label 'created' has existed
[ERROR]   EdgeCoreTest.initSchema:165 » Existed The edge label 'know' has existed
[ERROR]   EdgeCoreTest.initSchema:161 » Existed The edge label 'look' has existed
[ERROR]   EdgeCoreTest.initSchema:173 » Existed The edge label 'friend' has existed
[INFO] 
[ERROR] Tests run: 688, Failures: 0, Errors: 25, Skipped: 25