Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-479

Load Generator Broken?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Cannot Reproduce
    • None
    • None
    • None
    • None

    Description

      Hi Josh, as mentioned in RATIS-463, it seems like RATIS-456 was working when applied as a patch during its merge but now breaks for my testing with the following perhaps due to the move to thirdparty?

      Server processes are started via:

      vagrant@ratis-server:~$ cat incubator-ratis/dev-support/vagrant/bin/start_ratis_server.sh |tail -3 | head -n2
      cd /home/vagrant/incubator-ratis/
      java -jar `find ./ -name 'ratis-examples*-SNAPSHOT.jar'` filestore server --storage $storage --id $id --peers $peers 2>&1 | tee ~/server_${id}.log
      
      vagrant@ratis-server:~$ grep 'Exception in thread' server*.log
      server_n0.log:Exception in thread "StateMachineUpdater-n0" java.lang.NoClassDefFoundError: org/apache/ratis/util/ExitUtils
      server_n1.log:Exception in thread "n1-RaftLogWorker" Exception in thread "StateMachineUpdater-n1" java.lang.NoClassDefFoundError: org/apache/ratis/util/ExitUtils
      server_n2.log:Exception in thread "org.apache.ratis.server.impl.LogAppender$$Lambda$155/1659649329@438afb89" java.lang.NoClassDefFoundError: org/apache/log4j/spi/ThrowableInformatio

      The loadgen is started via:

      vagrant@ratis-server:~$ cat incubator-ratis/dev-support/vagrant/bin/start_ratis_load_gen.sh |tail -3 | head -n2
      cd /home/vagrant/incubator-ratis
      ./ratis-examples/src/main/bin/client.sh filestore loadgen --size 1048576 --numFiles 100 --peers $peers 2>&1 | tee ~/loadgen.log
      
      vagrant@ratis-server:~$ grep 'Exception in thread' load*.log
      loadgen.log:Exception in thread "main" java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: org/apache/ratis/thirdparty/io/grpc/internal/DelayedStream$9
      server_n0.log:Exception in thread "StateMachineUpdater-n0" java.lang.NoClassDefFoundError: org/apache/ratis/util/ExitUtils
      server_n1.log:Exception in thread "n1-RaftLogWorker" Exception in thread "StateMachineUpdater-n1" java.lang.NoClassDefFoundError: org/apache/ratis/util/ExitUtils
      server_n2.log:Exception in thread "org.apache.ratis.server.impl.LogAppender$$Lambda$155/1659649329@438afb89" java.lang.NoClassDefFoundError: org/apache/log4j/spi/ThrowableInformation
      

      I do see that these classes are present though:
      ExitUtils:

      incubator-ratis/ -name "*.jar" -a -exec jar -tf \{\} \; -a -print | egrep '.jar|org/apache/ratis/util/ExitUtils' | grep -B1 ExitUtils
      /data/incubator-ratis/ratis-common/target/ratis-common-0.4.0-SNAPSHOT-tests.jar
      org/apache/ratis/util/ExitUtils.class
      org/apache/ratis/util/ExitUtils$States.class
      org/apache/ratis/util/ExitUtils$ExitException.class
      --
      /data/incubator-ratis/ratis-proto/target/ratis-proto-0.4.0-SNAPSHOT-sources.jar
      org/apache/ratis/util/ExitUtils.class
      org/apache/ratis/util/ExitUtils$States.class
      org/apache/ratis/util/ExitUtils$ExitException.class

      And DelayedStream:

      incubator-ratis/ -name "*.jar" -a -exec jar -tf \{\} \; -a -print | egrep '.jar|org/apache/ratis/thirdparty/io/grpc/internal/DelayedStream' | grep -B1 DelayedStream
      /data/incubator-ratis/ratis-proto/target/ratis-proto-0.4.0-SNAPSHOT-sources.jar
      org/apache/ratis/thirdparty/io/grpc/internal/DelayedStream$12.class
      org/apache/ratis/thirdparty/io/grpc/internal/DelayedStream$5.class
      org/apache/ratis/thirdparty/io/grpc/internal/DelayedStream$DelayedStreamListener$2.class
      org/apache/ratis/thirdparty/io/grpc/internal/DelayedStream$DelayedStreamListener$3.class
      org/apache/ratis/thirdparty/io/grpc/internal/DelayedStream$4.class
      org/apache/ratis/thirdparty/io/grpc/internal/DelayedStream$2.class
      org/apache/ratis/thirdparty/io/grpc/internal/DelayedStream$DelayedStreamListener.class
      org/apache/ratis/thirdparty/io/grpc/internal/DelayedStream$9.class
      org/apache/ratis/thirdparty/io/grpc/internal/DelayedStream$3.class
      org/apache/ratis/thirdparty/io/grpc/internal/DelayedStream$10.class
      org/apache/ratis/thirdparty/io/grpc/internal/DelayedStream$7.class
      org/apache/ratis/thirdparty/io/grpc/internal/DelayedStream$DelayedStreamListener$1.class
      org/apache/ratis/thirdparty/io/grpc/internal/DelayedStream$DelayedStreamListener$4.class
      org/apache/ratis/thirdparty/io/grpc/internal/DelayedStream$1.class
      org/apache/ratis/thirdparty/io/grpc/internal/DelayedStream$14.class
      org/apache/ratis/thirdparty/io/grpc/internal/DelayedStream$DelayedStreamListener$5.class
      org/apache/ratis/thirdparty/io/grpc/internal/DelayedStream$13.class
      org/apache/ratis/thirdparty/io/grpc/internal/DelayedStream$6.class
      org/apache/ratis/thirdparty/io/grpc/internal/DelayedStream.class
      org/apache/ratis/thirdparty/io/grpc/internal/DelayedStream$11.class
      org/apache/ratis/thirdparty/io/grpc/internal/DelayedStream$8.class
      

       

      Attachments

        Issue Links

          Activity

            People

              elserj Josh Elser
              clayb Clay B.
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: