forked from apache/dubbo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[3.0] allocate invokers space at initial time of AbstractDirectory, f…
…ix ConnectivityValidationTest (apache#9211) * allocate space for invokers and validInvokers to avoid NPE * extract operations of invokers and validInvokers * remove useless import * reset validInvokersInitialized at destroy() * add invokersInitialized for refreshInvoker * optimize codes * use local reference to avoid NPE * optimize codes * set empty instead of clearing at destroyInvokers() * remove useless lock * add lock for validInvoker * return unmodifiableList for getInvokers and getValidInvokers * return clone object to avoid being modified * fix ut * optimize code * refresh validInvokers at setInvokers * wait new task finished at checkConnectivity() * retrieve checkConnectivity and fix ConnectivityValidationTest * retrieve checkConnectivity * optimize setInvokers()
- Loading branch information
Showing
9 changed files
with
184 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.