From 0866d03705a5316cd85c2ad65f5b24905257a899 Mon Sep 17 00:00:00 2001 From: zyxxoo <1318247699@qq.com> Date: Mon, 25 Apr 2022 14:26:40 +0800 Subject: [PATCH] add annotation for metrics disable --- .../backend/store/cassandra/CassandraSessionPool.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hugegraph-cassandra/src/main/java/com/baidu/hugegraph/backend/store/cassandra/CassandraSessionPool.java b/hugegraph-cassandra/src/main/java/com/baidu/hugegraph/backend/store/cassandra/CassandraSessionPool.java index 841bfe70e6..9857ccebf9 100644 --- a/hugegraph-cassandra/src/main/java/com/baidu/hugegraph/backend/store/cassandra/CassandraSessionPool.java +++ b/hugegraph-cassandra/src/main/java/com/baidu/hugegraph/backend/store/cassandra/CassandraSessionPool.java @@ -68,6 +68,11 @@ public synchronized void open() { assert this.cluster == null || this.cluster.isClosed(); Builder builder = Cluster.builder() .addContactPoints(hosts.split(",")) + /* + * Here is incompatible, java11 glassfish + * metrics use version 4,but cassandra metrics + * use version 3. + */ .withoutMetrics() .withPort(port);