[
https://issues.apache.org/jira/browse/SCB-718?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16650066#comment-16650066
]
ASF GitHub Bot commented on SCB-718:
------------------------------------
liubao68 commented on a change in pull request #937: [SCB-718]If auto discovery
failed, will cause a dead cycle
URL:
https://github.com/apache/incubator-servicecomb-java-chassis/pull/937#discussion_r225122151
##########
File path:
service-registry/src/test/java/org/apache/servicecomb/serviceregistry/client/TestIpPortManager.java
##########
@@ -135,6 +136,19 @@ public void testGetAvailableAddress(@Injectable
ServiceRegistryConfig config,
IpPort address5 = manager.getNextAvailableAddress(address4);
Assert.assertEquals("127.0.0.1", address5.getHostOrIp());
Assert.assertEquals(9980, address5.getPort());
+
+ manager.initAutoDiscovery();
+ manager.setAutoDiscoveryInited(false);
+ IpPort address6 = manager.getNextAvailableAddress(address3);
Review comment:
Format code
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> If auto discovery failed , will cause a dead cycle
> --------------------------------------------------
>
> Key: SCB-718
> URL: https://issues.apache.org/jira/browse/SCB-718
> Project: Apache ServiceComb
> Issue Type: Task
> Reporter: laijianbin
> Assignee: laijianbin
> Priority: Major
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)