apache / apache/accumulo-fluo

Add set if non-existant operation

Open
#527 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
200
Forks
73
PR merge metrics
No merged PRs in 30d

Description

A transactional operation to only set a value if does not exists would be useful. When this could be used, it would avoid a read/get in the transaction. This would be useful for a load transaction that checks if something does not exist. It would also be useful for implementing a queue.

I think this could be implemented in the 1st phase of two phase commit when locking row/columns. The conditional mutation that acquires the lock could do the empty check as part of its other checks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.