Wrap `deleteProperty` API to the BanyanDBStorageClient. (#10971)
This commit is contained in:
parent
cb2676845b
commit
ba771097f1
|
|
@ -9,6 +9,7 @@
|
|||
* Add Neo4j component ID(112) language: Python.
|
||||
* Add Istio ServiceEntry registry to resolve unknown IPs in ALS.
|
||||
* Improve Kubernetes coordinator to only select ready OAP Pods to build cluster.
|
||||
* Wrap `deleteProperty` API to the BanyanDBStorageClient.
|
||||
|
||||
#### UI
|
||||
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ import org.apache.skywalking.banyandb.v1.client.grpc.exception.BanyanDBException
|
|||
import org.apache.skywalking.banyandb.v1.client.metadata.Group;
|
||||
import org.apache.skywalking.banyandb.v1.client.metadata.Measure;
|
||||
import org.apache.skywalking.banyandb.v1.client.metadata.Property;
|
||||
import org.apache.skywalking.banyandb.v1.client.metadata.PropertyStore;
|
||||
import org.apache.skywalking.banyandb.v1.client.metadata.Stream;
|
||||
import org.apache.skywalking.banyandb.v1.client.metadata.TopNAggregation;
|
||||
import org.apache.skywalking.oap.server.library.client.Client;
|
||||
|
|
@ -99,6 +100,17 @@ public class BanyanDBStorageClient implements Client, HealthCheckable {
|
|||
}
|
||||
}
|
||||
|
||||
public PropertyStore.DeleteResult deleteProperty(String group, String name, String id, String... tags) throws IOException {
|
||||
try {
|
||||
PropertyStore.DeleteResult result = this.client.deleteProperty(group, name, id, tags);
|
||||
this.healthChecker.health();
|
||||
return result;
|
||||
} catch (BanyanDBException ex) {
|
||||
healthChecker.unHealth(ex);
|
||||
throw new IOException("fail to delete property", ex);
|
||||
}
|
||||
}
|
||||
|
||||
public StreamQueryResponse query(StreamQuery q) throws IOException {
|
||||
try {
|
||||
StreamQueryResponse response = this.client.query(q);
|
||||
|
|
|
|||
Loading…
Reference in New Issue