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

grpc errors on camel-google-pubsub with apache camel 3.2.0 or higher

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Resolved
    • Affects Version/s: 3.2.0
    • Fix Version/s: None
    • Component/s: camel-google-pubsub
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      1) The current camel examples utilize GooglePubsubConnectionFactory  to connect to pubsub till 3.1.0

       

      https://github.com/apache/camel/blob/camel-3.1.0/components/camel-google-pubsub/src/main/java/org/apache/camel/component/google/pubsub/GooglePubsubConnectionFactory.java

       

      This has been removed from camel 3.2 and above and camel can't connect to pubsub with grpc errors

       

       

      WARNING: [Channel<1>: (<topicName>?maxMessagesPerPoll=10&concurrentConsumers=1)] Failed to resolve name. status=Status{code=UNAVAILABLE, description=Unable to resolve host <topicName>, cause=java.lang.RuntimeException: java.net.UnknownHostException: <topicName>: Name or service not known at io.grpc.internal.DnsNameResolver.resolveAll(DnsNameResolver.java:436) at io.grpc.internal.DnsNameResolver$Resolve.resolveInternal(DnsNameResolver.java:272) at io.grpc.internal.DnsNameResolver$Resolve.run(DnsNameResolver.java:228) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.net.UnknownHostException: <topicName>: Name or service not known at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929) at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1324) at java.net.InetAddress.getAllByName0(InetAddress.java:1277) at java.net.InetAddress.getAllByName(InetAddress.java:1193) at java.net.InetAddress.getAllByName(InetAddress.java:1127) at io.grpc.internal.DnsNameResolver$JdkAddressResolver.resolveAddress(DnsNameResolver.java:646) at io.grpc.internal.DnsNameResolver.resolveAll(DnsNameResolver.java:404) ... 5 more

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              loks007divi SAILOKESH DIVI
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: