Problem Type (问题类型)
None
Before submit
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