Repository navigation
Conversation
df628b7 to
604f69a
Compare
|
sorry @devikab25 @sagargopale2233 you can ignore |
604f69a to
47dd147
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
47dd147 to
735a856
Compare
There was a problem hiding this comment.
Automated Backport Parity Review - Backport Deviation Alert
A conflict or unapproved deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.
How to proceed:
- Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git
Conflicts:block intact) and include an explanation for changes. - Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
- Component Leads (Review): Please review the Range Diff below to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting
/audit override.
Be familiar with the rules and guidelines for writing backports.
Affected File(s)
src/rgw/driver/rados/rgw_notify.cc
Range Diff
Click to expand
--- Original (d732db6e)
+++ Backport (269c414d)
@@ -9,3 +9,4 @@
Fixes: https://tracker.ceph.com/issues/70756
Signed-off-by: Yuval Lifshitz <[email protected]>
+(cherry picked from commit d732db6e2b66ff115722d8b05a3a878a4cbb645a)
================================================================================
RANGE DIFF
================================================================================
1: d732db6e2b6 ! 1: 269c414d1b1 rgw/notifications: stop processing when we reach a skipped notifications
@@ Commit message
Fixes: https://tracker.ceph.com/issues/70756
Signed-off-by: Yuval Lifshitz <[email protected]>
+ (cherry picked from commit d732db6e2b66ff115722d8b05a3a878a4cbb645a)
## src/rgw/driver/rados/rgw_notify.cc ##
@@ src/rgw/driver/rados/rgw_notify.cc: private:
@@ src/rgw/driver/rados/rgw_notify.cc: private:
entries_persistency_tracker& notifs_persistency_tracker = topics_persistency_tracker[queue_name];
boost::asio::spawn(yield, std::allocator_arg, make_stack_allocator(),
- [this, ¬ifs_persistency_tracker, &queue_name, entry_idx,
-- total_entries, &end_marker, &remove_entries, &has_error,
-+ total_entries, &end_marker, &remove_entries, &stop_processing,
- token = waiter.make_token(), &entry, &needs_migration_vector,
- push_endpoint = push_endpoint.get(),
- &topic_info](boost::asio::yield_context yield) {
+ [this, ¬ifs_persistency_tracker, &queue_name, entry_idx, total_entries, &end_marker,
+- &remove_entries, &has_error, &waiter, &entry, &needs_migration_vector,
++ &remove_entries, &stop_processing, &waiter, &entry, &needs_migration_vector,
+ push_endpoint = push_endpoint.get(), &topic_info](boost::asio::yield_context yield) {
+ const auto token = waiter.make_token();
+ auto& persistency_tracker = notifs_persistency_tracker[entry.marker];
@@ src/rgw/driver/rados/rgw_notify.cc: private:
- remove_entries = true;
needs_migration_vector[entry_idx - 1] = (result == EntryProcessingResult::Migrating);
notifs_persistency_tracker.erase(entry.marker);
+ if (result == EntryProcessingResult::Expired && perfcounter) perfcounter->inc(l_rgw_pubsub_push_failed);
- } else {
- if (set_min_marker(end_marker, entry.marker) < 0) {
- ldpp_dout(this, 1) << "ERROR: cannot determine minimum between malformed markers: " << end_marker << ", " << entry.marker << dendl;Automated Backport Parity Review - Backport Deviation Alert
A conflict or unapproved deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.
How to proceed:
- Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git
Conflicts:block intact) and include an explanation for changes. - Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
- Component Leads (Review): Please review the Range Diff below to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting
/audit override.
Be familiar with the rules and guidelines for writing backports.
Affected File(s)
src/test/rgw/bucket_notification/test_bn.py
Range Diff
Click to expand
--- Original (dd6d4f0b)
+++ Backport (12bec552)
@@ -9,3 +9,4 @@
Fixes: https://tracker.ceph.com/issues/70756
Signed-off-by: Yuval Lifshitz <[email protected]>
+(cherry picked from commit dd6d4f0bbc9f0dcbb09ee0230e2f56d7c0e05439)
================================================================================
RANGE DIFF
================================================================================
1: dd6d4f0bbc9 ! 1: 12bec5528ee test/rgw/notifications: prevent client retries to avoid duplicates
@@ Commit message
Fixes: https://tracker.ceph.com/issues/70756
Signed-off-by: Yuval Lifshitz <[email protected]>
+ (cherry picked from commit dd6d4f0bbc9f0dcbb09ee0230e2f56d7c0e05439)
## src/test/rgw/bucket_notification/test_bn.py ##
@@ src/test/rgw/bucket_notification/test_bn.py: def get_ip():
@@ src/test/rgw/bucket_notification/test_bn.py: def get_ip():
-
conn = S3Connection(aws_access_key_id=vstart_access_key,
- aws_secret_access_key=vstart_secret_key,
-- is_secure=False, port=port_no, host=hostname,
+- is_secure=False, port=port_no, host=hostname,
- calling_format='boto.s3.connection.OrdinaryCallingFormat')
-
+ aws_secret_access_key=vstart_secret_key,Automated Backport Parity Review - Backport Deviation Alert
A conflict or unapproved deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.
How to proceed:
- Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git
Conflicts:block intact) and include an explanation for changes. - Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
- Component Leads (Review): Please review the Range Diff below to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting
/audit override.
Be familiar with the rules and guidelines for writing backports.
Affected File(s)
src/rgw/driver/rados/rgw_notify.cc
Range Diff
Click to expand
--- Original (bbab0e61)
+++ Backport (9c2580f2)
@@ -4,3 +4,4 @@
also, put into "idle" state in case of failure with -EBUSY error code
Signed-off-by: Yuval Lifshitz <[email protected]>
+(cherry picked from commit bbab0e6181a56a1083973a6697bdfe97dbe8cb3b)
================================================================================
RANGE DIFF
================================================================================
1: bbab0e6181a ! 1: 9c2580f26ce rgw/notifications: make queue idle when all notifications are in "sleep" state
@@ Commit message
also, put into "idle" state in case of failure with -EBUSY error code
Signed-off-by: Yuval Lifshitz <[email protected]>
+ (cherry picked from commit bbab0e6181a56a1083973a6697bdfe97dbe8cb3b)
## src/rgw/driver/rados/rgw_notify.cc ##
@@ src/rgw/driver/rados/rgw_notify.cc: private:
@@ src/rgw/driver/rados/rgw_notify.cc: private:
<< " retry_number: "
<< entry_persistency_tracker.retires_num
<< " current time: " << time_now << dendl;
-- const auto ret = push_endpoint->send(this, event_entry.event, yield);
-+ ret = push_endpoint->send(this, event_entry.event, yield);
+- const auto ret = push_endpoint->send(event_entry.event, yield);
++ ret = push_endpoint->send(event_entry.event, yield);
if (ret < 0) {
ldpp_dout(this, 5) << "WARNING: push entry marker: " << entry.marker
<< " failed. error: " << ret
@@ src/rgw/driver/rados/rgw_notify.cc: private:
entries_persistency_tracker& notifs_persistency_tracker = topics_persistency_tracker[queue_name];
boost::asio::spawn(yield, std::allocator_arg, make_stack_allocator(),
-- [this, ¬ifs_persistency_tracker, &queue_name, entry_idx,
-+ [this, &is_idle, ¬ifs_persistency_tracker, &queue_name, entry_idx,
- total_entries, &end_marker, &remove_entries, &stop_processing,
- token = waiter.make_token(), &entry, &needs_migration_vector,
- push_endpoint = push_endpoint.get(),
- &topic_info](boost::asio::yield_context yield) {
+- [this, ¬ifs_persistency_tracker, &queue_name, entry_idx, total_entries, &end_marker,
++ [this, &is_idle, ¬ifs_persistency_tracker, &queue_name, entry_idx, total_entries, &end_marker,
+ &remove_entries, &stop_processing, &waiter, &entry, &needs_migration_vector,
+ push_endpoint = push_endpoint.get(), &topic_info](boost::asio::yield_context yield) {
+ const auto token = waiter.make_token();
auto& persistency_tracker = notifs_persistency_tracker[entry.marker];
+ int result_code;
auto result =
@@ src/rgw/driver/rados/rgw_notify.cc: private:
|| result == EntryProcessingResult::Migrating) {
ldpp_dout(this, 20) << "INFO: processing of entry: " << entry.marker
@@ src/rgw/driver/rados/rgw_notify.cc: private:
- remove_entries = true;
needs_migration_vector[entry_idx - 1] = (result == EntryProcessingResult::Migrating);
notifs_persistency_tracker.erase(entry.marker);
+ if (result == EntryProcessingResult::Expired && perfcounter) perfcounter->inc(l_rgw_pubsub_push_failed);
+ is_idle = false;
return;
}Automated Redmine Linkage Audit
The following tracking irregularities were found:
- Malformed Backport Tracker: Backport tracker #71902 has the PR link in the description rather than the 'Pull Request ID' field. Please fix this.
- Missing PR Link: Backport tracker #71902 has no 'Pull Request ID' field set. Please link it to PR #67980.
Commit Parity Visualizer
| BACKPORT PR #67980 | SOURCE PR | SOURCE STATUS |
|---|---|---|
| 269c414 rgw/notifications: stop processing when we reach a skipped notifications | PR #64010 | d732db6 rgw/notifications: stop processing when we reach a skipped notifications |
| 12bec55 test/rgw/notifications: prevent client retries to avoid duplicates | dd6d4f0 test/rgw/notifications: prevent client retries to avoid duplicates | |
| 9c2580f rgw/notifications: make queue idle when all notifications are in "sleep" state | bbab0e6 rgw/notifications: make queue idle when all notifications are in "sleep" state | |
| 735a856 rgw/notifications: prevent infinite loop in case of malformed notifications | f6ad65a rgw/notifications: prevent infinite loop in case of malformed notifications |
🛟 Need Help?
If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.
📋 Component Lead / Release Manager
To override the audit failure, apply releng-audit-override label or comment /audit override.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
CI Run Log: View Workflow Details
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
This PR has been added to wip-yuri6-testing-20261030.133105-squid. |
|
@kchheda3 Please remove the merge commit and rebase on top of squid. |
if a notification retry should be skipped, we should stop processing all notifications. if we successfully processing another notification it will not be removed (as we will remove only up to the marker of the skipped notification). as a result, the successfull notification will be processed again. Fixes: https://tracker.ceph.com/issues/70756 Signed-off-by: Yuval Lifshitz <[email protected]> (cherry picked from commit d732db6)
if the RGW is slow, and the client retry, it may cause test to fail since the number of notifications would be off. in addition, in slow RGW, we need to verify that the expiry time did not pass before checking the queue, so we see the expected number of entries in the queue before they expire. Fixes: https://tracker.ceph.com/issues/70756 Signed-off-by: Yuval Lifshitz <[email protected]> (cherry picked from commit dd6d4f0) Conflicts: src/test/rgw/bucket_notification/test_bn.py - squid has no calling_format argument in connection()
…ep" state this will prevent re-reading the queue when there is no work to do also, put into "idle" state in case of failure with -EBUSY error code Signed-off-by: Yuval Lifshitz <[email protected]> (cherry picked from commit bbab0e6)
…ations if we fail to decode a notification entry we should remove it. o/w we will keep failing on that entry Signed-off-by: Yuval Lifshitz <[email protected]> (cherry picked from commit f6ad65a)
74475be to
3e1d36d
Compare
There was a problem hiding this comment.
Ceph Release Engineering Audit Report
Commit Parity Visualizer
| BACKPORT PR #67980 | SOURCE PR |
SOURCE STATUS |
|---|---|---|
| 1730a87 rgw/notifications: stop processing when we reach a skipped notifications | PR #64010 | d732db6 rgw/notifications: stop processing when we reach a skipped notifications |
| e6d3910 test/rgw/notifications: prevent client retries to avoid duplicates | dd6d4f0 test/rgw/notifications: prevent client retries to avoid duplicates | |
| 0d68e8e rgw/notifications: make queue idle when all notifications are in "sleep" state | bbab0e6 rgw/notifications: make queue idle when all notifications are in "sleep" state | |
| 3e1d36d rgw/notifications: prevent infinite loop in case of malformed notifications | f6ad65a rgw/notifications: prevent infinite loop in case of malformed notifications |
Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations
A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.
This does not necessarily indicate an issue but a maintainer should review.
**Click to expand conflict summaries.**
Deviation in Backport 1730a87 (cherry-pick of d732db6)
Affected File(s)
src/rgw/driver/rados/rgw_notify.cc
Range Diff
Click to expand
--- Original (d732db6e)
+++ Backport (1730a87e)
@@ -9,3 +9,4 @@
Fixes: https://tracker.ceph.com/issues/70756
Signed-off-by: Yuval Lifshitz <[email protected]>
+(cherry picked from commit d732db6e2b66ff115722d8b05a3a878a4cbb645a)
================================================================================
RANGE DIFF
================================================================================
1: d732db6e2b6 ! 1: 1730a87e5a0 rgw/notifications: stop processing when we reach a skipped notifications
@@ Commit message
Fixes: https://tracker.ceph.com/issues/70756
Signed-off-by: Yuval Lifshitz <[email protected]>
+ (cherry picked from commit d732db6e2b66ff115722d8b05a3a878a4cbb645a)
## src/rgw/driver/rados/rgw_notify.cc ##
@@ src/rgw/driver/rados/rgw_notify.cc: private:
@@ src/rgw/driver/rados/rgw_notify.cc: private:
entries_persistency_tracker& notifs_persistency_tracker = topics_persistency_tracker[queue_name];
boost::asio::spawn(yield, std::allocator_arg, make_stack_allocator(),
- [this, ¬ifs_persistency_tracker, &queue_name, entry_idx,
-- total_entries, &end_marker, &remove_entries, &has_error,
-+ total_entries, &end_marker, &remove_entries, &stop_processing,
- token = waiter.make_token(), &entry, &needs_migration_vector,
- push_endpoint = push_endpoint.get(),
- &topic_info](boost::asio::yield_context yield) {
+ [this, ¬ifs_persistency_tracker, &queue_name, entry_idx, total_entries, &end_marker,
+- &remove_entries, &has_error, &waiter, &entry, &needs_migration_vector,
++ &remove_entries, &stop_processing, &waiter, &entry, &needs_migration_vector,
+ push_endpoint = push_endpoint.get(), &topic_info](boost::asio::yield_context yield) {
+ const auto token = waiter.make_token();
+ auto& persistency_tracker = notifs_persistency_tracker[entry.marker];
@@ src/rgw/driver/rados/rgw_notify.cc: private:
- remove_entries = true;
needs_migration_vector[entry_idx - 1] = (result == EntryProcessingResult::Migrating);
notifs_persistency_tracker.erase(entry.marker);
+ if (result == EntryProcessingResult::Expired && perfcounter) perfcounter->inc(l_rgw_pubsub_push_failed);
- } else {
- if (set_min_marker(end_marker, entry.marker) < 0) {
- ldpp_dout(this, 1) << "ERROR: cannot determine minimum between malformed markers: " << end_marker << ", " << entry.marker << dendl;Deviation in Backport e6d3910 (cherry-pick of dd6d4f0)
Affected File(s)
src/test/rgw/bucket_notification/test_bn.py
Range Diff
Click to expand
--- Original (dd6d4f0b)
+++ Backport (e6d39105)
@@ -9,3 +9,8 @@
Fixes: https://tracker.ceph.com/issues/70756
Signed-off-by: Yuval Lifshitz <[email protected]>
+(cherry picked from commit dd6d4f0bbc9f0dcbb09ee0230e2f56d7c0e05439)
+
+Conflicts:
+ src/test/rgw/bucket_notification/test_bn.py
+ - squid has no calling_format argument in connection()
================================================================================
RANGE DIFF
================================================================================
1: dd6d4f0bbc9 ! 1: e6d39105019 test/rgw/notifications: prevent client retries to avoid duplicates
@@ Commit message
Fixes: https://tracker.ceph.com/issues/70756
Signed-off-by: Yuval Lifshitz <[email protected]>
+ (cherry picked from commit dd6d4f0bbc9f0dcbb09ee0230e2f56d7c0e05439)
+
+ Conflicts:
+ src/test/rgw/bucket_notification/test_bn.py
+ - squid has no calling_format argument in connection()
## src/test/rgw/bucket_notification/test_bn.py ##
@@ src/test/rgw/bucket_notification/test_bn.py: def get_ip():
@@ src/test/rgw/bucket_notification/test_bn.py: def get_ip():
-
conn = S3Connection(aws_access_key_id=vstart_access_key,
- aws_secret_access_key=vstart_secret_key,
-- is_secure=False, port=port_no, host=hostname,
-- calling_format='boto.s3.connection.OrdinaryCallingFormat')
+- is_secure=False, port=port_no, host=hostname)
-
+ aws_secret_access_key=vstart_secret_key,
-+ is_secure=False, port=port_no, host=hostname,
-+ calling_format='boto.s3.connection.OrdinaryCallingFormat')
++ is_secure=False, port=port_no, host=hostname)
+ if no_retries:
+ conn.num_retries = 0
return connDeviation in Backport 0d68e8e (cherry-pick of bbab0e6)
Affected File(s)
src/rgw/driver/rados/rgw_notify.cc
Range Diff
Click to expand
--- Original (bbab0e61)
+++ Backport (0d68e8e7)
@@ -4,3 +4,4 @@
also, put into "idle" state in case of failure with -EBUSY error code
Signed-off-by: Yuval Lifshitz <[email protected]>
+(cherry picked from commit bbab0e6181a56a1083973a6697bdfe97dbe8cb3b)
================================================================================
RANGE DIFF
================================================================================
1: bbab0e6181a ! 1: 0d68e8e7eb1 rgw/notifications: make queue idle when all notifications are in "sleep" state
@@ Commit message
also, put into "idle" state in case of failure with -EBUSY error code
Signed-off-by: Yuval Lifshitz <[email protected]>
+ (cherry picked from commit bbab0e6181a56a1083973a6697bdfe97dbe8cb3b)
## src/rgw/driver/rados/rgw_notify.cc ##
@@ src/rgw/driver/rados/rgw_notify.cc: private:
@@ src/rgw/driver/rados/rgw_notify.cc: private:
<< " retry_number: "
<< entry_persistency_tracker.retires_num
<< " current time: " << time_now << dendl;
-- const auto ret = push_endpoint->send(this, event_entry.event, yield);
-+ ret = push_endpoint->send(this, event_entry.event, yield);
+- const auto ret = push_endpoint->send(event_entry.event, yield);
++ ret = push_endpoint->send(event_entry.event, yield);
if (ret < 0) {
ldpp_dout(this, 5) << "WARNING: push entry marker: " << entry.marker
<< " failed. error: " << ret
@@ src/rgw/driver/rados/rgw_notify.cc: private:
entries_persistency_tracker& notifs_persistency_tracker = topics_persistency_tracker[queue_name];
boost::asio::spawn(yield, std::allocator_arg, make_stack_allocator(),
-- [this, ¬ifs_persistency_tracker, &queue_name, entry_idx,
-+ [this, &is_idle, ¬ifs_persistency_tracker, &queue_name, entry_idx,
- total_entries, &end_marker, &remove_entries, &stop_processing,
- token = waiter.make_token(), &entry, &needs_migration_vector,
- push_endpoint = push_endpoint.get(),
- &topic_info](boost::asio::yield_context yield) {
+- [this, ¬ifs_persistency_tracker, &queue_name, entry_idx, total_entries, &end_marker,
++ [this, &is_idle, ¬ifs_persistency_tracker, &queue_name, entry_idx, total_entries, &end_marker,
+ &remove_entries, &stop_processing, &waiter, &entry, &needs_migration_vector,
+ push_endpoint = push_endpoint.get(), &topic_info](boost::asio::yield_context yield) {
+ const auto token = waiter.make_token();
auto& persistency_tracker = notifs_persistency_tracker[entry.marker];
+ int result_code;
auto result =
@@ src/rgw/driver/rados/rgw_notify.cc: private:
|| result == EntryProcessingResult::Migrating) {
ldpp_dout(this, 20) << "INFO: processing of entry: " << entry.marker
@@ src/rgw/driver/rados/rgw_notify.cc: private:
- remove_entries = true;
needs_migration_vector[entry_idx - 1] = (result == EntryProcessingResult::Migrating);
notifs_persistency_tracker.erase(entry.marker);
+ if (result == EntryProcessingResult::Expired && perfcounter) perfcounter->inc(l_rgw_pubsub_push_failed);
+ is_idle = false;
return;
}How to proceed:
- Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git
Conflicts:block intact) and include an explanation for changes. - Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
- Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting
/audit override.
Be familiar with the rules and guidelines for writing backports.
🛟 Need Help?
If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.
📋 Component Lead / Release Manager
To override the audit failure, apply releng-audit-override label or comment /audit override.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
done @adamemerson |
|
This PR has been added to wip-yuri5-testing-20261117.214518-squid. |
backport tracker: https://tracker.ceph.com/issues/71902
backport of #64010
parent tracker: https://tracker.ceph.com/issues/70756
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh