akka-persistance-ignite | Akka persistance plugin implementation with Apache Ignite
kandi X-RAY | akka-persistance-ignite Summary
kandi X-RAY | akka-persistance-ignite Summary
Akka persistance plugin implementation with Apache Ignite
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Ignite plugin properties
- Initialize the ignite thread pool
- SetsIgnite general settings
- Generate ignite cache
- Create binary query entity
- Reply messages
- Converts a PersistentRepr into a JournalItem
- Creates the ignite cache
- Creates binary query entity
- Apply ignite configuration
- Default serialization
- Deserialization
- Deletes the metadata asynchronously
- Asynchronously reply messages
- Writes batch of messages to cache
- Custom deserializer
- Save snapshot asynchronously
- Invoked after an entry is added to the cache
- Deletes all snapshots from the cache
- Gets highest sequence number
- Deletes all messages from the cache
- Loads the selected snapshot
- Custom serialization
akka-persistance-ignite Key Features
akka-persistance-ignite Examples and Code Snippets
Community Discussions
Trending Discussions on akka-persistance-ignite
QUESTION
I am trying to replace the default LevelDB in OpenDaylight with Apache Ignite which i am unable to do after making changes to the akka.conf file and deploying the akka-persistence-ignite jar that i found here. https://github.com/Romeh/akka-persistance-ignite
I am facing an issue in the following line of the source code (AbstractDataStoreClientActor class) where it throws a Runtime Exception.
...ANSWER
Answered 2018-Jul-12 at 13:11The issue is not with DistributedDatastoreClientActor - it is a side-effect of an issue with the persistence backend - see my previous comment. Notice that the error stack trace contains an NPE emanating from akka.persistence.snapshot.japi.SnapshotStore which indicates the backing SnapshotStore unexpectedly returned null from loadAsync. This points to the ignite plugin.
QUESTION
I am building Akka persistence plugin with Apache ignite , I have a question when it comes to event tagging , if i disable java serialization(allow-java-serialization = no) , Tagged type failed to be serialized properly as i am using Protobuf for events , is there a way to configure specific serialization for Event Tagged wrapper or it need to be handled in the plugin itself? The GitHub for my plugin : https://github.com/Romeh/akka-persistance-ignite
The exception I get is :
[2018-11-21 21:20:48] [orderManagerSystem-akka.actor.default-dispatcher-27] ERROR a.p.i.journal.IgniteWriteJournal - Attempted to serialize message using Java serialization while akka.actor.allow-java-serialization
was disabled. Check WARNING logs for more details.
akka.serialization.DisabledJavaSerializer$JavaSerializationException: Attempted to serialize message using Java serialization while akka.actor.allow-java-serialization
was disabled. Check WARNING logs for more details.
[2018-11-21 21:20:48] [orderManagerSystem-akka.actor.default-dispatcher-11] WARN a.s.DisabledJavaSerializer - Outgoing message attempted to use Java Serialization even though akka.actor.allow-java-serialization = off
was set! Message type was: [class akka.persistence.journal.Tagged]
I have a sample application where this issue is happening for me where I use Protobuf for events serialization , do I need to do the same for event Tagged type ?
GitHub URL example code : https://github.com/Romeh/spring-boot-akka-event-sourcing-starter/tree/master/spring-event-sourcing-example
In Apache ignite , it is binary serialization .
Thx a lot for your help!
...ANSWER
Answered 2018-Nov-29 at 14:31Actually the issue got fixed by checking the msg type if it is Tagged event or not before doing the actual event storing in the journal , something like :
QUESTION
I am using OpenDaylight and trying to replace the default distributed database with Apache Ignite. I am using the jar obtained by the source code here. https://github.com/Romeh/akka-persistance-ignite
However, the class IgniteWriteJournal does not seem to load which i have checked by putting some print statements in its constuructor.
Is there any issue with the .conf file?
The following is a portion of the akka.conf file i am using in OpenDaylight.
...ANSWER
Answered 2018-Jun-20 at 13:39I assume you modified the configuration/initial/akka.conf. First those sections need to be inside the odl-cluster-data section (can't tell from just your snippet). Also it looks like the following should be:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install akka-persistance-ignite
You can use akka-persistance-ignite like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the akka-persistance-ignite component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page