Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-32532

Remove guava dependencies in nuxeo stream lib

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2023.13
    • Component/s: Streams
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #112, nxplatform #113
    • Story Points:
      2

      Description

      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) ~[?:?]
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: