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

rgw: pubsub sync module ignores ERR_USER_EXIST #34322

Merged
merged 1 commit into from Apr 1, 2020

Conversation

cbodley
Copy link
Contributor

@cbodley cbodley commented Mar 31, 2020

otherwise, this error gets returned by RGWPSDataSyncModule::start_sync() and data sync fails to start

Fixes: https://tracker.ceph.com/issues/44857

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

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

@@ -1055,7 +1055,7 @@ class RGWPSInitEnvCBCR : public RGWCoroutine {
create_user.display_name = "pubsub";
create_user.generate_key = false;
yield call(new RGWUserCreateCR(sync_env->async_rados, sync_env->store, create_user, sync_env->dpp));
if (retcode < 0) {
if (retcode < 0 && retcode != ERR_USER_EXIST) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops this needs to be -ERR_USER_EXIST

otherwise, this error gets returned by RGWPSDataSyncModule::start_sync()
and data sync fails to start

Fixes: https://tracker.ceph.com/issues/44857

Signed-off-by: Casey Bodley <cbodley@redhat.com>
@cbodley
Copy link
Contributor Author

cbodley commented Apr 1, 2020

@cbodley cbodley merged commit 3f2023e into ceph:master Apr 1, 2020
@cbodley cbodley deleted the wip-44857 branch April 1, 2020 18:25
@cbodley cbodley mentioned this pull request Apr 1, 2020
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants