티스토리 뷰
java 11 변경 후 Hazelcast에 있는 캐시 정보를 역직렬화 시 아래와 같은 오류가 발생함.
com.hazelcast.nio.serialization.HazelcastSerializationException: java.lang.ClassNotFoundException
k8s 여러 파드 가운데 일부 파드에서만 위와 같은 오류가 발생했고 아래와 같이 ClassLoader를 셋팅함.
ClientConfig config = new ClientConfig();
config.setClassLoader(Thread.currentThread().getContextClassLoader());
참고
github.com/hazelcast/hazelcast/issues/14799
Statistics in spring boot 2.1.x no longer exported to prometheus · Issue #14799 · hazelcast/hazelcast
I ran into am issue with spring boot 2.1.3 and the cache metrics. Maybe related to: #14684 I use actuator and prometheus to export the cache statistics. This worked before by using the CacheMetrics...
github.com
www.devworx.co.uk/blog/Beware-The-ForkJoinPool-In-Web-Applications/index.html
Beware - The Java ForkJoinPool in Web Applications.
From the example above, it is clear that the ContextClassLoader changes over the course of the application’s deployment. And certainly, looking at some of the Tomcat Resources on class loading - it becomes clear why relying on a common pool (which may be
www.devworx.co.uk