Uploaded image for project: 'Corda'
  1. CORDA-2519

Terminating ssh connection to node results in stack trace being thrown to the console

    Details

    • Type: Bug
    • Status: Done (View workflow)
    • Priority: Medium
    • Resolution: Done
    • Affects versions: Corda 4 RC03
    • Fix versions: Corda 4.1
    • Components: None
    • Labels:
      None
    • Affected OS:
      Windows
    • Severity:
      Low
    • Target Version/s:
    • Feature Team:
      Operational Experience
    • Sprint:

      Description

      Start up a node with ssh enabled
      SSH to the node
      Terminate the SSH session.

      An stack trace is thrown to the console. SSH sessions being terminated is a normal occurrance and shouldn't throw stack traces to the console (maybe an INFO log saying "SSH Session terminated" or something like that)

      java.io.InterruptedIOException: Interrupted at cycle #0 while waiting for data to become available
              at org.apache.sshd.common.channel.ChannelPipedInputStream.read(ChannelPipedInputStream.java:138)
              at org.apache.sshd.common.channel.ChannelPipedInputStream.read(ChannelPipedInputStream.java:100)
              at org.crsh.console.jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:166)
              at org.crsh.console.jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:135)
              at org.crsh.console.jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:243)
              at org.crsh.console.jline.internal.InputStreamReader.read(InputStreamReader.java:257)
              at org.crsh.console.jline.internal.InputStreamReader.read(InputStreamReader.java:194)
              at org.crsh.console.jline.console.ConsoleReader.readCharacter(ConsoleReader.java:2147)
              at org.crsh.console.jline.console.ConsoleReader.readCharacter(ConsoleReader.java:2137)
              at org.crsh.console.jline.JLineProcessor.run(JLineProcessor.java:111)
              at org.crsh.ssh.term.CRaSHCommand.run(CRaSHCommand.java:100)
              at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.InterruptedException
              at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2014)
              at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2048)
              at org.apache.sshd.common.channel.ChannelPipedInputStream.read(ChannelPipedInputStream.java:135)
              ... 11 more
      

      Tested on Windows using PuTTY as an SSH client.

        Attachments

          Activity

            People

            • Assignee:
              stefan.iliev Stefan Iliev
              Reporter:
              Anthony.Keenan Anthony Keenan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: