Skip to content

crimson/osd/ops_executer: Fix usage of Message's connection - #51312

Merged
Matan-B merged 1 commit into
ceph:mainfrom
Matan-B:wip-matanb-c-message-con
May 3, 2023
Merged

Matan-B merged 1 commit into
ceph:mainfrom
Matan-B:wip-matanb-c-message-con

Conversation

@Matan-B

@Matan-B Matan-B commented May 2, 2023

Copy link
Copy Markdown
Contributor
See #50835.
In crimson, conn is independently maintained outside Message.
Therefore, when trying to use the message's connection for `get_orig_source_inst()`
we won't be able to get the peer address.

This should fix any RBD_FEATURE_EXCLUSIVE_LOCK usage:

[       OK ] TestLibRBD.ExclusiveLock (6303 ms)
[----------] 1 test from TestLibRBD (6303 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (6691 ms total)
[  PASSED  ] 1 test.

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

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

@Matan-B Matan-B added the bug-fix label May 2, 2023
@Matan-B
Matan-B requested review from athanatos and cyx1231st May 2, 2023 09:13
@Matan-B
Matan-B requested a review from a team as a code owner May 2, 2023 09:13
@Matan-B
Matan-B requested a review from rzarzynski May 2, 2023 09:13
@Matan-B
Matan-B force-pushed the wip-matanb-c-message-con branch from deb367a to 4edf6d2 Compare May 2, 2023 09:15

@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.

LGTM. The comment is about further enhancement / clean-up.

Comment thread src/crimson/osd/ops_executer.h Outdated

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.

So get_orig_source_inst() is useless in crimson, right?

How about killing it, even by #ifdef WITH_SEASTAR and adding the comment there?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah, I was missing that get_orig_source_inst() is trying to access the message's connection.

Comment thread src/crimson/osd/pg.h Resolved
See ceph#50835.
In crimson, conn is independently maintained outside Message.
Therefore, when trying to use the message's connection for
`get_orig_source_inst()` we won't be able to get the peer address.

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

Signed-off-by: Matan Breizman <[email protected]>
@Matan-B
Matan-B force-pushed the wip-matanb-c-message-con branch from 4edf6d2 to d569703 Compare May 3, 2023 09:13
@Matan-B

Matan-B commented May 3, 2023

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@Matan-B

Matan-B commented May 3, 2023

Copy link
Copy Markdown
Contributor Author

Test run wip-matanb-crimson-only-testing-3.5, PRs included:

#51312: crimson/osd/ops_executer: Fix usage of Message's connection
#51333: crimson/osd/objclass: Fix compilation warning

This PR can be merged based on:
https://pulpito.ceph.com/matan-2023-05-03_13:02:20-crimson-rados-wip-matanb-crimson-only-testing-3.5-distro-crimson-smithi/

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.

5 participants