Skip to content

rgw/notify: fix reading the entries in a loop - #66246

Merged
yuvalif merged 2 commits into
ceph:mainfrom
nbalacha:wip-nbalacha-73812
Nov 18, 2025
Merged

yuvalif merged 2 commits into
ceph:mainfrom
nbalacha:wip-nbalacha-73812

Conversation

@nbalacha

@nbalacha nbalacha commented Nov 14, 2025 •

Copy link
Copy Markdown
Contributor

If more than 1024 entries exist, the start_after variable is updated to enable reading the subsequent set of entries.

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

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. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

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

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@nbalacha
nbalacha requested a review from a team as a code owner November 14, 2025 04:16
@github-actions github-actions Bot added the rgw label Nov 14, 2025
@nbalacha
nbalacha requested a review from yuvalif November 14, 2025 04:16
Comment thread src/rgw/driver/rados/rgw_notify.cc Outdated
@@ -127,6 +127,7 @@ class Manager : public DoutPrefixProvider {
return ret;
}
queues.merge(queues_chunk);
start_after = *queues.rbegin();

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.

Suggested change
start_after = *queues.rbegin();
if (more) {
start_after = *queues.rbegin();
}

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.

Fixed.

If more than 1024 entries exist, the start_after variable
is updated to enable reading the subsequent set of entries.

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

Signed-off-by: N Balachandran <[email protected]>
@@ -1684,6 +1685,109 @@ def test_notification_push_kafka_multiple_brokers_append():
notification_push('kafka', conn, kafka_brokers='{host}:9091'.format(host=default_kafka_server))


@attr('kafka_test')
def test_1K_topics():
""" test pushinging notification """

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.

Nit: typo:

pushinging -> pushing

notification_push('kafka', conn, kafka_brokers='{host}:9091'.format(host=default_kafka_server))


@attr('manual_test')

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.

test has to be manual until we move this to boto3. since we need to limit the number of concurrent connections. otherwise, the test would fail:
see: http://qa-proxy.ceph.com/teuthology/yuvalif-2025-11-17_14:55:24-rgw:notifications-wip-yuvalif-73812-distro-default-smithi/8607090/teuthology.log

:OSError: 24 Too many open files

@yuvalif

yuvalif commented Nov 17, 2025 •

Copy link
Copy Markdown
Contributor

@yuvalif

yuvalif commented Nov 17, 2025

Copy link
Copy Markdown
Contributor

jenkins test api

1 similar comment
@yuvalif

yuvalif commented Nov 17, 2025

Copy link
Copy Markdown
Contributor

jenkins test api

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