Skip to content

chore: fix GraphOfTheMoviesExample exception#1953

Merged
imbajin merged 1 commit intoapache:masterfrom
simon824:patch-1
Oct 8, 2022
Merged

chore: fix GraphOfTheMoviesExample exception#1953
imbajin merged 1 commit intoapache:masterfrom
simon824:patch-1

Conversation

@simon824
Copy link
Copy Markdown
Member

This pr will fix these exception:

Exception in thread "main" java.lang.IllegalArgumentException: No need to build index on properties [name], because they contains all primary keys [name] for vertex label 'person'
Exception in thread "main" java.lang.IllegalStateException: Stop the current transaction before opening another

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 23, 2022

Codecov Report

Merging #1953 (c2eec19) into master (5172f77) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #1953      +/-   ##
============================================
- Coverage     70.48%   70.47%   -0.02%     
+ Complexity      978      976       -2     
============================================
  Files           452      452              
  Lines         38990    38990              
  Branches       5554     5554              
============================================
- Hits          27482    27477       -5     
- Misses         8809     8814       +5     
  Partials       2699     2699              
Impacted Files Coverage Δ
...va/com/baidu/hugegraph/util/collection/IntSet.java 73.72% <0.00%> (-1.28%) ⬇️
.../baidu/hugegraph/security/HugeSecurityManager.java 76.88% <0.00%> (-1.01%) ⬇️
...a/com/baidu/hugegraph/backend/query/Condition.java 78.74% <0.00%> (-0.35%) ⬇️
...m/baidu/hugegraph/backend/tx/GraphTransaction.java 79.93% <0.00%> (-0.21%) ⬇️
...du/hugegraph/backend/tx/GraphIndexTransaction.java 83.66% <0.00%> (-0.11%) ⬇️
...om/baidu/hugegraph/backend/store/BackendTable.java 85.11% <0.00%> (+0.59%) ⬆️
...aidu/hugegraph/backend/store/hbase/HbaseTable.java 76.96% <0.00%> (+0.60%) ⬆️
...in/java/com/baidu/hugegraph/schema/IndexLabel.java 77.27% <0.00%> (+1.13%) ⬆️
...hugegraph/backend/store/raft/rpc/RpcForwarder.java 71.18% <0.00%> (+1.69%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

.sourceLabel("person").targetLabel("movie")
.create();

schema.indexLabel("personByName").onV("person").by("name")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THX, could add & run it in test/CI?

@imbajin imbajin changed the title chore: fix GraphOfTheMoviesExample Exception chore: fix GraphOfTheMoviesExample exception Oct 8, 2022
@imbajin imbajin merged commit 767bdfc into apache:master Oct 8, 2022
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

Successfully merging this pull request may close these issues.

3 participants