[Q] When Kafka Topic Tenant Collection Is Enabled, Module May Delete Topic For All Tenants

Description

If a tenant is created with tenant parameter purge=true, mod-circulation-storage will attempt to delete the topic for the tenant (if it exists). When tenant collection topics is enabled, it means that mod-circulation-storage will attempt to delete the tenant collection topic. This will delete topics for all tenants since the topic is shared.

This will cause a loss of data. mod-circulation-storage should not delete the tenant collection topic when tenant collection is enabled.

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Checklist

hide

Activity

Show:

Alexander KurashMay 7, 2024 at 12:06 PM

Tested on Quesnelia BugFest

Olamide KolawoleMay 2, 2024 at 4:40 PM

Yes the purge parameter on the proxy API is what i am referring to. From your investigation, there is no way to create a tenant with purge=true, only delete. Let’s use the delete call.

Oleksandr VidinieievMay 2, 2024 at 12:48 PM

Hi
What exactly do you mean by “tenant is created with tenant parameter purge=true"? I searched through Okapi’s documentation, and I see that “purge” is only mentioned in a context of module disabling. For instance, “purge” is one of the available query parameters in this API. Is this the purge you have in mind? Or is there an actual way of creating a tenant with such parameter? Could you please share an example of an HTTP-request I can use to test this fix?

Oleksii PetrenkoApril 22, 2024 at 9:15 AM

Deployed to Q bugfest

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Vega

Fix versions

Release

Quesnelia (R1 2024) Bug Fix

RCA Group

Implementation coding issue

Affected releases

Poppy (R2 2023)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created April 15, 2024 at 1:47 PM
Updated May 7, 2024 at 12:06 PM
Resolved April 17, 2024 at 12:17 PM
TestRail: Cases
TestRail: Runs