Skip to content

Commit

Permalink
add annotation for metrics disable
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxxoo committed Apr 25, 2022
1 parent d2bfe71 commit 0866d03
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0866d03

Please sign in to comment.