Skip to content

MoveTablet not working as expected. (v25.0.0-preview1) #9392

@MichelDiz

Description

@MichelDiz

Describe the bug

moveTablet not working as expected.

I have not enabled ACL or namespaces. So it should not be showing me namespace prefixes on Tablets.

To Reproduce

Steps to reproduce the behavior:

  1. http://localhost:6080/moveTablet?tablet=0-name&group=2
    got error
{"errors":[{"message":"namespace: 0. No tablet found for: 0-name","extensions":{"code":"ErrorInvalidRequest"}}]}

Or

mutation MoveTablet($input: MoveTabletInput!) {
  moveTablet(input: $input) {
    response {
      message
      code
    }
  }
}
{
  "input": {
    "tablet": "0-name",
    "namespace": 0,
    "groupId": 2
  }
}

From state

        {
          "id": 3,
          "tablets": [
            {
              "groupId": 3,
              "predicate": "0-name",
              "force": null,
              "space": null,
              "remove": null,
              "readOnly": null,
              "moveTs": null
            }
          ],
          "snapshotTs": null,
          "checksum": 7119384243311962000
        },
...

GraphQL Admin error

{
  "errors": [
    {
      "message": "resolving moveTablet failed because rpc error: code = Unknown desc = namespace: 0. No tablet found for: 0-name",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ]
    }
  ]
}

Current Solution?

remove the prefix

{
  "input": {
    "tablet": "name",
    "namespace": 0,
    "groupId": 2
  }
}

And I get

"namespace: 0. Predicate: [name] moved from group [3] to [2]"

Environment

  • OS: macOS
  • Language Go
  • Version Latest Main - v25.0.0-preview1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions