Skip to content

rgw/multisite: fix bucket shard state init function - #41337

Closed
yuvalif wants to merge 1 commit into
ceph:wip-rgw-multisite-reshardfrom
yuvalif:wip-yuval-fix-init-status-object
Closed

yuvalif wants to merge 1 commit into
ceph:wip-rgw-multisite-reshardfrom
yuvalif:wip-yuval-fix-init-status-object

Conversation

@yuvalif

@yuvalif yuvalif commented May 14, 2021

Copy link
Copy Markdown
Contributor
  • make sure src/dest shard ids are the same in sync pair
  • copy sync pair by value in coroutine loop

Signed-off-by: Yuval Lifshitz [email protected]


Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

* make sure src/dest shard ids are the same in sync pair
* copy sync pair by value in coroutine loop

Signed-off-by: Yuval Lifshitz <[email protected]>
@yuvalif

yuvalif commented May 14, 2021

Copy link
Copy Markdown
Contributor Author

when multisite test suite running locally, the following tests fail:

  • test_bucket_sync_disable - expected since disable/enable is not implemented yet
  • test_bucket_sync_disable_enable - expected since disable/enable is not implemented yet
  • test_bucket_sync_enable_right_after_disable - expected since disable/enable is not implemented yet
  • test_zg_master_zone_delete - @cbodley is this expected?

@yuvalif

yuvalif commented May 14, 2021

Copy link
Copy Markdown
Contributor Author

@cbodley is this a similar issue that needs to be fixed as well?

@cbodley

cbodley commented May 14, 2021

Copy link
Copy Markdown
Contributor

@cbodley is this a similar issue that needs to be fixed as well?

it looks like CheckAllBucketShardStatusIsIncremental is passing that reference through to the RGWReadBucketPipeSyncStatusCoroutine ctor, which uses it in RGWBucketPipeSyncStatusManager::inc_status_oid() to generate the object name. it's not storing the reference, so i think it's okay

@yuvalif

yuvalif commented May 14, 2021

Copy link
Copy Markdown
Contributor Author

@cbodley is this a similar issue that needs to be fixed as well?

it looks like CheckAllBucketShardStatusIsIncremental is passing that reference through to the RGWReadBucketPipeSyncStatusCoroutine ctor, which uses it in RGWBucketPipeSyncStatusManager::inc_status_oid() to generate the object name. it's not storing the reference, so i think it's okay

the question was not on storing the name. it was in incrementing the shard id for source and dest in line 2999:

sync_pair.dest_bs.shard_id = shard++;

@cbodley

cbodley commented May 14, 2021

Copy link
Copy Markdown
Contributor

okay yeah, that's probably broken too

@cbodley

cbodley commented May 14, 2021

Copy link
Copy Markdown
Contributor

thanks! i added that fix too, and merged your commit into merged into wip-rgw-multisite-reshard

@cbodley cbodley closed this May 14, 2021
@yuvalif

yuvalif commented May 15, 2021

Copy link
Copy Markdown
Contributor Author

thanks! i added that fix too, and merged your commit into merged into wip-rgw-multisite-reshard

thanks @cbodley !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants