Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

No releaseLock method exposed in the KV Client to preserve the existing value #416

@jcass8695

Description

@jcass8695

Currently there is no override of the releaseLock method exposed in the KV client that allows the user to preserve the existing value in the KV store.

The existing method does not take a value parameter, causing the underlying PUT API call to overwrite whatever value is currently in the store with an empty string.

The acquireLock method does expose such a method, so a fix would be to mimic that behaviour.

To reproduce the issue

  • Add a value to the KV store, by any method.
  • Call the acquireLock(String, String) library method on the key in question.
  • Observe the value being overwritten to "".

I could probably make a PR for this, if the maintainers are busy :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions