Skip to content

Commit

Permalink
Make hazelcast not complain about JDK 9+
Browse files Browse the repository at this point in the history
  • Loading branch information
tonsky committed Dec 23, 2024
1 parent f66e207 commit 27adad9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 8 additions & 2 deletions server/deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,14 @@
:jvm-opts ["-Djdk.tracePinnedThreads=full"
;; print stack traces instead of "Full report at ..."
"-Dclojure.main.report=stderr"
"-Dclojure.server.repl={:port 6006 :accept clojure.core.server/repl}"]}

"-Dclojure.server.repl={:port 6006 :accept clojure.core.server/repl}"
;; hazelcast
"--add-modules" "java.se"
"--add-exports" "java.base/jdk.internal.ref=ALL-UNNAMED"
"--add-opens" "java.base/java.lang=ALL-UNNAMED"
"--add-opens" "java.base/sun.nio.ch=ALL-UNNAMED"
"--add-opens" "java.management/sun.management=ALL-UNNAMED"
"--add-opens" "jdk.management/com.sun.management.internal=ALL-UNNAMED"]}
:storm {:extra-deps {com.github.flow-storm/clojure {:mvn/version "1.11.2-4"}
com.github.flow-storm/flow-storm-dbg {:mvn/version "3.14.0"}}
:override-deps {org.clojure/clojure nil}
Expand Down
2 changes: 2 additions & 0 deletions server/src/instant/reactive/ephemeral.clj
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
(declare handle-broadcast-message)

(defn init-hz [store-conn]
(-> (java.util.logging.Logger/getLogger "com.hazelcast.system.logo")
(.setLevel java.util.logging.Level/WARNING))
(System/setProperty "hazelcast.shutdownhook.enabled" "false")
(let [config (Config.)
network-config (.getNetworkConfig config)
Expand Down

0 comments on commit 27adad9

Please sign in to comment.