Skip to content

[Bug] Can not delete vertex labels when use standalone mode and set server.role=computer #2675

@shirleyStorage

Description

@shirleyStorage

Bug Type (问题类型)

rest-api (结果不合预期)

Before submit

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

Environment (环境信息)

  • Server Version: 1.0.0 (Apache Release Version)
  • Backend: RocksDB x nodes, HDD or SSD
  • OS: xx CPUs, xx G RAM, Ubuntu 2x.x / CentOS 7.x
  • Data Size: xx vertices, xx edges

Expected & Actual behavior (期望与实际表现)

curl -X POST http://localhost:8080/graphs/hugegraph/schema/propertykeys \
-H "Content-Type: application/json" \
-d '
{
    "name": "name",
    "data_type": "TEXT",
    "cardinality": "SINGLE"
}
';

curl -X POST http://localhost:8080/graphs/hugegraph/schema/propertykeys \
-H "Content-Type: application/json" \
-d '
{
    "name": "age",
    "data_type": "INT",
    "cardinality": "SINGLE"
}
';

curl -X POST http://localhost:8080/graphs/hugegraph/schema/vertexlabels \
     -H "Content-Type: application/json" \
     -d '{
    "name": "person",
    "id_strategy": "DEFAULT",
    "properties": [
        "name",
        "age"
    ],
    "primary_keys": [
        "name"
    ],
    "nullable_keys": [],
    "enable_label_index": true
}
';

curl -X DELETE http://localhost:8080/graphs/hugegraph/schema/vertexlabels/person ;


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

curl -X DELETE http://localhost:8080/graphs/hugegraph/schema/vertexlabels/person

return :

Can't schedule task on non-master server


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

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiChanges of APIbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions