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

Fix ratis examples after supporting streaming

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • examples
    • None

    Description

      When run ratis examples , get the following errors.

      Found /Users/fermi/projects/incubator-ratis/ratis-examples/target/ratis-examples-1.1.0-SNAPSHOT.jar
      Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3
      at org.apache.ratis.examples.common.SubCommandBase.lambda$parsePeers$0(SubCommandBase.java:46)
      at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
      at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
      at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
      at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:546)
      at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
      at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:438)
      at org.apache.ratis.examples.common.SubCommandBase.parsePeers(SubCommandBase.java:48)
      at org.apache.ratis.examples.common.SubCommandBase.getPeers(SubCommandBase.java:52)
      at org.apache.ratis.examples.common.SubCommandBase.getPeer(SubCommandBase.java:84)
      at org.apache.ratis.examples.arithmetic.cli.Server.run(Server.java:60)
      at org.apache.ratis.examples.common.Runner.main(Runner.java:63)

      Attachments

        Issue Links

          Activity

            People

              ferhui Hui Fei
              ferhui Hui Fei
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m