Skip to content

fix: remove redirect-to-master from synchronous Gremlin API#2356

Merged
imbajin merged 2 commits intoapache:masterfrom
qwtsc:fix-redirect-masterrole
Nov 22, 2023
Merged

fix: remove redirect-to-master from synchronous Gremlin API#2356
imbajin merged 2 commits intoapache:masterfrom
qwtsc:fix-redirect-masterrole

Conversation

@qwtsc
Copy link
Copy Markdown
Contributor

@qwtsc qwtsc commented Nov 20, 2023

Purpose of the PR

see the discussion in #2355

Main Changes

Verifying these changes

  • Trivial rework / code cleanup without any test coverage. (No Need)
  • Already covered by existing tests, such as (please modify tests here).
  • Need tests and can be verified as follows:
    • xxx

Does this PR potentially affect the following parts?

  • Nope
  • Dependencies (add/update license info)
  • Modify configurations
  • The public API
  • Other affects (typed here)

Documentation Status

  • Doc - TODO
  • Doc - Done
  • Doc - No Need

@qwtsc qwtsc changed the title fix: remove redirect master role to align with behaviour of VertexApi fix: remove redirect master role to align with behaviour of VertexApi and EdgeApi Nov 20, 2023
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (25301f6) 64.32% compared to head (9fc5c96) 67.91%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2356      +/-   ##
============================================
+ Coverage     64.32%   67.91%   +3.58%     
+ Complexity      981      678     -303     
============================================
  Files           507      507              
  Lines         42073    42073              
  Branches       5831     5831              
============================================
+ Hits          27065    28573    +1508     
+ Misses        12317    10737    -1580     
- Partials       2691     2763      +72     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@imbajin
Copy link
Copy Markdown
Member

imbajin commented Nov 21, 2023

THX, shall we also address the #2355 (comment) ?

@javeme javeme changed the title fix: remove redirect master role to align with behaviour of VertexApi and EdgeApi fix: remove redirect-to-master from synchronous Gremlin API Nov 21, 2023
Copy link
Copy Markdown
Contributor

@javeme javeme left a comment

Choose a reason for hiding this comment

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

LGTM.
Thanks for your analysis and fix~

@qwtsc
Copy link
Copy Markdown
Contributor Author

qwtsc commented Nov 21, 2023

THX, shall we also address the #2355 (comment) ?

I think we need think about it carefully as it may result in more unpredictable concurrency safety issues such as issue if any node can do modifications to vertex label schema.

@imbajin imbajin merged commit 12b4940 into apache:master Nov 22, 2023
VGalaxies pushed a commit to VGalaxies/incubator-hugegraph that referenced this pull request Jan 12, 2024
…2356)

* fix: remove redirect master role to align with behaviour of VertexApi and EdgeApi

* chore: add back necessary annotation
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.

[Question] Why don't we need redirectMasterRole annotation in VertexApi and EdgeApi

4 participants