Skip to content

Commit

Permalink
GEODE-5700: Removed stopping cache server explicitly (apache#2433)
Browse files Browse the repository at this point in the history
  * ServerStarterRule unnecessarily shutdown the cache server
  * Cache.close should automatically shut down the cache server for us
  • Loading branch information
jhuynh1 authored Sep 13, 2018
1 parent 8302a28 commit 7460797
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,6 @@ public void before() {

@Override
public void stopMember() {
// stop CacheServer and then close cache -- cache.close() will stop any running CacheServers
if (server != null) {
try {
server.stop();
} catch (Exception e) {
} finally {
server = null;
}
}

// make sure this cache is the one currently open. A server cache can be recreated due to
// importing a new set of cluster configuration.
cache = GemFireCacheImpl.getInstance();
Expand All @@ -110,6 +100,7 @@ public void stopMember() {
cache = null;
}
}
server = null;
}

public ServerStarterRule withPDXPersistent() {
Expand Down

0 comments on commit 7460797

Please sign in to comment.