Skip to content

ceph-dencoder: MDS - Add missing types#52623

Merged
vshankar merged 1 commit intomainfrom
wip-nitzan-ceph-dencoder-mds-extend-type-available
Sep 30, 2024
Merged

ceph-dencoder: MDS - Add missing types#52623
vshankar merged 1 commit intomainfrom
wip-nitzan-ceph-dencoder-mds-extend-type-available

Conversation

@NitzanMordhai
Copy link
Contributor

@NitzanMordhai NitzanMordhai commented Jul 25, 2023

…code-decode comparison

Currently, ceph-dencoder lacks certain mds types, preventing us from accurately checking the ceph corpus for encode-decode mismatches. This pull request aims to address this issue by adding the missing types to ceph-dencoder.

To successfully incorporate these types into ceph-dencoder, we need to introduce the necessary dump and generate_test_instances functions that was missing in some types. These functions are essential for proper encode and decode of the added types.

This PR will enhance the functionality of ceph-dencoder by including the missing types, enabling a comprehensive analysis of encode-decode consistency. With the addition of these types, we can ensure the robustness and correctness of the ceph corpus.

This update will significantly contribute to improving the overall reliability and accuracy of ceph-dencoder. It allows for a more comprehensive assessment of the encode-decode behavior, leading to enhanced data integrity and stability within the ceph ecosystem.

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

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

@NitzanMordhai NitzanMordhai requested a review from rzarzynski July 25, 2023 11:06
@NitzanMordhai NitzanMordhai requested a review from a team as a code owner July 25, 2023 11:06
@github-actions github-actions bot added cephfs Ceph File System core mgr labels Jul 25, 2023
@rzarzynski rzarzynski requested review from a team, gregsfortytwo and vshankar July 25, 2023 12:13
@vshankar
Copy link
Contributor

@NitzanMordhai Do you have test results (corpus runs as mentioned in the tracker) that now with this change doe snot throw out unsupported type warnings?

@NitzanMordhai
Copy link
Contributor Author

@NitzanMordhai Do you have test results (corpus runs as mentioned in the tracker) that now with this change doe snot throw out unsupported type warnings?

@vshankar , I don't have such output since I didn't checked all PR changes for dencoder changes. I can run it separately for each PR, but you will need to find the mds types in that general list. Is it something you want to try?

ls.back()->cap_id = 1;
ls.back()->issue_seq = 2;
ls.back()->mseq = 3;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Capability::Import has a ctor that takes cap_id, issue_seq and mseq as arguments - why not use that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, also "fixed" the Export to use the correct ctor

f->close_section();
}

static void generate_test_instances(std::list<MDSHealthMetric*>& ls) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Similar to my earlier comment about using the constructor.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

static constexpr bool featured = false;
static constexpr bool need_contiguous = true;
static void bound_encode(const MDSPerfMetricKeyDescriptor& v, size_t& p) {
static void bound_encode(const MDSPerfMetricKeyDescriptor &v, size_t &p) {
Copy link
Contributor

Choose a reason for hiding this comment

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

unrelated changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, reverting

void dump(ceph::Formatter *f) const {
metric_report.dump(f);
}
static void generate_test_instances(std::list<MDSMetricPayload*>& ls) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: MDSMetricPayload()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

f->close_section();
}
static void generate_test_instances(std::list<OSDMetricPayload*>& ls) {
ls.push_back(new OSDMetricPayload);
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: OSDMetricPayload()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@NitzanMordhai NitzanMordhai force-pushed the wip-nitzan-ceph-dencoder-mds-extend-type-available branch from 76374df to 0e09881 Compare August 3, 2023 05:43
@NitzanMordhai NitzanMordhai requested a review from vshankar August 3, 2023 05:44
@NitzanMordhai NitzanMordhai changed the title ceph-dencoder: Add missing mds types to ceph-dencoder for accurate en… ceph-dencoder: MDS - Add missing types Aug 6, 2023
@NitzanMordhai NitzanMordhai force-pushed the wip-nitzan-ceph-dencoder-mds-extend-type-available branch from 0e09881 to 91b860f Compare August 6, 2023 08:18
@github-actions
Copy link

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@vshankar
Copy link
Contributor

Thanks @NitzanMordhai. Please rebase - I'll plan to run this through fs suite this week.

@NitzanMordhai NitzanMordhai force-pushed the wip-nitzan-ceph-dencoder-mds-extend-type-available branch from 91b860f to 5fd54c5 Compare August 16, 2023 05:02
@NitzanMordhai
Copy link
Contributor Author

Thanks @NitzanMordhai. Please rebase - I'll plan to run this through fs suite this week.

@vshankar done, but the make check will fail because the corpus PR (ceph/ceph-object-corpus#16) still under review.

@vshankar
Copy link
Contributor

vshankar commented Sep 5, 2023

Thanks @NitzanMordhai. Please rebase - I'll plan to run this through fs suite this week.

@vshankar done, but the make check will fail because the corpus PR (ceph/ceph-object-corpus#16) still under review.

@NitzanMordhai This can be put to test now, yes?

@vshankar
Copy link
Contributor

vshankar commented Sep 5, 2023

@NitzanMordhai could you also check the jenkins failures to see if a rebase is required?

@NitzanMordhai NitzanMordhai force-pushed the wip-nitzan-ceph-dencoder-mds-extend-type-available branch from 5fd54c5 to 7564d23 Compare September 5, 2023 10:15
@NitzanMordhai
Copy link
Contributor Author

@NitzanMordhai could you also check the jenkins failures to see if a rebase is required?

Working on that, will ping you when its ready

@NitzanMordhai NitzanMordhai force-pushed the wip-nitzan-ceph-dencoder-mds-extend-type-available branch 4 times, most recently from 85198d4 to 6be3c76 Compare September 7, 2023 05:57
@vshankar
Copy link
Contributor

jenkins test make check

@vshankar
Copy link
Contributor

vshankar added a commit to vshankar/ceph that referenced this pull request Feb 29, 2024
* refs/pull/52623/head:
	ceph-dencoder: MDS - Add missing types
@github-actions
Copy link

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@vshankar
Copy link
Contributor

@NitzanMordhai sorry, this has to be rebased (a largish PR got merged not so long ago).

Currently, ceph-dencoder lacks certain mds types, preventing us from accurately checking the ceph corpus for encode-decode mismatches.
This pull request aims to address this issue by adding the missing types to ceph-dencoder.

To successfully incorporate these types into ceph-dencoder, we need to introduce the necessary `dump` and `generate_test_instances`
functions that was missing in some types. These functions are essential for proper encode and decode of the added types.

This PR will enhance the functionality of ceph-dencoder by including the missing types, enabling a comprehensive analysis of encode-decode consistency.
With the addition of these types, we can ensure the robustness and correctness of the ceph corpus.

This update will significantly contribute to improving the overall reliability and accuracy of ceph-dencoder.
It allows for a more comprehensive assessment of the encode-decode behavior, leading to enhanced data integrity and stability within the ceph ecosystem.

Fixes: https://tracker.ceph.com/issues/61788
Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
@NitzanMordhai NitzanMordhai force-pushed the wip-nitzan-ceph-dencoder-mds-extend-type-available branch from f096253 to 09f3c87 Compare April 10, 2024 12:04
@NitzanMordhai
Copy link
Contributor Author

@NitzanMordhai sorry, this has to be rebased (a largish PR got merged not so long ago).

done

@github-actions
Copy link

github-actions bot commented Jun 9, 2024

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 Jun 9, 2024
@github-actions
Copy link

github-actions bot commented Jul 9, 2024

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!

@github-actions github-actions bot closed this Jul 9, 2024
@rzarzynski rzarzynski reopened this Aug 15, 2024
@rzarzynski
Copy link
Contributor

We talked about resurrecting this PR during the CDS RADOS session this Tuesday.
@vshankar: would you mind retaking a look?

@github-actions github-actions bot removed the stale label Aug 15, 2024
@vshankar
Copy link
Contributor

We talked about resurrecting this PR during the CDS RADOS session this Tuesday. @vshankar: would you mind retaking a look?

Of course. Thanks for the nudge @rzarzynski

@vshankar
Copy link
Contributor

This PR is under test in https://tracker.ceph.com/issues/67626.

@vshankar
Copy link
Contributor

joscollin pushed a commit to joscollin/ceph that referenced this pull request Aug 29, 2024
* refs/pull/52623/head:
	ceph-dencoder: MDS - Add missing types
@vshankar
Copy link
Contributor

vshankar commented Sep 2, 2024

This change is good to merge. I'll have another look before merging since I has reviewed it a while back.

@vshankar
Copy link
Contributor

jenkins test make check arm64

@vshankar vshankar merged commit 2d93ad5 into main Sep 30, 2024
@vshankar vshankar deleted the wip-nitzan-ceph-dencoder-mds-extend-type-available branch September 30, 2024 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cephfs Ceph File System core mgr

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants