Skip to content

bug: restart etcd admin api /apisix/admin/routes response is error #9618

Description

@Xusq513

Current Behavior

{
    "createdIndex": 10,
    "value": {

        "uri": "/test/*",
        "name": "test-默认路由",
        "id": "test",
        "priority": 0,
        "labels": {
            "systemCode": "test"
        },
        "upstream_id": "test",
        "create_time": 1686127207,
        "update_time": 1686127207,
        "status": 1
    },
    "key": "/apisix/routes/test",
    "modifiedIndex": 10
}

Expected Behavior

{
    "total": 1,
    "list": [
        {
    "createdIndex": 10,
    "value": {

        "uri": "/test/*",
        "name": "test-默认路由",
        "id": "test",
        "priority": 0,
        "labels": {
            "systemCode": "test"
        },
        "upstream_id": "test",
        "create_time": 1686127207,
        "update_time": 1686127207,
        "status": 1
    },
    "key": "/apisix/routes/test",
    "modifiedIndex": 10
}
    ]
}

Error Logs

No response

Steps to Reproduce

  1. start apisix and etcd
  2. query /apisix/admin/routes ,the result is right
  3. stop etcd
  4. start etcd
  5. query /apisix/admin/routes ,the result is error

Environment

  • APISIX version (run apisix version): 3.2.0 (3 nodes)
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):3.5.7

Metadata

Metadata

Labels

bugSomething isn't workingquestionlabel for questions asked by userswait for updatewait for the author's response in this issue/PR

Type

No type

Projects

Status
✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions