Uploaded image for project: 'Airavata'
  1. Airavata
  2. AIRAVATA-3287

Evict failed SSH connections from connection pool

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Some times SSH connections can be invalidated over the time if we keep it in the pool without using it. If that's the case, those invalidated connections should be checked and removed from the pool.

      9-43d0-ba65-9c0ca3611c95, gateway=ultrascan - Error while checking the file /scratch/01623/us3/airavata-workingdirs/PROCESS_4ce5f970-98ab-436e-a4cd-0ba6e611cb72/output/analysis-results.tar existence
      org.apache.airavata.agents.api.AgentException: net.schmizz.sshj.connection.ConnectionException: Request failed
      at org.apache.airavata.helix.adaptor.SSHJAgentAdaptor.doesFileExist(SSHJAgentAdaptor.java:340)
      at org.apache.airavata.helix.impl.task.staging.DataStagingTask.transferFileToStorage(DataStagingTask.java:320)
      at org.apache.airavata.helix.impl.task.staging.OutputDataStagingTask.onRun(OutputDataStagingTask.java:171)
      at org.apache.airavata.helix.impl.task.AiravataTask.onRun(AiravataTask.java:360)
      at org.apache.airavata.helix.core.AbstractTask.run(AbstractTask.java:92)
      at org.apache.helix.task.TaskRunner.run(TaskRunner.java:71)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: net.schmizz.sshj.connection.ConnectionException: Request failed
      at net.schmizz.sshj.connection.channel.AbstractChannel.gotResponse(AbstractChannel.java:402)
      at net.schmizz.sshj.connection.channel.AbstractChannel.handle(AbstractChannel.java:191)
      at net.schmizz.sshj.connection.ConnectionImpl.handle(ConnectionImpl.java:130)
      at net.schmizz.sshj.transport.TransportImpl.handle(TransportImpl.java:500)
      at net.schmizz.sshj.transport.Decoder.decode(Decoder.java:102)
      at net.schmizz.sshj.transport.Decoder.received(Decoder.java:170)
      at net.schmizz.sshj.transport.Reader.run(Reader.java:59)

       

       

       

        Attachments

          Activity

            People

            • Assignee:
              dimuthuupe Dimuthu Upeksha
              Reporter:
              dimuthuupe Dimuthu Upeksha
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: