3 Replies Latest reply on Mar 7, 2013 9:20 AM by Tristan Tarrant

    Does preload=true works for infinispan cassandra cache loader?

    jessica jia Newbie

      I am trying to use cassandra cache loader. When I set preload="false", everything worked. The cache entry I put in persisted to Cassandra DB. When I start the cache new and get the entry, I can get them. But when I set preload="true", I got exception, see attached file. I just wonder if this option is supported for cassandra cache loader. I am testing aginst 5.2.0-ALPHA1. Or maybe a later version fixed this? Please advice.

       

      Thanks, Jessica

        • 1. Re: Does preload=true works for infinispan cassandra cache loader?
          Tristan Tarrant Master

          The error has occurred within Cassandra:

           

          org.apache.thrift.TApplicationException: Internal error processing get_range_slices

           

          Is it possible to have the Cassandra-side logs on this please ?

          • 2. Re: Does preload=true works for infinispan cassandra cache loader?
            jessica jia Newbie

            Tristan,

             

                 Thanks for the reply. here is the exception I got from cassandra side:

             

             

            ERROR [Thrift:73] 2013-02-06 14:27:03,765 Cassandra.java (line 3210) Internal error processing get_range_slices

            java.lang.NumberFormatException: Zero length BigInteger

                    at java.math.BigInteger.<init>(BigInteger.java:276)

                    at java.math.BigInteger.<init>(BigInteger.java:451)

                    at org.apache.cassandra.dht.RandomPartitioner$1.fromString(RandomPartitioner.java:136)

                    at org.apache.cassandra.thrift.CassandraServer.get_range_slices(CassandraServer.java:686)

                    at org.apache.cassandra.thrift.Cassandra$Processor$get_range_slices.process(Cassandra.java:3202)

                    at org.apache.cassandra.thrift.Dse$Processor.process(Dse.java:920)

                    at com.datastax.bdp.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:250)

                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

                    at java.lang.Thread.run(Thread.java:662)

             

            Hope this helps,

             

            Jessica

            • 3. Re: Does preload=true works for infinispan cassandra cache loader?
              Tristan Tarrant Master

              Jessica, the CassandraCacheStore only supports OrderPreservingPartitioner. I will port the cache store to use CQL3 during the 5.3 cycle and hopefully support all partitioners.