Skip to content

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

Description

@qwtsc

Problem Type (问题类型)

None

Before submit

  • 我已经确认现有的 IssuesFAQ 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)

Environment (环境信息)

hugegraph with the master branch

Your Question (问题描述)

I recently reviewed the hugegraph code base in detail. One thing confused me a lot is the master/slave design. It seems to use to schedule the async task to the whole cluster, but in the meanwhile it's also used to redirect the schema create/update/delete and gremlin api to master endpoint. It looks like that if we do the schema update in only one node (that is master node) then we can ensure the concurrent safety in the whole cluster without any distributed lock's help.

if the above reasoning makes sense, why don't we need redirectMasterRole annotation in VertexApi and EdgeApi when doing modification to vertex and edge? Is it a bug or just by design?

Vertex/Edge example (问题点 / 边数据举例)

No response

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions