commit | b2ae95475baf500c8cdfe7184ff6302b2d4038aa | [log] [tgz] |
---|---|---|
author | Michael Blow <mblow@apache.org> | Sun Feb 09 09:07:51 2020 -0500 |
committer | Michael Blow <mblow@apache.org> | Sun Feb 09 09:07:51 2020 -0500 |
tree | e39bd38f2475c7755c442cd8c0af77358fe83ca1 | |
parent | d37b7f766f44a39639dc6fcface8b38376adef5c [diff] | |
parent | 8d1e00f7f7307f33f44493a4b33b1e2fe0989ed5 [diff] |
Merge branch 'mad-hatter' Change-Id: Ief0a2fe1f0cc29411eb52b52506a5bc1a2a3fd99
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 2019da9..5d2ef07 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
@@ -35,6 +35,18 @@ void put(String key, byte[] value) throws HyracksDataException; /** + * Adds or updates the property with the name {@code key} + * with {@code value}, and indicates that values associated with + * this key should be treated as sensitive (e.g. not logged). Once a + * key is considered sensitive, it remains sensitive until deleted. + * + * @param key + * @param value + * @throws HyracksDataException + */ + void putSensitive(String key, byte[] value) throws HyracksDataException; + + /** * Gets the value of the property with name {@code key} if exists. * * @param key
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 6f9a8d2..3cbaed4 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
@@ -35,6 +35,11 @@ } @Override + public void putSensitive(String key, byte[] value) { + throw new UnsupportedOperationException(); + } + + @Override public Optional<byte[]> get(String key) { throw new UnsupportedOperationException(); }