Skip to content

rgw/multisite: add datalog entry after dir_suggest_changes in bucket listing - #54086

Closed
smanjara wants to merge 1 commit into
ceph:mainfrom
smanjara:wip-rgw-add-datalog-entry
Closed

smanjara wants to merge 1 commit into
ceph:mainfrom
smanjara:wip-rgw-add-datalog-entry

Conversation

@smanjara

Copy link
Copy Markdown
Contributor

https://tracker.ceph.com/issues/63235

Contribution Guidelines

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

@smanjara
smanjara requested a review from a team as a code owner October 19, 2023 03:54
@github-actions github-actions Bot added the rgw label Oct 19, 2023
@smanjara smanjara closed this Oct 26, 2023
@smanjara smanjara reopened this Nov 15, 2023
@smanjara

Copy link
Copy Markdown
Contributor Author

for the bilog updates, we batch up dir suggest updates for each shard and call aio_operate() on them in
https://github.com/ceph/ceph/blob/main/src/rgw/driver/rados/rgw_rados.cc#L9443-L9453

we need something similar for datalog entry updates corresponding to those shards. there is an AioCompletion version of FIFO push added by @adamemerson in https://github.com/ceph/ceph/blob/main/src/rgw/driver/rados/cls_fifo_legacy.cc#L1611
It hasn't been used by any rgw calls, but there are some unit tests for these in test_cls_fifo_legacy.cc

@smanjara

Copy link
Copy Markdown
Contributor Author

@cbodley I have some bullet points added here from whatever I have gathered about async datalog push after going through the code and from our meetings:
https://gist.github.com/smanjara/b5b71d719f1f9e93d839e8c5e92a697a#file-datalog_push-md

please take a look.

@smanjara
smanjara force-pushed the wip-rgw-add-datalog-entry branch from ff82b99 to 2ffe6d9 Compare January 22, 2024 22:20
}

for (auto shard_id : shards) {
// int r = datalog->add_entry_aio(dpp, bucket_info, logs.back(), shard_id, c, y);

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.

@cbodley I still need to construct a completion object and pass it into add_entry_aio() here
does this need to be a coroutine function where I can call create_completion_notifier()?

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.

@adamemerson we'd like your opinion on this. i need to construct and pass in a completion object here, and I think we'd want to get its return value if there is an error. is it required to put this in a coroutine like you've done for datalog trim_entries().

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.

If you want to act on the error rather than simply returning it to the caller, you'll need a state machine like GenTrim.

If you just want to return an error code to the caller and you're done, you should be able to pass the caller's AioCompletion in.

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.

thanks @adamemerson.
it looks like we don't care about what happens to the bilog suggested updates. we seem to simply fire them off. I don't think we need to care about handling datalog op failures either @cbodley

@github-actions

github-actions Bot commented Apr 7, 2024

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label Apr 7, 2024
@github-actions

github-actions Bot commented May 7, 2024

Copy link
Copy Markdown

This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution!

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