Hi Asha and Prakhyat (you will not receive help faster by double-posting),

First checks that it is a valid message with idExtractor.isDefinedAt(msg).
That will not invoke your prints in idExtractor.
Then it uses the shardExtractor, which you see in the logs.
Before creating the entry, or delegating to the right node, it must get
information from the coordinator. It is probably this that is not
successful.

You will find more information about what is going on by enabling
akka.loglevel=DEBUG and look log messages from the "/user/sharding" actors.

Regards,
Patrik

On Tue, Sep 2, 2014 at 8:02 PM, Asha <[email protected]> wrote:

>
> Hi Martynas,
>
>    I am using* Cassandra plugin * for *persistance*, For the same below
> are configuration changes in application.conf for persistance.
>
>    akka{
>          persistence {
>     journal.plugin = "cassandra-journal"
>   }
>  }
>
> cassandra-journal {
>    contact-points = ["xxx.xxxx.xxx.xxx"]
> }
>
> For this i am using below jars
>   akka-persistence-cassandra_2.11-0.3.3.jar
>   akka-persistence-experimental_2.10-2.3.4.jar
>   cassandra-driver-core-2.0.3.jar
>
> I am not using LevelDB.
>
> Thanks
> Asha
>
>
> On Tuesday, 2 September 2014 19:02:22 UTC+5:30, Martynas Mickevičius wrote:
>
>> Hi Asha,
>>
>> I would guess that persistence system fails to initialize. What
>> persistence plugin and settings do you use? If you are prototyping and
>> using LevelDB you either need to provide native LevelDB libraries or use
>> Java LevelDB implementation by adding the following to your
>> application.conf file:
>>
>> akka.persistence.journal.leveldb.native = off
>>
>> Just remember to select a plugin
>> <http://akka.io/community/#journal-plugins> for a distributed journal
>> when going to production.
>>
>>
>> On Mon, Sep 1, 2014 at 1:11 PM, Asha <[email protected]> wrote:
>>
>>> I think, i have given very less information.
>>>
>>> Here is the detailed description
>>>
>>> I am using Akka-pull pattern in my project. i am using
>>> akka-contrib_2.10-2.3.4.jar and akka-persistence-experimental_
>>> 2.10-2.3.4.jar
>>> Front end, master, worker all are running different nodes. The actor
>>> system of front end and  master is   "ClusterSystem".
>>> The actor system of worker is "WorkerSystem". Request form Browser is
>>> coming to Front end .
>>> Request flow
>>> Browser -> FrontEnd -> Master -> Worker
>>>
>>> Worker is able to pull the work from master and processing the same. I
>>> want to persit the state after processing work. I am using single writer.
>>> Shard for the persisted actor is stared when node comes up. For
>>> persisting the state, i am hitting the shard region of the Persisted Actor.
>>> It is a able resovle the shard,
>>> but failing to resolve the persisted actor(not executing the idExtractor
>>> ())
>>>
>>> Below is the code.
>>>
>>> val idExtractor: ShardRegion.IdExtractor = {
>>>     case created: LedgerCreated =>{
>>>       println("%%%%%%%%% IdExtractor : " +created.ledgerId.id.toString)
>>>       (created.ledgerId.id.toString, created)
>>>     }
>>>     case edited: LedgerEdited   => (edited.ledgerId.id.toString, edited)
>>>     case deleted: LedgerDeleted => (deleted.ledgerId.id.toString,
>>> deleted)
>>>   }
>>>
>>>   val shardResolver: ShardRegion.ShardResolver = msg => msg match {
>>>     case created: LedgerCreated =>{
>>>        println("%%%%%%%%% ShardResolver : " +created.ledgerId.id %
>>> shards)
>>>       (created.ledgerId.id % shards).toString
>>>     }
>>>     case edited: LedgerEdited   => (edited.ledgerId.id %
>>> shards).toString
>>>     case deleted: LedgerDeleted => (deleted.ledgerId.id %
>>> shards).toString
>>>   }
>>>
>>>  I am getting the log written in the ShardResolver. But the log written
>>> in the IdExtractor is not coming.
>>>
>>> Please help me to solve this problem.
>>>
>>>
>>>
>>>
>>> On Monday, 1 September 2014 15:00:16 UTC+5:30, Asha wrote:
>>>>
>>>> Hi,
>>>>
>>>>   I am using Akka-pull pattern in my project. Request from the browser
>>>> will land on spray layer, it will pass the request to master then master to
>>>> worker.
>>>>   In worker i am hitting the shard region. When i hit the shard region
>>>>  it is able to resolve shard but failing to execute the idExtractor.  It is
>>>> not throwing any error.
>>>>
>>>>   Not getting whether issue with the jar or my code.  Please help  me
>>>> to resolve this problem
>>>>
>>>> Thanks
>>>> Asha
>>>>
>>>>
>>>  --
>>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>>> >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/
>>> current/additional/faq.html
>>> >>>>>>>>>> Search the archives: https://groups.google.com/
>>> group/akka-user
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Akka User List" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>>
>>> Visit this group at http://groups.google.com/group/akka-user.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Martynas Mickevičius
>> Typesafe <http://typesafe.com/> – Reactive
>> <http://www.reactivemanifesto.org/> Apps on the JVM
>>
>  --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Patrik Nordwall
Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to