Murtadha Hubail has submitted this change and it was merged.

Change subject: [ASTERIXDB-2207][CLUS] Add Delete API to ICoordinationService
......................................................................


[ASTERIXDB-2207][CLUS] Add Delete API to ICoordinationService

- user model changes: no
- storage format changes: no
- interface changes: yes
  - Add delete to ICoordinationService

Change-Id: Ie3a17fb1cec9350025cdf0ee340c80d7e0f1a9f0
Reviewed-on: https://asterix-gerrit.ics.uci.edu/2267
Sonar-Qube: Jenkins <[email protected]>
Tested-by: Jenkins <[email protected]>
Integration-Tests: Jenkins <[email protected]>
Reviewed-by: Michael Blow <[email protected]>
---
M 
asterixdb/asterix-common/src/main/java/org/apache/asterix/common/api/ICoordinationService.java
M 
asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/utils/NoOpCoordinationService.java
2 files changed, 14 insertions(+), 1 deletion(-)

Approvals:
  Anon. E. Moose #1000171: 
  Jenkins: Verified; No violations found; Verified
  Michael Blow: Looks good to me, approved



diff --git 
a/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/api/ICoordinationService.java
 
b/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/api/ICoordinationService.java
index 6f929b1..6146084 100644
--- 
a/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/api/ICoordinationService.java
+++ 
b/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/api/ICoordinationService.java
@@ -42,4 +42,12 @@
      * @throws HyracksDataException
      */
     Optional<byte[]> get(String key) throws HyracksDataException;
-}
+
+    /**
+     * Deletes the property with name {@code key} if exists.
+     *
+     * @param key
+     * @throws HyracksDataException
+     */
+    void delete(String key) throws HyracksDataException;
+}
\ No newline at end of file
diff --git 
a/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/utils/NoOpCoordinationService.java
 
b/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/utils/NoOpCoordinationService.java
index ed29f4b..6f9a8d2 100644
--- 
a/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/utils/NoOpCoordinationService.java
+++ 
b/asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/utils/NoOpCoordinationService.java
@@ -38,4 +38,9 @@
     public Optional<byte[]> get(String key) {
         throw new UnsupportedOperationException();
     }
+
+    @Override
+    public void delete(String key) {
+        throw new UnsupportedOperationException();
+    }
 }

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/2267
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie3a17fb1cec9350025cdf0ee340c80d7e0f1a9f0
Gerrit-PatchSet: 2
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Murtadha Hubail <[email protected]>
Gerrit-Reviewer: Anon. E. Moose #1000171
Gerrit-Reviewer: Jenkins <[email protected]>
Gerrit-Reviewer: Michael Blow <[email protected]>
Gerrit-Reviewer: Murtadha Hubail <[email protected]>
Gerrit-Reviewer: Till Westmann <[email protected]>

Reply via email to