Re: [PR] Optimize subscription order [dubbo]

2024-05-07 Thread via GitHub


finefuture closed pull request #13942: Optimize subscription order
URL: https://github.com/apache/dubbo/pull/13942


-- 
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.

To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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



Re: [PR] Optimize subscription order [dubbo]

2024-03-20 Thread via GitHub


laywin commented on PR #13942:
URL: https://github.com/apache/dubbo/pull/13942#issuecomment-2009132663

   > However, this still cannot resolve the ABC issue. 
![image](https://private-user-images.githubusercontent.com/9292748/313888281-5bd774f0-8e7a-4bc1-bed3-483020b69f18.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA5MjU0NDgsIm5iZiI6MTcxMDkyNTE0OCwicGF0aCI6Ii85MjkyNzQ4LzMxMzg4ODI4MS01YmQ3NzRmMC04ZTdhLTRiYzEtYmVkMy00ODMwMjBiNjlmMTgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDMyMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDAzMjBUMDg1OTA4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Mjg0YmJhNzg3ZDVkZDgzNzkwMWQwYmUyYjFhN2I1ZGIwNTE5ZTZmMDVhNmQxNDZiYjA1MzBhM2FlM2FjYzcyOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.fH2wLYelsz6MQ1Qjsu0OqZ7Op6jGqVyDTnfm25tCyf8)
   
   it seems a timing problem, there should be a timestamp or version from 
registry center.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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



Re: [PR] Optimize subscription order [dubbo]

2024-03-19 Thread via GitHub


finefuture commented on PR #13942:
URL: https://github.com/apache/dubbo/pull/13942#issuecomment-2008622802

   > > 1. Add version to instance and compare version.
   > >This is a good idea. But is it supported by nacos?
   > 
   > > 2. The registry center triggers an event push for all instances when a 
subscription request is received.
   > >Same like 1, should nacos support first.
   > 
   > > 3. Lock getAllInstance and notify to ensure that getAllInstance is 
executed first.
   > >I think this cannot resolve it totally. This just make the 
probability smaller.
   
   Yes, register center support is required.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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



Re: [PR] Optimize subscription order [dubbo]

2024-03-19 Thread via GitHub


AlbumenJ commented on PR #13942:
URL: https://github.com/apache/dubbo/pull/13942#issuecomment-2008549847

   > 1. Add version to instance and compare version.
   This is a good idea. But is it supported by nacos?
   
   > 2. The registry center triggers an event push for all instances when a 
subscription request is received.
   Same like 1, should nacos support first.
   
   > 3. Lock getAllInstance and notify to ensure that getAllInstance is 
executed first.
   I think this cannot resolve it totally. This just make the probability 
smaller.
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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



Re: [PR] Optimize subscription order [dubbo]

2024-03-18 Thread via GitHub


finefuture commented on PR #13942:
URL: https://github.com/apache/dubbo/pull/13942#issuecomment-2005684209

   > However, this still cannot resolve the ABC issue. 
![image](https://private-user-images.githubusercontent.com/9292748/313888281-5bd774f0-8e7a-4bc1-bed3-483020b69f18.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA4MTYyNDQsIm5iZiI6MTcxMDgxNTk0NCwicGF0aCI6Ii85MjkyNzQ4LzMxMzg4ODI4MS01YmQ3NzRmMC04ZTdhLTRiYzEtYmVkMy00ODMwMjBiNjlmMTgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDMxOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDAzMTlUMDIzOTA0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9N2VhMzA0OGNiZTgwZDhkNGFjOTg4MTE1MjRkNmZkMDAxN2I3NTgyZWI0NmRlYzVkYWZkMjY0ODRlZTY5NzMwMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.FpjNzrT3E3kJkBAdiUfcFBTz780R3K91_ICjpy7ZObo)
   
   I think there are three solutions:
   1. Add version to instance and compare version.
   2. The registry center triggers an event push for all instances when a 
subscription request is received.
   3. Lock getAllInstance and notify to ensure that getAllInstance is executed 
first.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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



Re: [PR] Optimize subscription order [dubbo]

2024-03-18 Thread via GitHub


AlbumenJ commented on PR #13942:
URL: https://github.com/apache/dubbo/pull/13942#issuecomment-2005602978

   However, this still cannot resolve the ABC issue.
   
![image](https://github.com/apache/dubbo/assets/9292748/5bd774f0-8e7a-4bc1-bed3-483020b69f18)
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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



Re: [PR] Optimize subscription order [dubbo]

2024-03-18 Thread via GitHub


AlbumenJ commented on code in PR #13942:
URL: https://github.com/apache/dubbo/pull/13942#discussion_r1529568448


##
dubbo-registry/dubbo-registry-api/src/main/java/org/apache/dubbo/registry/client/ServiceDiscoveryRegistry.java:
##
@@ -344,17 +344,12 @@ protected void subscribeURLs(URL url, NotifyListener 
listener, Set servi
 Lock appSubscriptionLock = getAppSubscription(serviceNamesKey);
 try {
 appSubscriptionLock.lock();
+boolean initialization = false;

Review Comment:
   Add some comment to describe what is this variable working for.



-- 
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.

To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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



Re: [PR] Optimize subscription order [dubbo]

2024-03-18 Thread via GitHub


sonarcloud[bot] commented on PR #13942:
URL: https://github.com/apache/dubbo/pull/13942#issuecomment-2003569807

   ## [![Quality Gate 
Passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-passed-20px.png
 'Quality Gate 
Passed')](https://sonarcloud.io/dashboard?id=apache_dubbo=13942) 
**Quality Gate passed**  
   Issues  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0 New 
issues](https://sonarcloud.io/project/issues?id=apache_dubbo=13942=false=true)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/accepted-16px.png
 '') [0 Accepted 
issues](https://sonarcloud.io/component_measures?id=apache_dubbo=13942=new_accepted_issues=list)
   
   Measures  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0 Security 
Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_dubbo=13942=false=true)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [70.6% Coverage on New 
Code](https://sonarcloud.io/component_measures?id=apache_dubbo=13942=new_coverage=list)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0.0% Duplication on New 
Code](https://sonarcloud.io/component_measures?id=apache_dubbo=13942=new_duplicated_lines_density=list)
  
 
   [See analysis details on 
SonarCloud](https://sonarcloud.io/dashboard?id=apache_dubbo=13942)
   
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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



Re: [PR] Optimize subscription order [dubbo]

2024-03-18 Thread via GitHub


sonarcloud[bot] commented on PR #13942:
URL: https://github.com/apache/dubbo/pull/13942#issuecomment-2003467747

   ## [![Quality Gate 
Passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-passed-20px.png
 'Quality Gate 
Passed')](https://sonarcloud.io/dashboard?id=apache_dubbo=13942) 
**Quality Gate passed**  
   Issues  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0 New 
issues](https://sonarcloud.io/project/issues?id=apache_dubbo=13942=false=true)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/accepted-16px.png
 '') [0 Accepted 
issues](https://sonarcloud.io/component_measures?id=apache_dubbo=13942=new_accepted_issues=list)
   
   Measures  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0 Security 
Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_dubbo=13942=false=true)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [100.0% Coverage on New 
Code](https://sonarcloud.io/component_measures?id=apache_dubbo=13942=new_coverage=list)
  
   
![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png
 '') [0.0% Duplication on New 
Code](https://sonarcloud.io/component_measures?id=apache_dubbo=13942=new_duplicated_lines_density=list)
  
 
   [See analysis details on 
SonarCloud](https://sonarcloud.io/dashboard?id=apache_dubbo=13942)
   
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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