Re: Cassandra DataStax Java Driver in combination with Java EE / EJBs

2019-06-11 Thread Ralph Soika
Hi Stefan, Hi John, thanks for your answers, this helps me a lot. @John: you are right, EJB does not bring any advantage in this case. I will change my classes to simple CDI. I will write a short blog about this solution after I finished. Best regards Ralph On 12.06.19 07:58, Stefan Miklos

JanusGraph and Cassandra

2019-06-11 Thread Vinayak Bali
Hi, I am using JanusGraph along with Cassandra as the backend. I have created a graph using JanusGraphFactory.open() method. I want to create one more graph and traverse it. Can you please help me. Regards, Vinayak

Re: Cassandra DataStax Java Driver in combination with Java EE / EJBs

2019-06-11 Thread Stefan Miklosovic
Hi Ralph, yes this is completely fine, even advisable. You can further extend this idea to have sessions per keyspace for example if you really insist, and it could be injectable based on some qualifier ... thats up to you. On Wed, 12 Jun 2019 at 11:31, John Sanda wrote: > > Hi Ralph, > > A sess

Re: Is my range read query behaving strange ?

2019-06-11 Thread Michael Shuler
(dropped dev@ x-post; user@ was correct) Possibly #12765, fixed in 2.1.17. Wouldn't hurt to update to latest 2.1.21. https://issues.apache.org/jira/browse/CASSANDRA-12765 https://github.com/apache/cassandra/blob/cassandra-2.1/CHANGES.txt#L1-L36 Michael On 6/11/19 9:58 PM, Laxmikant Upadhyay wr

Re: Is my range read query behaving strange ?

2019-06-11 Thread Laxmikant Upadhyay
Does range query ignore purgable tombstone (which crossed grace period) in some cases? On Tue, Jun 11, 2019, 2:56 PM Laxmikant Upadhyay wrote: > In a 3 node cassandra 2.1.16 cluster where, one node has old mutation and > two nodes have evict-able (crossed gc grace period) tombstone produced by >

Re: Cassandra DataStax Java Driver in combination with Java EE / EJBs

2019-06-11 Thread John Sanda
Hi Ralph, A session is intended to be a long-lived, i.e., application-scoped object. You only need one session per cluster. I think what you are doing with the @Singleton is fine. In my opinion though, EJB really does not offer much value when working with Cassandra. I would be inclined to just us

Cassandra DataStax Java Driver in combination with Java EE / EJBs

2019-06-11 Thread Ralph Soika
Hi, I have a question concerning the Cassandra DataStax Java Driver in combination with Java EE and EJBs. I have implemented a Rest Service API based on Java EE8. In my application I have for example a jax-rs rest resource to write data into cassandra cluster. My first approach was to create

postmortem on 2.2.13 scale out difficulties

2019-06-11 Thread Carl Mueller
We had a three-DC (asia-tokyo/europe/us) cassandra 2.2.13 cluster, AWS, IPV6 Needed to scale out the asia datacenter, which was 5 nodes, europe and us were 25 nodes We were running into bootstrapping issues where the new node failed to bootstrap/stream, it failed with "java.lang.RuntimeException

Is my range read query behaving strange ?

2019-06-11 Thread Laxmikant Upadhyay
In a 3 node cassandra 2.1.16 cluster where, one node has old mutation and two nodes have evict-able (crossed gc grace period) tombstone produced by TTL. A read range query with local quorum return the old mutation as result. However expected result should be empty. Next time running the same query