ceph-dencoder: MDS - Add missing types#52623
Conversation
|
@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; | ||
| } |
There was a problem hiding this comment.
Capability::Import has a ctor that takes cap_id, issue_seq and mseq as arguments - why not use that?
There was a problem hiding this comment.
Done, also "fixed" the Export to use the correct ctor
| f->close_section(); | ||
| } | ||
|
|
||
| static void generate_test_instances(std::list<MDSHealthMetric*>& ls) { |
There was a problem hiding this comment.
Similar to my earlier comment about using the constructor.
src/mgr/MDSPerfMetricTypes.h
Outdated
| 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) { |
There was a problem hiding this comment.
yes, reverting
| void dump(ceph::Formatter *f) const { | ||
| metric_report.dump(f); | ||
| } | ||
| static void generate_test_instances(std::list<MDSMetricPayload*>& ls) { |
src/mgr/MetricTypes.h
Outdated
| f->close_section(); | ||
| } | ||
| static void generate_test_instances(std::list<OSDMetricPayload*>& ls) { | ||
| ls.push_back(new OSDMetricPayload); |
76374df to
0e09881
Compare
0e09881 to
91b860f
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
Thanks @NitzanMordhai. Please rebase - I'll plan to run this through fs suite this week. |
91b860f to
5fd54c5
Compare
@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? |
|
@NitzanMordhai could you also check the jenkins failures to see if a rebase is required? |
5fd54c5 to
7564d23
Compare
Working on that, will ping you when its ready |
85198d4 to
6be3c76
Compare
|
jenkins test make check |
* refs/pull/52623/head: ceph-dencoder: MDS - Add missing types
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
@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>
f096253 to
09f3c87
Compare
done |
|
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. |
|
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! |
|
We talked about resurrecting this PR during the CDS RADOS session this Tuesday. |
Of course. Thanks for the nudge @rzarzynski |
|
This PR is under test in https://tracker.ceph.com/issues/67626. |
* refs/pull/52623/head: ceph-dencoder: MDS - Add missing types
|
This change is good to merge. I'll have another look before merging since I has reviewed it a while back. |
|
jenkins test make check arm64 |
…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
dumpandgenerate_test_instancesfunctions 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
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
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 dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows