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

[shell] volume.fix.replication does not move volume files to different DC for replica_placement:100 #1626

Closed
kmlebedev opened this issue Nov 19, 2020 · 1 comment

Comments

@kmlebedev
Copy link
Contributor

kmlebedev commented Nov 19, 2020

At the same time, volume.balance wants

volume.balance -collection registry
moving volume registry_478 fast-volume-2.dc1:8080 => fast-volume-2.dc2:8080
moving volume registry_267 fast-volume-3.dc1:8080 => fast-volume-1.dc2:8080

volume.list

      DataNode fast-volume-2.dc1:8080 volume:60/120 active:60 free:60 remote:0
        volume id:478  size:5446416696  collection:"registry"  file_count:1680  delete_count:618  deleted_byte_count:1061916457  replica_placement:100  version:3  compact_revision:7  modified_at_second:1605783149
      DataNode fast-volume-3.dc1:8080 volume:64/120 active:64 free:56 remote:0
        volume id:267  size:10579082640  collection:"registry"  file_count:9482  delete_count:423  deleted_byte_count:50011  replica_placement:100  version:3  modified_at_second:1605755270
      DataNode fast-volume-0.dc2:8080 volume:41/120 active:41 free:79 remote:0
        volume id:267  size:10579082640  collection:"registry"  file_count:9482  delete_count:423  deleted_byte_count:50011  replica_placement:100  version:3  modified_at_second:1605755270
      DataNode fast-volume-4.dc2:8080 volume:31/120 active:31 free:89 remote:0
        volume id:478  size:5446416696  collection:"registry"  file_count:1680  delete_count:618  deleted_byte_count:1061916457  replica_placement:100  version:3  compact_revision:7  modified_at_second:1605783149
@chrislusf
Copy link
Collaborator

Thanks! Added test cases and a fix for this.

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

2 participants