Skip to content

Commit

Permalink
review and checkstyle fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hanishakoneru committed Jan 28, 2020
1 parent e573284 commit 717b0ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Expand Up @@ -218,7 +218,6 @@ public OMClientResponse validateAndUpdateCache(OzoneManager ozoneManager,
keyName);
OmKeyInfo dbKeyInfo = omMetadataManager.getKeyTable().get(ozoneKey);
if (dbKeyInfo != null) {
// Check if this transaction is a replay of ratis logs.
// Check if this transaction is a replay of ratis logs.
// We check only the KeyTable here and not the OpenKeyTable. In case
// this transaction is a replay but the transaction was not committed
Expand Down
Expand Up @@ -82,10 +82,16 @@ public abstract class OMKeyRequest extends OMClientRequest {

private static final Logger LOG = LoggerFactory.getLogger(OMKeyRequest.class);

/**
* Stores the result of request execution in
* OMClientRequest#validateAndUpdateCache.
*/
public enum Result {
SUCCESS,
REPLAY,
FAILURE
SUCCESS, // The request was executed successfully

REPLAY, // The request is a replay and was ignored

FAILURE // The request failed and exception was thrown
}

public OMKeyRequest(OMRequest omRequest) {
Expand Down

0 comments on commit 717b0ff

Please sign in to comment.