Repository navigation
crimson/net: refactors to encapsulate ProtocolV2 message read and write paths and event dispatching - #49420
Conversation
23274d8 to
b197efc
Compare
athanatos
left a comment
There was a problem hiding this comment.
Looks great! Let's run this through the crimson-rados suite and then merge it assuming that the result seems similar to existing runs (there are some failures in main).
|
Ok, I just scheduled a crimson-rados run on it. |
|
The original build was expired. Just amended the commit message to get a different sha1 for rebuild, but it is broken now: https://shaman.ceph.com/builds/ceph/wip-yingxin-testing-msgr-multi-core-crimson-only/ee2e418e7afae5419f468d3249af77bff4b7bc3b/crimson/328156/ |
FTBFS because of: which is not related to your changes. (All builds are affected) |
Might be related to the changes introduced. |
|
Attatched the according traceback in the log: Looks to me it is not related to the messenger changes. I have also searched the keywords "error", "warn", "trace" and "stderr" from the log, seems no direct related issues. Not sure if there is a better way to check whether there are regressions? |
Perhaps looking at the mgr log itself can provide more information. [1] [1] http://qa-proxy.ceph.com/teuthology/sjust-2023-01-13_02:27:49-crimson-rados-wip-yingxin-testing-msgr-multi-core-crimson-only-2-distro-default-smithi/7140360/remote/smithi080/log/ceph-mgr.x.log.gz |
@Matan-B thanks for the link to the logs! I checked the mgr log, seems to me there are no further useful logs there. I also tried to search the big osd log file, looks there is no crash and no error log is related to the messenger.
Should I rebase this PR to a more recent main branch first? It is currently based on the main branch on Dec 12. |
Yes. |
b197efc to
bd33281
Compare
|
Rebased onto the same base of https://pulpito.ceph.com/sjust-2023-01-12_20:57:32-crimson-rados-wip-sjust-testing-2023-01-11-102020-distro-default-smithi/7139330/ for better cross-checking. |
There were a few errors while building the branch because of newer fmt version used. However, additional changes are required to compile successfully. |
Thanks Matan! I'm working on the fixes to build this PR. |
4ee165c to
f43f3d3
Compare
|
The build issue is fixed in f43f3d3, and the base commit is unchanged. @Matan-B The build now looks good at https://shaman.ceph.com/builds/ceph/wip-yingxin-testing-msgr-multi-core-crimson-only-5/f43f3d3c951bc8a7b8628ae54c70cca88353aec9/crimson/332056/ |
@cyx1231st, https://pulpito.ceph.com/matan-2023-02-07_10:32:40-crimson-rados-wip-yingxin-testing-msgr-multi-core-crimson-only-5-distro-crimson-smithi/ |
|
|
Oh, let's rebase this on main. I merged a fix for the ooo bug #49935 |
Protocol class will be removed. Signed-off-by: Yingxin Cheng <[email protected]>
Signed-off-by: Yingxin Cheng <[email protected]>
Signed-off-by: Yingxin Cheng <[email protected]>
IOHandler also represents the Connection as ConnectionHandler. ProtocolV2 and IOHandler will be finally running in different cores, as ProtocolV2 will need to call IOHandler interfaces asynchronously. And IOHandler will also notify ProtocolV2 through HandshakeListener asynchronously. Signed-off-by: Yingxin Cheng <[email protected]>
Signed-off-by: Yingxin Cheng <[email protected]>
__func__ is meaningless in the lambda function with continuations. Signed-off-by: Yingxin Cheng <[email protected]>
Signed-off-by: Yingxin Cheng <[email protected]>
f43f3d3 to
1bc5827
Compare
|
Rebased onto the latest main, and the build is successful at https://shaman.ceph.com/builds/ceph/wip-yingxin-testing-msgr-multi-core-crimson-only-6/ |
@cyx1231st There were some lab outages, I will schedule a new run once it's up again. (You can join the slack channel for updates) |
|
Thanks Matan, I just joined the slack and will keep an eye on it. There is another run from https://pulpito.ceph.com/sjust-2023-02-08_20:44:55-crimson-rados-wip-yingxin-testing-msgr-multi-core-crimson-only-6-distro-default-smithi/, looks the result is quite similar compared with https://pulpito.ceph.com/sjust-2023-01-30_19:56:26-crimson-rados-wip-sjust-58486-distro-default-smithi/ ? |
|
jenkins test make check |
Yes. I think it's good to go. |
|
jenkins test make check |
|
Unfortunately I stumbled upon this failure while testing other PRs (with this one included) : |
|
Thanks Matan! I have a clue about this issue, will dig into the log to confirm. |
|
https://pulpito.ceph.com/sjust-2023-02-08_20:44:55-crimson-rados-wip-yingxin-testing-msgr-multi-core-crimson-only-6-distro-default-smithi/ also looks good. TBH, I'm ok with merging this while we track down the other failure, but it's up to you @cyx1231st |
|
Thanks Sam! The issue is a corner case that hasn't been coverred by the msgr UT. I prefer to fix it in this PR (should be soon) so we don't need to worry about the main branch. |
Consolidate the name/port/nonce of the addresses used in the messenger unit tests. Signed-off-by: Yingxin Cheng <[email protected]>
…messenger test Signed-off-by: Yingxin Cheng <[email protected]>
* add blockings at custom_bp_t::SOCKET_CONNECTING * adjust peer_wins to true Signed-off-by: Yingxin Cheng <[email protected]>
…t have socket Signed-off-by: Yingxin Cheng <[email protected]>
|
changeset: appended 4 commits. The issue should be reproduced after commit "test/crimson: improve messenger test coverage", and be fixed in the last commit "crimson/net: fix the corner case when the replacing connection doesn't have socket". I will go forward to test it again in sepia. |
|
LGTM |
This is an intermediate step towards multi-core messenger. There should be no impact to the msgr users yet.
The goal of this step is about introducing an
IOHandlerclass that is responsible to the executions inProtocolV2::READYstate, as well as event dispatching in all states. Changes are including:Protocoland move IO unrelated logic out ofProtocol.Protocol.ProtocolV2toProtocol.FrameAssemblerV2to be shared by bothIOHandlerandProtocolV2for the low level protocol-v2 frame processings, and to be responsible for theSocketownership.ProtocoltoIOHandler.READYstate fromProtocolV2toIOHandler, and howIOHandlerto notifyProtocolV2to exit theREADYstate in various scenarios.The next step(s) will include:
SocketandServerSocketto manage seastar sockets in multiple cores.IOHandlerandProtocolV2for the inevitable cross-core communications.The basic idea is to:
Messengerinterfaces from core-0, such asconnect().The architecture now looks:

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