[GitHub] diecui1202 commented on a change in pull request #1267: [dubbo-1267]add consistentHashLoadBalance test

2018-05-09 Thread GitBox
diecui1202 commented on a change in pull request #1267: [dubbo-1267]add 
consistentHashLoadBalance test 
URL: https://github.com/apache/incubator-dubbo/pull/1267#discussion_r186943993
 
 

 ##
 File path: 
dubbo-cluster/src/test/java/com/alibaba/dubbo/rpc/cluster/loadbalance/LoadBalanceTest.java
 ##
 @@ -71,6 +73,14 @@ public void setUp() throws Exception {
 invoker3 = EasyMock.createMock(Invoker.class);
 invoker4 = EasyMock.createMock(Invoker.class);
 invoker5 = EasyMock.createMock(Invoker.class);
+invocationList = new ArrayList();
+for(int i=0; i<1000; i++){
 
 Review comment:
   Could you format the 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:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org



[GitHub] diecui1202 commented on a change in pull request #1267: [dubbo-1267]add consistentHashLoadBalance test

2018-05-09 Thread GitBox
diecui1202 commented on a change in pull request #1267: [dubbo-1267]add 
consistentHashLoadBalance test 
URL: https://github.com/apache/incubator-dubbo/pull/1267#discussion_r186944119
 
 

 ##
 File path: 
dubbo-cluster/src/test/java/com/alibaba/dubbo/rpc/cluster/loadbalance/LoadBalanceTest.java
 ##
 @@ -71,6 +73,14 @@ public void setUp() throws Exception {
 invoker3 = EasyMock.createMock(Invoker.class);
 invoker4 = EasyMock.createMock(Invoker.class);
 invoker5 = EasyMock.createMock(Invoker.class);
+invocationList = new ArrayList();
+for(int i=0; i<1000; i++){
+Invocation  invocation1 = EasyMock.createMock(Invocation.class);
 
 Review comment:
   `invocation` is a better variable name here.


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:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org



[GitHub] diecui1202 commented on a change in pull request #1267: [dubbo-1267]add consistentHashLoadBalance test

2018-05-09 Thread GitBox
diecui1202 commented on a change in pull request #1267: [dubbo-1267]add 
consistentHashLoadBalance test 
URL: https://github.com/apache/incubator-dubbo/pull/1267#discussion_r186939176
 
 

 ##
 File path: 
dubbo-cluster/src/main/java/com/alibaba/dubbo/rpc/cluster/loadbalance/ConsistentHashLoadBalance.java
 ##
 @@ -36,6 +36,8 @@
  */
 public class ConsistentHashLoadBalance extends AbstractLoadBalance {
 
+public static final String NAME = "consistenthash";
 
 Review comment:
   IMO, this is ok.


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:
us...@infra.apache.org


With regards,
Apache Git Services

-
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org