Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12484

Camel-salesforce component does not try to reconnect on specific error

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      The issue is very much identical to CAMEL-10238 where camel component does not try to reconnect. It was resolved for that particular case, however there is additional scenario where we are facing exactly similar problem.

      Here is the key log message after which component stops retrying

      {{2018-05-03 17:19:50.257 WARN 7636 — [nt@911561694-23] o.a.c.c.s.i.s.SubscriptionHelper : Connect failure: {clientId=3qi3g4psrtqrntt15ockewu0a59q, advice=

      {reconnect=none, interval=0}

      , channel=/meta/connect, id=154, error=403::Unknown client, successful=false}}}

      Please note that we are getting Connect failure multiple times but it is able to reconnect where there is exception or when the advice is to do handshake again. Here are those sample which works...

      • The one with exceptions

      2018-05-03 17:19:17.965  WARN 7636 — [nt@911561694-23] o.a.c.c.s.i.s.SubscriptionHelper         : Connect failure:

      Unknown macro: {failure= Unknown macro}

      ],recv=HttpReceiverOverHTTP@144e8ebb(rsp=IDLE,failure=null)[HttpParser
      Unknown macro: {s=CLOSED,0 of -1}
      ]]<-DecryptedEndPoint@245db684
      Unknown macro: {telia-fi--dev.cs88.my.salesforce.com/85.222.137.144}
      >HttpConnectionOverHTTP@69f41507(l:/0:0:0:0:0:0:0:1:60369 <> r:telia-fi--dev.cs88.my.salesforce.com/85.222.137.144:443,closed=false)=>HttpChannelOverHTTP@3109c579(exchange=HttpExchange@76b96e24 req=TERMINATED/null@null res=PENDING/null@null)[send=HttpSenderOverHTTP@5d6efa04(req=QUEUED,snd=COMPLETED,failure=null)[HttpGenerator@43ac2f18
      Unknown macro: {s=START}
      ],recv=HttpReceiverOverHTTP@144e8ebb(rsp=IDLE,failure=null)[HttpParser

      ]]->SocketChannelEndPoint@6b93b346
      Unknown macro: {telia-fi--dev.cs88.my.salesforce.com/85.222.137.144}
      Unknown macro: {io=0/0,kio=0,kro=1}
      >SslConnection@53bc7193{NEED_WRAP,eio=-1/-1,di=-1}=>HttpConnectionOverHTTP@69f41507(l:/0:0:0:0:0:0:0:1:60369 <> r:telia-fi--dev.cs88.my.salesforce.com/85.222.137.144:443,closed=false)=>HttpChannelOverHTTP@3109c579(exchange=HttpExchange@76b96e24 req=TERMINATED/null@null res=PENDING/null@null)[send=HttpSenderOverHTTP@5d6efa04(req=QUEUED,snd=COMPLETED,failure=null)[HttpGenerator@43ac2f18
      Unknown macro: {s=START}
      ],recv=HttpReceiverOverHTTP@144e8ebb(rsp=IDLE,failure=null)[HttpParser
      Unknown macro: {s=CLOSED,0 of -1}
      ]], message={clientId=3qi3g4psrtqrntt15ockewu0a59q, channel=/meta/connect, id=153, connectionType=long-polling}, connectionType=long-polling}, channel=/meta/connect, id=153, successful=false}

       

      • The one with advice for new handshake

      2018-05-03 16:31:08.970  WARN 7636 — [nt@911561694-21] o.a.c.c.s.i.s.SubscriptionHelper         : Connect failure:
      Unknown macro: {advice=Unknown macro}
      , channel=/meta/connect, id=83, error=403::Unknown client, successful=false}

       

      One more thing, this log is coming from line 168 LOG.warn("Connect failure: {}", message); of the https://github.com/apache/camel/blob/master/components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/streaming/SubscriptionHelper.java#L168. I see that there is no attempt to reconnect. If this information helps move things faster...

       

      Attachments

        1. logs.zip
          195 kB
          Hemang Ajmera

        Issue Links

          Activity

            People

              zregvart Zoran Regvart
              hemangajmera Hemang Ajmera
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: