[infinispan-issues] [JBoss JIRA] (ISPN-1370) 5.0.0.FINAL hangs in replication mode with 2 local nodes (works in 4.2.1.FINAL)

Dan Berindei (Resolved) (JIRA) jira-events at lists.jboss.org
Thu Dec 8 14:32:41 EST 2011


     [ https://issues.jboss.org/browse/ISPN-1370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Berindei resolved ISPN-1370.
--------------------------------

    Fix Version/s: 5.1.0.FINAL
                   5.1.0.CR1
       Resolution: Out of Date


The 5.0 state transfer used a distributed sync, in 5.1 we use a new mechanism based on the 5.0 rehashing code (ISPN-1194).
                
> 5.0.0.FINAL hangs in replication mode with 2 local nodes (works in 4.2.1.FINAL)
> -------------------------------------------------------------------------------
>
>                 Key: ISPN-1370
>                 URL: https://issues.jboss.org/browse/ISPN-1370
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Cache Server, Configuration
>    Affects Versions: 5.0.0.FINAL
>         Environment: Ubuntu 10.10 i686 (32bit)
> Apache tomcat 6.0.28
> java version "1.6.0_26" (Sun)
> Maven 2.2.1
>            Reporter: Stuart Hughes
>            Assignee: Galder Zamarreño
>             Fix For: 5.1.0.FINAL, 5.1.0.CR1
>
>
> Infinispan hangs when starting a second instance of a named cache in replication mode on the same host.
> Program scenario:
> Http servlet is used to cache pages using Infinispan
> Web app started twice by Maven on different ports:
>    * mvn tomcat:run -Dmaven.tomcat.port=9090
>    * mvn tomcat:run -Dmaven.tomcat.port=9091
> Infinispan XML config:
> {code}
> <?xml version="1.0" encoding="UTF-8"?>
> <infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>           xsi:schemaLocation="urn:infinispan:config:5.0 http://www.infinispan.org/schemas/infinispan-config-5.0.xsd"
>           xmlns="urn:infinispan:config:5.0">
>           <global>
>                     <transport/>
>           </global>
>           <default>
>                     <clustering mode="repl">
>                     </clustering>
>           </default>
>           <namedCache name="itemCache">
>           </namedCache>
>           <namedCache name="pageCache">
>           </namedCache>
> </infinispan>
> {code}
> Code extract:
> {code}
> @Service
> public class InfCachingService
> implements ICachingService, ResourceLoaderAware {
>  
>           private static final Logger logger = LoggerFactory.getLogger(InfCachingService.class);
>           private String configName = null;
>           protected Cache<Integer, ContentBase> itemCache;
>           protected Cache<String, PageCacheItem> pageCache;
>  
>           @Value("${inf.config.file}")
>           void setConfig(String configName) {
>                     this.configName = configName;
>           }
>  
>           @Override
>           public void setResourceLoader(ResourceLoader resourceLoader) {
>                     try {
>                               String configFile = resourceLoader.getResource( configName ).getFile().getCanonicalPath();
>                createCaches(configFile);
>                     } catch(Exception e) {
>                               logger.error("Could not get resource file: "+ configName + " : " + e);
>                     }
>           }
>  
>           protected Boolean createCaches(String configFile) {
>                     System.out.println("Creating infinispan CacheManager from XML config");
>                     try {
>                               DefaultCacheManager m = new DefaultCacheManager(configFile);
>                               if ( pageCache != null ) {
>                                         throw new Exception("pageCache should not exists");
>                               }
>                               pageCache = m.getCache("pageCache");
>                               System.out.println("pageCache created");
>                               return true;
>                     } catch(Exception e) {
>                               logger.error("Could not create Caches:", e);
>                               return false;
>                     }
>           }
> {code}
> Log output on second jvm:
> {code}
> ISPN000088: Unable to use any JGroups configuration mechanisms provided in properties {}.  Using default JGroups configuration!
> New view accepted: [z200-59673|1] [z200-59673, z200-39342]
> ISPN000094: Received new cluster view: [z200-59673|1] [z200-59673, z200-39342]
> ISPN000079: Cache local address is z200-39342, physical addresses are [fe80:0:0:0:250:56ff:fec0:8:60576]
> Waiting on view being accepted
> ISPN000128: Infinispan version: Infinispan 'Pagoa' 5.0.0.CR8
> Interceptor chain size: 6
> Interceptor chain is:
>           >> org.infinispan.interceptors.InvocationContextInterceptor
>           >> org.infinispan.interceptors.TxInterceptor
>           >> org.infinispan.interceptors.NotificationInterceptor
>           >> org.infinispan.interceptors.LockingInterceptor
>           >> org.infinispan.interceptors.ReplicationInterceptor
>           >> org.infinispan.interceptors.CallInterceptor
> Initiating state transfer process
> ISPN000074: Trying to fetch state from z200-59673
> New view accepted: MergeView::[z200-39342|3] [z200-39342, z200-59673], subgroups=[[z200-59673|2] [z200-59673], [z200-59673|1] [z200-39342]]
> ISPN000093: Received new, MERGED cluster view: MergeView::[z200-39342|3] [z200-39342, z200-59673], subgroups=[[z200-59673|2] [z200-59673], [z200-59673|1] [z200-39342]]
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the infinispan-issues mailing list