Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Garbage collector doesn't work with varbinary primary index #507

Open
lowitea opened this issue Dec 25, 2024 · 0 comments
Open

Garbage collector doesn't work with varbinary primary index #507

lowitea opened this issue Dec 25, 2024 · 0 comments

Comments

@lowitea
Copy link

lowitea commented Dec 25, 2024

Environment

Tarantool: 2.11.2
Vshard: 0.1.28

Space:

---yaml
- engine: memtx
  before_replace: 'function: 0x42739a18'
  field_count: 0
  is_sync: false
  is_local: false
  on_replace: 'function: 0x427399f0'
  temporary: false
  index:
    0: &0
      unique: true
      parts:
      - type: varbinary
        is_nullable: false
        fieldno: 2
      - type: varbinary
        is_nullable: false
        fieldno: 3
      hint: true
      id: 0
      type: TREE
      space_id: 516
      name: primary
    1: &1
      unique: false
      parts:
      - type: unsigned
        is_nullable: false
        fieldno: 1
      hint: true
      id: 1
      type: TREE
      space_id: 516
      name: bucket_id
    bucket_id: *1
    primary: *0
  type: normal
  enabled: true
  name: test_space
  id: 516
...

Description

If I trigger a rebalance on the space with a primary key with varbinary fields, the buckets will be moved to new replicasets. However, they will not be deleted from the old ones.

Logs

cluster.storage-1-1 | 2024-12-25 17:39:36.396 [188438] main/126/vshard.rebalancer/default I> Some buckets are not active, retry rebalancing later
cluster.storage-1-1 | 2024-12-25 17:39:39.731 [188438] main/124/vshard.gc/default init.lua:2244 E> Error during garbage collection step: Supplied key type of part 0 does not match index part type: expected varbinary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant