6 Replies Latest reply on Jun 11, 2007 12:17 PM by pcarpenter

    HELP:  Initial state transfer failed: Channel.getState() ret

    pcarpenter

      Hello all.

      I have two machines both running java 5 on Redhat 4.
      I have been trying to get the cache going, but I keep getting this exception
      ...
      Caused by: org.jboss.cache.CacheException: Unable to fetch state on startup
      at org.jboss.cache.CacheImpl.internalStart(CacheImpl.java:785)
      at org.jboss.cache.CacheImpl.start(CacheImpl.java:718)
      at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:87)
      at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:58)
      at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:51)
      at com.protagonis.cache.CacheAccessJbossImpl.createCache(CacheAccessJbossImpl.java:127)
      ...

      I need Memory state transfer to work, As I am not using a cache loader.
      I'm trying to run one machine First, and then the other.
      I have been trying to add this attribute, but it did not make any difference (as expected I guess)
      false

      I am using Habanero (2.0 release candidate)
      when I set the FetchInMemoryState to false in one machine, things seem to work, but then the caching solution does not meat my needs.

      Attached is my configuration :

      Any help is appreciated,
      Thanks

      Paul.



      <?xml version="1.0" encoding="UTF-8"?>




      jboss:service=Naming
      jboss:service=TransactionManager
      org.jboss.cache.transaction.DummyTransactionManagerLookup


      REPEATABLE_READ

      REPL_SYNC

      false
      0
      0
      JBossCache-Cluster




      <UDP mcast_addr="228.10.10.10"
      mcast_port="45588"
      tos="8"
      ucast_recv_buf_size="20000000"
      ucast_send_buf_size="640000"
      mcast_recv_buf_size="25000000"
      mcast_send_buf_size="640000"
      loopback="false"
      discard_incompatible_packets="true"
      max_bundle_size="64000"
      max_bundle_timeout="30"
      use_incoming_packet_handler="true"
      ip_ttl="2"
      enable_bundling="false"
      enable_diagnostics="true"

      use_concurrent_stack="true"

      thread_naming_pattern="pl"

      thread_pool.enabled="true"
      thread_pool.min_threads="1"
      thread_pool.max_threads="25"
      thread_pool.keep_alive_time="30000"
      thread_pool.queue_enabled="true"
      thread_pool.queue_max_size="10"
      thread_pool.rejection_policy="Run"

      oob_thread_pool.enabled="true"
      oob_thread_pool.min_threads="1"
      oob_thread_pool.max_threads="4"
      oob_thread_pool.keep_alive_time="10000"
      oob_thread_pool.queue_enabled="true"
      oob_thread_pool.queue_max_size="10"
      oob_thread_pool.rejection_policy="Run"/>

      <PING timeout="2000" num_initial_members="3"/>
      <MERGE2 max_interval="30000" min_interval="10000"/>
      <FD_SOCK/>
      <FD timeout="10000" max_tries="5" shun="true"/>
      <VERIFY_SUSPECT timeout="1500"/>
      <pbcast.NAKACK max_xmit_size="60000"
      use_mcast_xmit="false" gc_lag="0"
      retransmit_timeout="300,600,1200,2400,4800"
      discard_delivered_msgs="true"/>

      <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
      max_bytes="400000"/>
      <pbcast.GMS print_local_addr="true" join_timeout="5000"
      join_retry_timeout="2000" shun="false"
      view_bundling="true" view_ack_collection_timeout="5000"/>
      <FRAG2 frag_size="60000"/>
      <pbcast.STREAMING_STATE_TRANSFER use_reading_thread="true"/>
      <!-- <pbcast.STATE_TRANSFER/> -->
      <pbcast.FLUSH timeout="0"/>




      true
      false

      15000

      15000

      false







        • 1. Re: HELP:  Initial state transfer failed: Channel.getState()
          pcarpenter

          Sorry ... here is the conf
          <?xml version="1.0" encoding="UTF-8"?>




          jboss:service=Naming
          jboss:service=TransactionManager

          org.jboss.cache.transaction.GenericTransactionManagerLookup


          REPEATABLE_READ
          REPL_SYNC

          false

          0
          0

          JBossCache-Cluster



          <UDP mcast_addr="228.10.10.10"
          mcast_port="45588"
          tos="8"
          ucast_recv_buf_size="20000000"
          ucast_send_buf_size="640000"
          mcast_recv_buf_size="25000000"
          mcast_send_buf_size="640000"
          loopback="false"
          discard_incompatible_packets="true"
          max_bundle_size="64000"
          max_bundle_timeout="30"
          use_incoming_packet_handler="true"
          ip_ttl="2"
          enable_bundling="false"
          enable_diagnostics="true"

          use_concurrent_stack="true"

          thread_naming_pattern="pl"

          thread_pool.enabled="true"
          thread_pool.min_threads="1"
          thread_pool.max_threads="25"
          thread_pool.keep_alive_time="30000"
          thread_pool.queue_enabled="true"
          thread_pool.queue_max_size="10"
          thread_pool.rejection_policy="Run"

          oob_thread_pool.enabled="true"
          oob_thread_pool.min_threads="1"
          oob_thread_pool.max_threads="4"
          oob_thread_pool.keep_alive_time="10000"
          oob_thread_pool.queue_enabled="true"
          oob_thread_pool.queue_max_size="10"
          oob_thread_pool.rejection_policy="Run"/>

          <PING timeout="2000" num_initial_members="3"/>
          <MERGE2 max_interval="30000" min_interval="10000"/>
          <FD_SOCK/>
          <FD timeout="10000" max_tries="5" shun="true"/>
          <VERIFY_SUSPECT timeout="1500"/>
          <pbcast.NAKACK max_xmit_size="60000"
          use_mcast_xmit="false" gc_lag="0"
          retransmit_timeout="300,600,1200,2400,4800"
          discard_delivered_msgs="true"/>

          <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
          max_bytes="400000"/>
          <pbcast.GMS print_local_addr="true" join_timeout="5000"
          join_retry_timeout="2000" shun="false"
          view_bundling="true" view_ack_collection_timeout="5000"/>
          <FRAG2 frag_size="60000"/>
          <pbcast.STREAMING_STATE_TRANSFER use_reading_thread="true"/>
          <!-- <pbcast.STATE_TRANSFER/> -->
          <pbcast.FLUSH timeout="0"/>




          true
          false
          15000

          15000

          10000

          true




          • 2. Re: HELP:  Initial state transfer failed: Channel.getState()
            pcarpenter

            <?xml version="1.0" encoding="UTF-8"?>




            jboss:service=Naming
            jboss:service=TransactionManager

            org.jboss.cache.transaction.GenericTransactionManagerLookup


            REPEATABLE_READ
            REPL_SYNC

            false

            0
            0

            JBossCache-Cluster



            <UDP mcast_addr="228.10.10.10"
            mcast_port="45588"
            tos="8"
            ucast_recv_buf_size="20000000"
            ucast_send_buf_size="640000"
            mcast_recv_buf_size="25000000"
            mcast_send_buf_size="640000"
            loopback="false"
            discard_incompatible_packets="true"
            max_bundle_size="64000"
            max_bundle_timeout="30"
            use_incoming_packet_handler="true"
            ip_ttl="2"
            enable_bundling="false"
            enable_diagnostics="true"

            use_concurrent_stack="true"

            thread_naming_pattern="pl"

            thread_pool.enabled="true"
            thread_pool.min_threads="1"
            thread_pool.max_threads="25"
            thread_pool.keep_alive_time="30000"
            thread_pool.queue_enabled="true"
            thread_pool.queue_max_size="10"
            thread_pool.rejection_policy="Run"

            oob_thread_pool.enabled="true"
            oob_thread_pool.min_threads="1"
            oob_thread_pool.max_threads="4"
            oob_thread_pool.keep_alive_time="10000"
            oob_thread_pool.queue_enabled="true"
            oob_thread_pool.queue_max_size="10"
            oob_thread_pool.rejection_policy="Run"/>

            <PING timeout="2000" num_initial_members="3"/>
            <MERGE2 max_interval="30000" min_interval="10000"/>
            <FD_SOCK/>
            <FD timeout="10000" max_tries="5" shun="true"/>
            <VERIFY_SUSPECT timeout="1500"/>
            <pbcast.NAKACK max_xmit_size="60000"
            use_mcast_xmit="false" gc_lag="0"
            retransmit_timeout="300,600,1200,2400,4800"
            discard_delivered_msgs="true"/>

            <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
            max_bytes="400000"/>
            <pbcast.GMS print_local_addr="true" join_timeout="5000"
            join_retry_timeout="2000" shun="false"
            view_bundling="true" view_ack_collection_timeout="5000"/>
            <FRAG2 frag_size="60000"/>
            <pbcast.STREAMING_STATE_TRANSFER use_reading_thread="true"/>
            <!-- <pbcast.STATE_TRANSFER/> -->
            <pbcast.FLUSH timeout="0"/>




            attribute name="FetchInMemoryState">true
            attribute name="FetchInMemoryState">false
            attribute name="InitialStateRetrievalTimeout">15000

            attribute name="SyncReplTimeout">15000

            attribute name="LockAcquisitionTimeout">10000

            attribute name="UseRegionBasedMarshalling">true






            • 3. Re: HELP:  Initial state transfer failed: Channel.getState()
              pcarpenter

              I'm Sorry to resubmit .... again, for some reason the XML tags are parsed out of the message.
              the attribute I've been tweaking without an effect is "FetchPersistentState" = false / true

              thanks again.

              • 4. Re: HELP:  Initial state transfer failed: Channel.getState()
                brian.stansberry

                Use [ code ] [ /code ] around the XML (see the Code button above the input box).

                You need fetchInMemoryState=true; I see that attribute twice up above, with different values. If you have it twice, the second entry will win.

                • 5. Re: HELP:  Initial state transfer failed: Channel.getState()
                  pcarpenter

                   

                  "bstansberry@jboss.com" wrote:
                  Use [ code ] [ /code ] around the XML (see the Code button above the input box).

                  You need fetchInMemoryState=true; I see that attribute twice up above, with different values. If you have it twice, the second entry will win.


                  • 6. Re: HELP:  Initial state transfer failed: Channel.getState()
                    pcarpenter


                    Hi,

                    The dual fetchInMemoryState=true attributes were a posting mistake, which I corrected in a third post. I am using fetchInMemoryState=true and "FetchPersistentState" = false. the result is the same. same Exception. when I set fetchInMemoryState=false I get no Exceptions and everything seems to work, but then Jboss Cache does not suite my needs. from soem further trail and Error I found that the Excption has something to do with setting up the transactions's boundaries.
                    I guess my question is this, I have been trying to use JbossCache 2 because Its changelog entry.
                    [ JBCACHE-9 ] Streaming state transfer, for large states.
                    this has been a major problem for me when I have been using 1.4.X.
                    I'm sure I am doing something wrong, because with 1.4.1 (using TreeCache)
                    I was able to fetch memory state from one machine to another (I had some code which paused all machines (nodes) from doing any writes when a new
                    machine was in the process of joining (while fetching memory state).
                    It doesn't make any sense to me, that I can't do it with JbossCache 2.

                    thanks
                    Paul