3 Replies Latest reply on Jan 21, 2010 11:41 AM by Lin Ye

    How to test if rehashing finished in CR3?

    Lin Ye Expert

      I am trying to use the benchmark framework your team developed to collect some data on Infinispan CR3. When I build the benchmark framework, the infinispan4 plugin failed to build due to the following line:

      while (!cache.getAdvancedCache().getDistributionManager().isJoinComplete()) Thread.sleep(200);

       

      It seems the API in CR3 has changed, and AdvancedCache doesn't have the getDistributionManager() method anymore. So what should I use to test if rehashing is finished in that place?

       

      Thanks in advance.

       

      Lin

        • 1. Re: How to test if rehashing finished in CR3?
          Mircea Markus Master

          Do you have a local copy of infinispan trunk? If so, following sequence should solve your problem:

          - go to infinispan trunk dir

          - run "mvn clean install -Dmaven.test.skip=true" //this will make sure that you have latest snapshot in your working dir

          - go to where benchmark framework is installed, an run: "mvn clean install"

          It should work this time.

          Please let me know if that worked for you, otherwise we can look at other stuff.

          • 2. Re: How to test if rehashing finished in CR3?
            Lin Ye Expert

            Thanks for the reply.

             

            I got a local copy of the trunck. However, got the following error when building infinispan core. If you know the cause on the top of your head, please suggest.

             

            [INFO] ------------------------------------------------------------------------
            [INFO] Building Infinispan Common Parent
            [INFO]    task-segment: [clean, install]
            [INFO] ------------------------------------------------------------------------
            [INFO] [clean:clean {execution: default-clean}]
            [INFO] Deleting directory D:\Dev\workspace\infinispan\parent\target
            [INFO] [enforcer:enforce {execution: enforce-java}]
            [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
            [INFO] Preparing source:jar
            [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
            [INFO] [enforcer:enforce {execution: enforce-java}]
            [INFO] [source:jar {execution: attach-sources}]
            [INFO] [jar:test-jar {execution: build-test-jar}]
            [INFO] Skipping packaging of the test-jar
            [INFO] [install:install {execution: default-install}]
            [INFO] Installing D:\Dev\workspace\infinispan\parent\pom.xml to C:\Documents and
            Settings\YELI.PSAMER\.m2\repository\org\infinispan\infinispan-parent\4.0.0-SNAP
            SHOT\infinispan-parent-4.0.0-SNAPSHOT.pom
            [INFO] ------------------------------------------------------------------------
            [INFO] Building Infinispan Core
            [INFO]    task-segment: [clean, install]
            [INFO] ------------------------------------------------------------------------
            [INFO] [clean:clean {execution: default-clean}]
            [INFO] Deleting directory D:\Dev\workspace\infinispan\core\target
            [INFO] [enforcer:enforce {execution: enforce-java}]
            [INFO] [resources:resources {execution: default-resources}]
            [INFO] Using 'UTF-8' encoding to copy filtered resources.
            [INFO] Copying 10 resources
            [INFO] [compiler:compile {execution: default-compile}]
            [INFO] Compiling 448 source files to D:\Dev\workspace\infinispan\core\target\cla
            sses
            [INFO] Preparing exec:java
            [WARNING] Removing: java from forked lifecycle, to prevent recursive invocation.

             

            [INFO] [enforcer:enforce {execution: enforce-java}]
            [INFO] [exec:java {execution: default}]
            [INFO] [resources:testResources {execution: default-testResources}]
            [INFO] Using 'UTF-8' encoding to copy filtered resources.
            [INFO] Copying 21 resources
            [INFO] [compiler:testCompile {execution: default-testCompile}]
            [INFO] Not compiling test sources
            -----------------------------------------------------
            this realm = app0.child-container[org.apache.maven.plugins:maven-surefire-plugin
            :2.4.3-JBOSS]
            urls[0] = file:/C:/Documents and Settings/YELI.PSAMER/.m2/repository/org/apache/
            maven/plugins/maven-surefire-plugin/2.4.3-JBOSS/maven-surefire-plugin-2.4.3-JBOS
            S.jar
            urls[1] = file:/C:/Documents and Settings/YELI.PSAMER/.m2/repository/org/codehau
            s/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
            Number of imports: 10
            import: org.codehaus.classworlds.Entry@a6c57a42
            import: org.codehaus.classworlds.Entry@12f43f3b
            import: org.codehaus.classworlds.Entry@20025374
            import: org.codehaus.classworlds.Entry@f8e44ca4
            import: org.codehaus.classworlds.Entry@92758522
            import: org.codehaus.classworlds.Entry@ebf2705b
            import: org.codehaus.classworlds.Entry@bb25e54
            import: org.codehaus.classworlds.Entry@bece5185
            import: org.codehaus.classworlds.Entry@3fee8e37
            import: org.codehaus.classworlds.Entry@3fee19d8

             


            this realm = plexus.core
            urls[0] = file:/C:/Apps/apache-maven-2.2.1/bin/../lib/maven-2.2.1-uber.jar
            Number of imports: 10
            import: org.codehaus.classworlds.Entry@a6c57a42
            import: org.codehaus.classworlds.Entry@12f43f3b
            import: org.codehaus.classworlds.Entry@20025374
            import: org.codehaus.classworlds.Entry@f8e44ca4
            import: org.codehaus.classworlds.Entry@92758522
            import: org.codehaus.classworlds.Entry@ebf2705b
            import: org.codehaus.classworlds.Entry@bb25e54
            import: org.codehaus.classworlds.Entry@bece5185
            import: org.codehaus.classworlds.Entry@3fee8e37
            import: org.codehaus.classworlds.Entry@3fee19d8
            -----------------------------------------------------
            [INFO] ------------------------------------------------------------------------
            [ERROR] BUILD ERROR
            [INFO] ------------------------------------------------------------------------
            [INFO] Internal error in the plugin manager executing goal 'org.apache.maven.plu
            gins:maven-surefire-plugin:2.4.3-JBOSS:test': Unable to load the mojo 'org.apach
            e.maven.plugins:maven-surefire-plugin:2.4.3-JBOSS:test' in the plugin 'org.apach
            e.maven.plugins:maven-surefire-plugin'. A required class is missing: org/apache/
            maven/surefire/booter/SurefireExecutionException
            org.apache.maven.surefire.booter.SurefireExecutionException
            [INFO] ------------------------------------------------------------------------
            [INFO] For more information, run Maven with the -e switch
            [INFO] ------------------------------------------------------------------------
            [INFO] Total time: 10 seconds
            [INFO] Finished at: Thu Jan 21 10:13:49 EST 2010
            [INFO] Final Memory: 29M/63M
            [INFO] ------------------------------------------------------------------------

            • 3. Re: How to test if rehashing finished in CR3?
              Lin Ye Expert

              Never mind, I skipped it.

               

              Thanks again for the information!