Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Avoid object pool for message builder#595

Open
zhanglistar wants to merge 1 commit into
apache:main from
bigo-sg:codex/issue-476
Open

Avoid object pool for message builder #595
zhanglistar wants to merge 1 commit into
apache:main from
bigo-sg:codex/issue-476

Conversation

@zhanglistar

@zhanglistar zhanglistar commented Jun 23, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

Fixes #476

Master Issue: #

Motivation

Modifications

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

Documentation

  • doc-required
    (Your PR needs to update docs and you will update later)

  • doc-not-needed
    (Please explain why)

  • doc
    (Your PR contains doc changes)

  • doc-complete
    (Docs have been already added)

Comment thread tests/MessageTest.cc
}
}

TEST(MessageTest, testMessageBuilderConcurrentBuild) {

@BewareMyPower BewareMyPower Jun 25, 2026

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.

This test seems meaningless. Thread safety of concurrent shared_ptr creation is guaranteed by the standard library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@BewareMyPower BewareMyPower BewareMyPower left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

When use pulsar::Message msg = pulsar::MessageBuilder().setContent(sMsg).build() to Create Message, sometimes it will occur segment fault

AltStyle によって変換されたページ (->オリジナル) /