Skip to content

msg/async: Encode message once features are set - #49619

Merged
yuriw merged 1 commit into
ceph:mainfrom
amathuria:wip-amat-fix-encode-payload
May 3, 2024
Merged

yuriw merged 1 commit into
ceph:mainfrom
amathuria:wip-amat-fix-encode-payload

Conversation

@amathuria

@amathuria amathuria commented Jan 3, 2023 •

Copy link
Copy Markdown
Contributor

Modify send_message to check if features are set before trying to encode a message.
If features are not set at this point, we will encode the message at a later stage (in write_event) when the connection will be in ready state which implies that the features will definitely be set.

Fixes: https://tracker.ceph.com/issues/52657
Signed-off-by: Aishwarya Mathuria [email protected]

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

@amathuria
amathuria requested a review from a team as a code owner January 3, 2023 13:57
@github-actions github-actions Bot added the core label Jan 3, 2023
@amathuria
amathuria marked this pull request as draft January 4, 2023 03:16
@amathuria
amathuria force-pushed the wip-amat-fix-encode-payload branch from 739703a to 36e5554 Compare January 23, 2023 10:16
@amathuria
amathuria marked this pull request as ready for review January 23, 2023 11:16
@amathuria
amathuria requested a review from rzarzynski January 23, 2023 11:16
@amathuria

Copy link
Copy Markdown
Contributor Author

@rzarzynski I think you have already gone through the fix for ProtocolV2, could you take a look at the changes I made for ProtocolV1?

@github-actions

github-actions Bot commented Aug 3, 2023

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 Aug 3, 2023
@rzarzynski rzarzynski removed the stale label Aug 7, 2023
@github-actions

github-actions Bot commented Oct 6, 2023

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 Oct 6, 2023
@amathuria amathuria removed the stale label Oct 30, 2023
@github-actions

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 Dec 29, 2023
@athanatos

Copy link
Copy Markdown
Contributor

@rzarzynski @amathuria Is this still relevant?

@github-actions github-actions Bot removed the stale label Jan 2, 2024
@amathuria

amathuria commented Jan 31, 2024 •

Copy link
Copy Markdown
Contributor Author

@rzarzynski @amathuria Is this still relevant?

@athanatos sorry I missed this. This is still relevant. The ProtocolV1 fix is pending review.

Comment thread src/msg/Message.h Resolved
@rzarzynski

Copy link
Copy Markdown
Contributor

@amathuria: ping.

@amathuria
amathuria force-pushed the wip-amat-fix-encode-payload branch from 36e5554 to c3ca13a Compare March 25, 2024 13:57
@amathuria

Copy link
Copy Markdown
Contributor Author

@amathuria
amathuria requested a review from rzarzynski March 25, 2024 14:04

@rzarzynski rzarzynski left a comment

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.

I'm afraid there is a logic error. Please see my comments.

Comment thread src/msg/async/ProtocolV1.cc Resolved
Comment thread src/msg/async/ProtocolV1.cc Resolved
Comment thread src/msg/async/ProtocolV1.cc Resolved
Comment thread src/msg/async/ProtocolV1.cc Resolved
Modify send_message to check if features are set before trying to encode a
message.
If features are not set at this point, we will encode the message at a
later stage (in write_event) when the connection will be in ready state
which implies that the features will definitely be set.

Fixes: https://tracker.ceph.com/issues/52657
Signed-off-by: Aishwarya Mathuria <[email protected]>
@amathuria
amathuria force-pushed the wip-amat-fix-encode-payload branch from c3ca13a to 7268211 Compare March 28, 2024 07:18
@rzarzynski
rzarzynski self-requested a review April 8, 2024 17:48
Message *ProtocolV1::_get_next_outgoing(ceph::buffer::list *bl) {
Message *m = 0;
ProtocolV1::out_q_entry_t ProtocolV1::_get_next_outgoing() {
out_q_entry_t out_entry;

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.

OK, it's defaulted-constructed with nullptr, false and empty bl.

@rzarzynski

Copy link
Copy Markdown
Contributor

jenkins retest this please

@yuriw

yuriw commented Apr 17, 2024

Copy link
Copy Markdown
Contributor

@amathuria

Copy link
Copy Markdown
Contributor Author

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.

4 participants