Skip to content

rgw: don't start the bucket notification thread in radosgw-admin - #50403

Merged
yuvalif merged 2 commits into
ceph:mainfrom
yuvalif:wip-yuval-dont-start-notif-thread
Mar 7, 2023
Merged

yuvalif merged 2 commits into
ceph:mainfrom
yuvalif:wip-yuval-dont-start-notif-thread

Conversation

@yuvalif

@yuvalif yuvalif commented Mar 6, 2023

Copy link
Copy Markdown
Contributor

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
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 dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

@cbodley cbodley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks great otherwise

Comment thread src/rgw/rgw_realm_reloader.cc Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i think this should be true instead. RGWRealmReloader only runs under rgw::AppMain, which isn't used by radosgw-admin. if we initialized the store with run_notification_thread=true, we should reload it with the same

Comment thread src/rgw/driver/rados/rgw_rados.h Outdated
Comment on lines 453 to 454

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i'd like to get in the habit of using member initializers instead of constructors for this, even if it's not consistent with other member variables in the class

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

i'd like to get in the habit of using member initializers instead of constructors for this,

agree

even if it's not consistent with other member variables in the class

i have to disagree here, as it would unnecessarily raise a question by someone reading the code - "why is that member different than the other?"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i'd just like to be able to make incremental progress. if you'd like to replace all of these with member initializers, that's great too but it does add unrelated changes to the diff

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

see: b1c4b7c471cbf3eada502a74764ffc6aac71df5b

@yuvalif
yuvalif force-pushed the wip-yuval-dont-start-notif-thread branch from 27bf0e6 to b1c4b7c Compare March 7, 2023 12:32
Comment thread src/rgw/driver/rados/rgw_rados.h Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

space happened

Comment thread src/rgw/driver/rados/rgw_rados.h Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

just personal preference, but i liked the original RGWGC* gc = nullptr; style better

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

agree that the assignment looks nicer. but decided to follow the "core guidelines" style.
though it does not matter in the above code, in genral curly bracets init is considered safer (does not allow narrowing)

@yuvalif
yuvalif force-pushed the wip-yuval-dont-start-notif-thread branch from b1c4b7c to a94f5b3 Compare March 7, 2023 14:50
@yuvalif
yuvalif merged commit 430edd3 into ceph:main Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants