Skip to content

Commit

Permalink
Enh 37387063 - [37381796->22.06.12] Topics: general refactoring and h…
Browse files Browse the repository at this point in the history
…ardening

(merge 14.1.1.2206 -> ce/22.06 113667)

[git-p4: depot-paths = "//dev/coherence-ce/release/coherence-ce-v22.06/": change = 113668]
  • Loading branch information
thegridman committed Jan 21, 2025
1 parent c5a268f commit 68111f8
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -655,10 +655,12 @@ private String getCacheName(String sPrefix)

private void restartService(NamedTopic<?> topic)
{
Service service = topic.getService();
String serviceName = service.getInfo().getServiceName();
PagedTopicService service = (PagedTopicService) topic.getService();
int cMember = service.getInfo().getServiceMembers().size();
String serviceName = service.getInfo().getServiceName();

System.err.println("Stopping topics cache service " + serviceName);

System.err.println("Stopping topics service " + serviceName);

Service serviceFinal = service instanceof SafeCacheService
? ((SafeCacheService) service).getRunningCacheService()
Expand All @@ -667,8 +669,10 @@ private void restartService(NamedTopic<?> topic)
serviceFinal.stop();
// wait for DCS to restart the service
Eventually.assertDeferred("Failed to restart service " + service, service::isRunning, is(true));
Eventually.assertDeferred("Failed to restart service waiting for membership count" + service,
() -> service.getInfo().getServiceMembers().size(), is(cMember));

System.err.println("Restarted topics cache service " + serviceName);
System.err.println("Restarted topics service " + serviceName);
}

// ----- inner class: Message -------------------------------------------
Expand Down

0 comments on commit 68111f8

Please sign in to comment.