-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
mon/PGMap: remove DIRTY field in ceph df detail
when cache tiering is not in use
#40337
Conversation
ceph df detail
since cache tiering is depreciatedceph df detail
since cache tiering is deprecated
2f779c3
to
7ce5fed
Compare
ff3d7fe
to
284b431
Compare
jenkins test make check |
53d145c
to
7cc7351
Compare
@neha-ojha all tests passed, can you take a look, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ideepika The current version of your PR does not remove the DIRTY
field entirely, it only displays the field, wherever it is relevant, but your commit messages still says "remove", can you please update them. Also, let's also avoid using "deprecate" in them, I don't think we have officially deprecated cache tiering.
ceph df detail
since cache tiering is deprecatedceph df detail
when cache tiering is not enabled
ceph df detail
when cache tiering is not enabledceph df detail
when cache tiering is not in use
6820a23
to
ba4ada4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could add a is_tier()
check for the formatted output too here https://github.com/ceph/ceph/blob/master/src/mon/PGMap.cc#L930
ba4ada4
to
6beed3e
Compare
1f8ce8f
to
8377d61
Compare
jenkins test api |
@ideepika the api test and make check failures seem unrelated, can you please verify and create tracker tickets if they aren't related, let me know when this PR is ready for a final review |
12fba9d
to
a0543ea
Compare
@neha-ojha think we need better error messages here, I checked if new PR's are failing after rebase, so tried testing using integer... worked! fixed and good for review, thanks :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ceph df detail
when cache tiering is not in useceph df detail
when cache tiering is not in use
jenkins test dashboard |
👍🏼 |
src/mon/PGMap.cc
Outdated
if (pool->is_tier()) { | ||
f->dump_int("dirty", sum.num_objects_dirty); | ||
} else { | ||
f->dump_int("dirty", 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be better if we could be more consistent at using tab versus space for indent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Time for a c++ linter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
time = when(any(hero.is_willing_to(create(a pre-commit hook) or
create(a jenkins job using something like clang-format))
for hero in us))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hehehe, I think that the main thing that divert us from doing this is the amount of work required to clean up everything... If we could find a way to only fail on the modified code, that'd probably be more encouraging... Do you have any clue on how to do that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
something like a script which
- runs clang-format on all changed files
- pipes the output to a filter which checks if the line number falls into the area defined by
git diff
if there is any thing shows at the other end of the pipe, the author of the change should be alerted.
'ceph df detail' reports a column for DIRTY objects under POOLS even though cache tiers not being used. In replicated or EC pool all objects in the pool are reported as logically DIRTY as they have never been flushed . we display N/A for DIRTY objects if the pool is not a cache tier. Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
DIRTY field should only be available if cache tiering is in use. Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
a0543ea
to
ba52429
Compare
Checklist
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