Fixed flaky GridMultinodeRedeploySharedModeSelfTest.testSharedMode - Fixes
@@ -280,11 +280,8 @@ public class GridDeploymentPerVersionStore extends GridDeploymentStoreAdapter {
/** {@inheritDoc} */
@Override public GridDeployment searchDeploymentCache(GridDeploymentMetadata meta) {
- List<SharedDeployment> deps = null;
-
synchronized (mux) {
- deps = cache.get(meta.userVersion());
- }
+ List<SharedDeployment> deps = cache.get(meta.userVersion());
if (deps != null) {
assert !deps.isEmpty();
@@ -294,6 +291,7 @@ public class GridDeploymentPerVersionStore extends GridDeploymentStoreAdapter {
return d;
}
}
+ }
return null;
}
