Skip to content

Commit

Permalink
Proposing a new BP to delete cookie as part of decommission API.
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthick Pitchaiah committed Sep 2, 2024
1 parent 2bcf41c commit 603f8ef
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# BP-XYZ: caption of bookkeeper proposal

### Motivation

_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._

### Public Interfaces

_api/v1/autorecovery/decommission_
add the following in payload:

```
deleteCookie
```

default value is false, which means do not delete the Cookie.

### Proposed Changes

_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._

### Compatibility, Deprecation, and Migration Plan

- The current behavior can be preserved as a default, with the cookie deletion being an optional feature that can be toggled via request parameters.

### Test Plan

_Tests to make sure cookies are getting removed as part of the decommission_

0 comments on commit 603f8ef

Please sign in to comment.