Skip to content

Commit dbd0317

Browse files
author
Karthick Pitchaiah
committed
Proposing a new BP to delete cookie as part of decommission API.
1 parent 2bcf41c commit dbd0317

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# BP-68: Delete cookie as part of bookkeeper decommission
2+
3+
### Motivation
4+
5+
_The current decommission process in Apache BookKeeper has two main interfaces: the REST API and the command-line interface (CLI). However, there is a discrepancy between these two methods, specifically in the handling of cookie deletion. The CLI includes logic for deleting cookies associated with decommissioned Bookies, while the REST API lacks this functionality. This BP proposes enhancing the REST API to include cookie deletion logic, aligning it with the behavior of the CLI._
6+
7+
### Public Interfaces
8+
9+
_api/v1/autorecovery/decommission_
10+
add the following in payload:
11+
12+
```
13+
delete_cookie
14+
```
15+
16+
default value is false, which means do not delete the Cookie.
17+
18+
### Proposed Changes
19+
20+
_Implement the same cookie deletion logic present in the CLI within the REST API. This ensures that when a Bookie is decommissioned via the REST API, all associated cookies are removed, preventing any stale or conflicting state._
21+
22+
### Compatibility, Deprecation, and Migration Plan
23+
24+
- The current behavior can be preserved as a default, with the cookie deletion being an optional feature that can be toggled via request parameters.
25+
26+
### Test Plan
27+
28+
_Tests to make sure cookies are getting removed as part of the decommission_

0 commit comments

Comments
 (0)