Skip to content

rgw/notification/kafka: simplify kafka connection memory management#51662

Merged
yuvalif merged 1 commit intoceph:mainfrom
yuvalif:wip-yuval-61328
May 28, 2023
Merged

rgw/notification/kafka: simplify kafka connection memory management#51662
yuvalif merged 1 commit intoceph:mainfrom
yuvalif:wip-yuval-61328

Conversation

@yuvalif
Copy link
Contributor

@yuvalif yuvalif commented May 22, 2023

use a bare pointer and a unique_ptr instead of a shared pointer (boost::intrusive_ptr). and use the broker name as the handle exposed outside of the kafka module.

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

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

use a bare pointer and a unique_ptr instead of a shared pointer (boost::intrusive_ptr).
and use the broker name as the handle exposed outside of the kafka module.

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

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
@yuvalif yuvalif requested a review from a team as a code owner May 22, 2023 10:00
@github-actions github-actions bot added the rgw label May 22, 2023
@yuvalif
Copy link
Contributor Author

yuvalif commented May 23, 2023

jenkins test make check

@yuvalif
Copy link
Contributor Author

yuvalif commented May 28, 2023

@yuvalif yuvalif removed the needs-qa label May 28, 2023
@yuvalif yuvalif merged commit 20dc7a2 into ceph:main May 28, 2023
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.

2 participants