The MemLog implementation has introduced an unnecessary dependency on google guava just for equals comparison in MemLogPartition
Example of a stack trace when guava is removed:
java.lang.NoClassDefFoundError: com/google/common/base/Objects at org.nuxeo.lib.stream.log.mem.MemLogPartition$MemPartitionTailer.read(MemLogPartition.java:169) ~[nuxeo-stream-2023.12-SNAPSHOT.jar:?] at org.nuxeo.lib.stream.log.mem.MemLogTailer.read(MemLogTailer.java:101) ~[nuxeo-stream-2023.12-SNAPSHOT.jar:?] at org.nuxeo.lib.stream.log.mem.MemCompoundLogTailer.read(MemCompoundLogTailer.java:92) ~[nuxeo-stream-2023.12-SNAPSHOT.jar:?] at org.nuxeo.lib.stream.log.mem.MemCompoundLogTailer.read(MemCompoundLogTailer.java:68) ~[nuxeo-stream-2023.12-SNAPSHOT.jar:?] at org.nuxeo.lib.stream.computation.log.ComputationRunner.processRecord(ComputationRunner.java:439) ~[nuxeo-stream-2023.12-SNAPSHOT.jar:?] at org.nuxeo.lib.stream.computation.log.ComputationRunner.processLoop(ComputationRunner.java:317) ~[nuxeo-stream-2023.12-SNAPSHOT.jar:?] at org.nuxeo.lib.stream.computation.log.ComputationRunner.runOnce(ComputationRunner.java:261) ~[nuxeo-stream-2023.12-SNAPSHOT.jar:?] at org.nuxeo.lib.stream.computation.log.ComputationRunner.run(ComputationRunner.java:226) [nuxeo-stream-2023.12-SNAPSHOT.jar:?] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) [?:?] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?] at java.base/java.lang.Thread.run(Thread.java:833) [?:?] Caused by: java.lang.ClassNotFoundException: com.google.common.base.Objects at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445) ~[?:?] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?] at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
- is related to
-
NXP-32518 Try to remove duplicate libs in lib and nxserver/lib for Nuxeo Stream log4j Appender
- Resolved