Repository navigation
rgw, [RFC]: cls_fifo-based BILog, the writer and reader parts - #37786
Closed
rzarzynski wants to merge 70 commits into
Closed
rzarzynski wants to merge 70 commits into
rzarzynski wants to merge 70 commits into
Conversation
It's unnecessary as, after a change, BILog is not touched at the "prepare" stage of a modification to Bucket Index anymore. This commit preserves the exact marshalling compatibility. Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
…ence. Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
It's unnecessary legacy which was blocking the refactor of RGWRados::Bucket::UpdateIndex. Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Before the commit `RGWRados::cls_obj_complete_cancel()` was taking the `bilog_flags` parameter. However, this dependency is superficial -- the input is never used on the cancelation handling path in `cls_rgw`. Its presence was an artifact coming from the fact that multiple variants of BI completion share the same `rgw_cls_obj_complete_op` structure for client- OSD transport. Signed-off-by: Radoslaw Zarzynski <[email protected]>
This isn't actually class-specific information but rather method-specific. Signed-off-by: Radoslaw Zarzynski <[email protected]>
The complex, two-stage construction pattern is not necessary. The commit replaces it with single stage construction taking `rgw_zone_set` optionally. Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
It's unnecessary to have the declaration in the header as all of its users are in the rgw_rados.cc we're moving to. This commit ONLY moves the code. No additional changes here. Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
This enables further modifications towards making clients of `rgw_cls` aware about the `RGWModifyOp` and other bilog's details. We want the extra coupling there for the sake of the cls_fifo-based BI logging which is going to happen at the client layer. Signed-off-by: Radoslaw Zarzynski <[email protected]>
This enables further modifications towards making clients of `rgw_cls` aware about the `RGWModifyOp` and other bilog's details. We want the extra coupling there for the sake of the cls_fifo-based BI logging which is going to happen at the client layer. Signed-off-by: Radoslaw Zarzynski <[email protected]>
Clients of cls_rgw (RadosGW itself) need to have these details exposed for the sake of separating BILog in the future (a.k.a the BILog OMAP offload). Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
This commit is focused on switching to `bi_updater` the part of `RGWRados::cls_obj_complete_op()` that is responsible for handling AIO completions. It's necessary as `bi_updater` is the only component responsible for orchestrating BILog updates. At the moment this boils down to just: `svc.zone->get_zone().log_data` but will be extended by further commits to dispatch between the cls_fifo-based and omap-based BILog's backends. Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
The idea is to use a compiler to ensure there is no data modification between the place an operation is decoded and the call to `log_index_operation()`. Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
This is the part for `rgw_bucket_unlink_instance()`. Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
It's never used neither in the case of `rgw_bucket_dir_entry` nor `rgw_bi_log_entry`. Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
This commit also makes tiny clean-ups (like limiting a variable's scope) in the areas of the main change. Signed-off-by: Radoslaw Zarzynski <[email protected]>
+ /* `RGWRados::get_bucket_stats()` mixes different resposibilities: + * retrieval of bucket's statistics with max_marker and sync control. + * Unfortunately, this is just a reflection of our data structures. + * The same `rgw_bucket_dir_header` carries things from both domains: + * _Bucket Index_ and _Bucket Index Log_. + * In the future we should consider introduction of an interface: Signed-off-by: Radoslaw Zarzynski <[email protected]>
In this commit `get_log_status()` of `RGWSI_BILog_RADOS` gets replaced by `lot_get_max_marker()`. The main difference between them, apart naming (which better reflects the purpose, I hope), is the arrangement of input. After the rework it's a caller's responsibility to provide the `rgw_bucket_dir_header` map. That is, the method is no longer tasked with retrieving it which was accomplished via `RGWSI_BucketIndex_RADOS::cls_bucket_head()`. The motivation here is the need to differentiate the `max_marker` handling between the BILog backends. The commit also renames the `cls_bucket_head()` methods to `get_dir_headers()`. Signed-off-by: Radoslaw Zarzynski <[email protected]>
The idea here is to make the `BucketIndexShardsManager`-based policy for primitive `max_marker` calculation to the InIndex backend BILog. Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
In this commit the `BILogUpdateBatchFIFO` explicitly calls `RGWSI_BILog_RADOS_FIFO` to prepare a handle to `cls_fifo`. Apart from deduplicating the code, it strengthens the coupling between these two classes which is actually good -- they are truly interconnected and this bond should be reflected. Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
`RGWOp_BILog_Info` selects the bucket to provide information about using two alternative parameters from a query string: * `bucket` or * `bucket-instance`. However, the current implementation de facto accepts only the latter one. The problem arose because of unconditional `rgw_bucket_parse_bucket_instance()` -- even when `bucket- instance` is empty. This leads to constantly returning `EINVAL` when a client uses `bucket`. Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
rzarzynski
force-pushed
the
wip-rgw-bilog-in-cls_fifo_reader
branch
from
October 25, 2020 22:07
d2a51d4 to
e6e787a
Compare
Signed-off-by: Radoslaw Zarzynski <[email protected]>
…e(). Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
rzarzynski
commented
Nov 13, 2020
| list_state, | ||
| get_zones_trace(svc.zone->get_zone(), | ||
| bucket_info.bucket, | ||
| nullptr)); |
Contributor
Author
There was a problem hiding this comment.
The check_disk_state() paths miss zones_trace usually saw when modifying BILog. Passing nullptr here, so the returned rgw_zone_set instance will have single item only: the one constructed basing on RGWRados::svc.zone->get_zone(). Is this enough?
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the continuation of #37108.
TODO
optional_yieldto not block on interactions withcls_fifo.cls_fifo.Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox