[JBoss JIRA] (ISPN-6314) ClusterTopologyManager.waitForJoinerView can wait forever
by Pedro Ruivo (JIRA)
Pedro Ruivo created ISPN-6314:
---------------------------------
Summary: ClusterTopologyManager.waitForJoinerView can wait forever
Key: ISPN-6314
URL: https://issues.jboss.org/browse/ISPN-6314
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 8.2.0.CR1
Reporter: Pedro Ruivo
Assignee: Pedro Ruivo
Fix For: 8.2.0.Final
this method uses {{TimeService.remainingTime()}} to calculate the time it needs to wait, returning zero is the time is expired. However, zero timeout in {{Object.wait()}} will indicate to wait forever. Avoid invoke the {{wait()}} is time is already expired.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 1 month
[JBoss JIRA] (ISPN-5512) Code in documentation differ with code on github
by Martin Vrabel (JIRA)
[ https://issues.jboss.org/browse/ISPN-5512?page=com.atlassian.jira.plugin.... ]
Martin Vrabel resolved ISPN-5512.
---------------------------------
Resolution: Done
> Code in documentation differ with code on github
> ------------------------------------------------
>
> Key: ISPN-5512
> URL: https://issues.jboss.org/browse/ISPN-5512
> Project: Infinispan
> Issue Type: Bug
> Affects Versions: 7.2.1.Final
> Reporter: Martin Vrabel
> Assignee: Martin Vrabel
> Priority: Trivial
>
> Code in documentation:
> EmbeddedCacheManager cm = new DefaultCacheManager("infinispan.xml");
> Cache<Object, Object> cache1 = cm.getCache("replSyncCache");
> Cache<Object, Object> cache2 = cm.getCache("replAsyncCache");
> Cache<Object, Object> cache3 = cm.getCache("invalidationSyncCache");
> Code on GitHub
> public static void main(String[] args) throws Exception {
> boolean useXmlConfig = false;
> String cache = "repl";
> String nodeName = null;
> for (String arg : args) {
> switch (arg) {
> case "-x":
> useXmlConfig = true;
> break;
> case "-p":
> useXmlConfig = false;
> break;
> case "-d":
> cache = "dist";
> break;
> case "-r":
> cache = "repl";
> break;
> default:
> nodeName = arg;
> break;
> }
> }
> new Node(useXmlConfig, cache, nodeName).run();
> }
> ...
> ...
> public void run() throws IOException, InterruptedException {
> EmbeddedCacheManager cacheManager = createCacheManager();
> final Cache<String, String> cache = cacheManager.getCache(cacheName);
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years, 1 month