Project

General

Profile

Actions

Bug #63335

closed
KC YL

Notification kafka: Persistent messages are removed even when the broker is down and no ack is received

Bug #63335: Notification kafka: Persistent messages are removed even when the broker is down and no ack is received

Added by Krunal Chheda about 3 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Target version:
Due date:
% Done:

100%

Source:
Community (dev)
Backport:
squid reef quincy
Regression:
Yes
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v19.0.0-11-g70fbeb1746f
Released In:
v19.2.0~1126
Upkeep Timestamp:
2025-07-11T21:10:51+00:00

Description

This is the regression caused due to changes in https://github.com/ceph/ceph/pull/51864.

Currently the way Kafka processing works when the ACK level is set broker, is notification is sent to kafka using the rd_kafka_produce(), which currently DOES not return -1 if the BROKER is down.
But when the broker is down, the CALLBACK from kafka acknowledgement is never returned and hence this ack is propagated back to notification system which then does a retry and does not delete the persistent notification from queue.

But after the https://github.com/ceph/ceph/pull/51864, the connection was destroyed after idle_timeout and callbacks were invoked with SUCCESS, so even tho the notification were not delivered, they were removed from the queue because the callback was invoked with sucess.


Related issues 3 (0 open — 3 closed)

Copied to rgw - Backport #64792: reef: Notification kafka: Persistent messages are removed even when the broker is down and no ack is receivedResolvedYuval Lifshitz

Actions
Copied to rgw - Backport #64793: quincy: Notification kafka: Persistent messages are removed even when the broker is down and no ack is receivedResolvedYuval Lifshitz

Actions
Copied to rgw - Backport #64861: squid: Notification kafka: Persistent messages are removed even when the broker is down and no ack is receivedRejectedYuval Lifshitz

Actions

CB Updated by Casey Bodley about 3 years ago Actions #1

  • Status changed from New to Fix Under Review
  • Assignee set to Yuval Lifshitz

CB Updated by Casey Bodley over 2 years ago Actions #2

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to reef quincy

UB Updated by Upkeep Bot over 2 years ago Actions #3

  • Copied to Backport #64792: reef: Notification kafka: Persistent messages are removed even when the broker is down and no ack is received added

UB Updated by Upkeep Bot over 2 years ago Actions #4

  • Copied to Backport #64793: quincy: Notification kafka: Persistent messages are removed even when the broker is down and no ack is received added

YL Updated by Yuval Lifshitz over 2 years ago Actions #6

  • Backport changed from reef quincy to squid reef quincy

UB Updated by Upkeep Bot over 2 years ago Actions #7

  • Copied to Backport #64861: squid: Notification kafka: Persistent messages are removed even when the broker is down and no ack is received added

KS Updated by Konstantin Shalygin almost 2 years ago Actions #9

  • Status changed from Pending Backport to Resolved
  • Target version set to v20.0.0
  • % Done changed from 0 to 100

UB Updated by Upkeep Bot over 1 year ago Actions #10

  • Merge Commit set to 70fbeb1746f1f48e068e9696c33449e5bdc96663
  • Fixed In set to v19.0.0-11-g70fbeb1746f
  • Released In set to v19.2.0~1126
  • Upkeep Timestamp set to 2025-07-11T21:10:51+00:00
Actions

Also available in: PDF Atom