jahidakhtargit commented on issue #4510: A host can't connect and won't try 
other hosts again in multi-hosts service url configuration
URL: https://github.com/apache/pulsar/issues/4510#issuecomment-516416130
 
 
   Same issue I'm facing:
   
   2019-07-30 18:24:11.813  INFO 20248 --- [r-client-io-1-1] 
o.a.p.c.impl.ConsumerStatsRecorderImpl   : Starting Pulsar consumer perf with 
config: {
     "topicNames" : [ "device-twin-topic" ],
     "topicsPattern" : null,
     "subscriptionName" : "device-twin-subscription",
     "subscriptionType" : "Shared",
     "receiverQueueSize" : 1000,
     "acknowledgementsGroupTimeMicros" : 100000,
     "negativeAckRedeliveryDelayMicros" : 60000000,
     "maxTotalReceiverQueueSizeAcrossPartitions" : 50000,
     "consumerName" : null,
     "ackTimeoutMillis" : 0,
     "tickDurationMillis" : 1000,
     "priorityLevel" : 0,
     "cryptoFailureAction" : "FAIL",
     "properties" : { },
     "readCompacted" : false,
     "subscriptionInitialPosition" : "Latest",
     "patternAutoDiscoveryPeriod" : 1,
     "regexSubscriptionMode" : "PersistentOnly",
     "deadLetterPolicy" : null,
     "autoUpdatePartitions" : true,
     "replicateSubscriptionState" : false,
     "resetIncludeHead" : false
   }
   2019-07-30 18:24:11.818  INFO 20248 --- [r-client-io-1-1] 
o.a.p.c.impl.ConsumerStatsRecorderImpl   : Pulsar client config: {
     "serviceUrl" : "http://localhost:8087";,
     "authPluginClassName" : null,
     "authParams" : null,
     "operationTimeoutMs" : 30000,
     "statsIntervalSeconds" : 60,
     "numIoThreads" : 1,
     "numListenerThreads" : 1,
     "connectionsPerBroker" : 1,
     "useTcpNoDelay" : true,
     "useTls" : false,
     "tlsTrustCertsFilePath" : "",
     "tlsAllowInsecureConnection" : false,
     "tlsHostnameVerificationEnable" : false,
     "concurrentLookupRequest" : 5000,
     "maxLookupRequest" : 50000,
     "maxNumberOfRejectedRequestPerConnection" : 50,
     "keepAliveIntervalSeconds" : 30,
     "connectionTimeoutMs" : 10000,
     "requestTimeoutMs" : 60000,
     "defaultBackoffIntervalNanos" : 100000000,
     "maxBackoffIntervalNanos" : 30000000000
   }
   2019-07-30 18:24:13.018  WARN 20248 --- [r-client-io-1-1] 
o.a.pulsar.client.impl.ConnectionPool    : Failed to open connection to 
20b59f0ed6eb:6650 : java.net.UnknownHostException: failed to resolve 
'20b59f0ed6eb' after 7 queries 
   2019-07-30 18:24:13.021  WARN 20248 --- [r-client-io-1-1] 
o.a.p.client.impl.ConnectionHandler      : [device-twin-topic] 
[device-twin-subscription] Error connecting to broker: 
org.apache.pulsar.client.api.PulsarClientException: 
java.util.concurrent.CompletionException: java.net.UnknownHostException: failed 
to resolve '20b59f0ed6eb' after 7 queries 
   2019-07-30 18:24:13.021  WARN 20248 --- [r-client-io-1-1] 
o.a.p.client.impl.ConnectionHandler      : [device-twin-topic] 
[device-twin-subscription] Could not get connection to broker: 
org.apache.pulsar.client.api.PulsarClientException: 
java.util.concurrent.CompletionException: java.net.UnknownHostException: failed 
to resolve '20b59f0ed6eb' after 7 queries  -- Will try again in 0.1 s
   2019-07-30 18:24:13.122  INFO 20248 --- [ulsar-timer-6-1] 
o.a.p.client.impl.ConnectionHandler      : [device-twin-topic] 
[device-twin-subscription] Reconnecting after connection was closed
   2019-07-30 18:24:14.266  WARN 20248 --- [r-client-io-1-1] 
o.a.pulsar.client.impl.ConnectionPool    : Failed to open connection to 
20b59f0ed6eb:6650 : java.net.UnknownHostException: failed to resolve 
'20b59f0ed6eb' after 7 queries 
   2019-07-30 18:24:14.266  WARN 20248 --- [r-client-io-1-1] 
o.a.p.client.impl.ConnectionHandler      : [device-twin-topic] 
[device-twin-subscription] Error connecting to broker: 
org.apache.pulsar.client.api.PulsarClientException: 
java.util.concurrent.CompletionException: java.net.UnknownHostException: failed 
to resolve '20b59f0ed6eb' after 7 queries 
   2019-07-30 18:24:14.266  WARN 20248 --- [r-client-io-1-1] 
o.a.p.client.impl.ConnectionHandler      : [device-twin-topic] 
[device-twin-subscription] Could not get connection to broker: 
org.apache.pulsar.client.api.PulsarClientException: 
java.util.concurrent.CompletionException: java.net.UnknownHostException: failed 
to resolve '20b59f0ed6eb' after 7 queries  -- Will try again in 0.186 s
   2019-07-30 18:24:14.453  INFO 20248 --- [ulsar-timer-6-1] 
o.a.p.client.impl.ConnectionHandler      : [device-twin-topic] 
[device-twin-subscription] Reconnecting after connection was closed
   2019-07-30 18:24:15.637  WARN 20248 --- [r-client-io-1-1] 
o.a.pulsar.client.impl.ConnectionPool    : Failed to open connection to 
20b59f0ed6eb:6650 : java.net.UnknownHostException: failed to resolve 
'20b59f0ed6eb' after 7 queries 
   2019-07-30 18:24:15.637  WARN 20248 --- [r-client-io-1-1] 
o.a.p.client.impl.ConnectionHandler      : [device-twin-topic] 
[device-twin-subscription] Error connecting to broker: 
org.apache.pulsar.client.api.PulsarClientException: 
java.util.concurrent.CompletionException: java.net.UnknownHostException: failed 
to resolve '20b59f0ed6eb' after 7 queries 
   2019-07-30 18:24:15.637  WARN 20248 --- [r-client-io-1-1] 
o.a.p.client.impl.ConnectionHandler      : [device-twin-topic] 
[device-twin-subscription] Could not get connection to broker: 
org.apache.pulsar.client.api.PulsarClientException: 
java.util.concurrent.CompletionException: java.net.UnknownHostException: failed 
to resolve '20b59f0ed6eb' after 7 queries  -- Will try again in 0.4 s
   2019-07-30 18:24:16.037  INFO 20248 --- [ulsar-timer-6-1] 
o.a.p.client.impl.ConnectionHandler      : [device-twin-topic] 
[device-twin-subscription] Reconnecting after connection was closed
   2019-07-30 18:24:17.276  WARN 20248 --- [r-client-io-1-1] 
o.a.pulsar.client.impl.ConnectionPool    : Failed to open connection to 
20b59f0ed6eb:6650 : java.net.UnknownHostException: failed to resolve 
'20b59f0ed6eb' after 7 queries 
   2019-07-30 18:24:17.276  WARN 20248 --- [r-client-io-1-1] 
o.a.p.client.impl.ConnectionHandler      : [device-twin-topic] 
[device-twin-subscription] Error connecting to broker: 
org.apache.pulsar.client.api.PulsarClientException: 
java.util.concurrent.CompletionException: java.net.UnknownHostException: failed 
to resolve '20b59f0ed6eb' after 7 queries 
   2019-07-30 18:24:17.276  WARN 20248 --- [r-client-io-1-1] 
o.a.p.client.impl.ConnectionHandler      : [device-twin-topic] 
[device-twin-subscription] Could not get connection to broker: 
org.apache.pulsar.client.api.PulsarClientException: 
java.util.concurrent.CompletionException: java.net.UnknownHostException: failed 
to resolve '20b59f0ed6eb' after 7 queries  -- Will try again in 0.76 s
   2019-07-30 18:24:18.037  INFO 20248 --- [ulsar-timer-6-1] 
o.a.p.client.impl.ConnectionHandler      : [device-twin-topic] 
[device-twin-subscription] Reconnecting after connection was closed
   2019-07-30 18:24:19.224  WARN 20248 --- [r-client-io-1-1] 
o.a.pulsar.client.impl.ConnectionPool    : Failed to open connection to 
20b59f0ed6eb:6650 : java.net.UnknownHostException: failed to resolve 
'20b59f0ed6eb' after 7 queries 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to