Skip to content

Resolve master conflict and preserve shared memory name safety - #79

Merged
zchuango merged 15 commits into
LinQuickDev:transport-handshakefrom
Spicy-cream:review/pr3535-shm-conflict-oct18
Oct 19, 2026
Merged

zchuango merged 15 commits into
LinQuickDev:transport-handshakefrom
Spicy-cream:review/pr3535-shm-conflict-oct18

Conversation

@Spicy-cream

Copy link
Copy Markdown

Summary

Resolve the conflict between transport-handshake and Apache master at f0239d7.

The upstream peer shared-memory name termination fix modified HelloMessage::Deserialize in ub_endpoint.cpp. The common-handshake branch has moved that implementation to handshake/ubshm_handshake.cpp.

  • Keep the common-handshake structure instead of restoring the old UBConnect implementation.
  • Apply upstream name termination in the relocated decoder.
  • Validate the original wire name separately, so forced termination does not silently accept a malformed unterminated handshake name.
  • Preserve upstream full_shm_name test changes exactly and retain the existing rejection test. Add a maximum-length valid-name boundary test.
  • Preserve previous IPC_V2 negotiation and data-path compatibility.

Integration

Target: transport-handshake. This branch merges current Apache master with full ancestry preserved. Use a merge commit, not squash or rebase-merge, so later upstream merges do not repeat the same history conflicts.

The source branch of apache/brpc pull request 3535 is not changed until this repair is integrated into transport-handshake. Re-check community mergeability and CI after integration.

Validation

Linux WSL build with RDMA and UBRing enabled:

  • brpc_ubring_unittest: 43 passed.
  • brpc_transport_handshake_unittest: 28 passed.
  • brpc_rdma_unittest: 92 passed.
  • Three name-boundary tests shuffled and repeated 100 times: all passed.
  • Verified upstream full_shm_name and existing rejects_unterminated_remote_name test bodies are unchanged from their respective references.
  • git diff --check: passed.

songgaoye and others added 15 commits October 16, 2026 14:26
* Validate remote file service names before parsing

* Use range-based loop in naming service test
* Fix macOS build compatibility issues

* revert DEFINE_SMALL_ARRAY
…he#3617)

* Fix MultiFlatMap erase on bucket head

* destroy element before set_invalid
Discard subcall results after the main RPC has finished while still returning their resources. Release the main call-id lock for non-final callbacks and let the final callback complete cleanup.

Add deterministic coverage for late timeout/cancel callbacks, callback ordering, controller destruction, and error propagation and retries before completion.

Tests: brpc_channel_unittest (87 passed).
* bound grpc-timeout value before converting to microseconds

* clarify what the grpc-timeout bound rejects
…pache#3601)

PR3332 sent every Zbc+Zvbc CPU to the vclmul path. After apache#3571
rewrote it, vclmul beats clmul from ~256 B up (1.5x-7.5x) but costs
more below that, where vector setup dominates. A fixed order to
either path is wrong for these CPUs.

Select by size in the dispatcher: clmul under 256 B, vclmul from
256 B on. CPUs with only Zbc or only Zvbc keep their current path,
and Extend() is untouched.

k3 (X100, VLEN=256, 20-round median):
  256 B   clmul 1534  vclmul 2155
  1 MiB   clmul 1555  vclmul 11702   (MB/s)

Signed-off-by: Xiaofei Gong <gongxiaofei24@iscas.ac.cn>
Signed-off-by: YuanSheng <yuansheng@isrc.iscas.ac.cn>
* Optimize Redis command formatting buffer handling

* Handle Redis command formatting append failures

* remove unused function
@zchuango
zchuango merged commit d819d93 into LinQuickDev:transport-handshake Oct 19, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants