Re: Flakey Dtests

2017-11-16 Thread Michael Kjellman
Quick update re: dtests and off-heap memtables: I’ve filed CASSANDRA-14056 (Many dtests fail with ConfigurationException: offheap_objects are not available in 3.0 when OFFHEAP_MEMTABLES=“true”) Looks like we’re gonna need to do some work to test this configuration and right now it’s pretty

Re: custom validation before replication

2017-11-16 Thread Jeff Jirsa
What you're wanting really isn't supported/available, but you could probably extend cassandra to do this with some work. Doing this at replication time is the wrong point, though - you want to do it before the mutation is applied locally, so triggers are still the closest to the right point as

Re: custom validation before replication

2017-11-16 Thread Jon Haddad
Looks like you’ve got this thread going on the user & dev ML. This list is the dev one, and is meant for discussion of the Cassandra project. Would everyone mind replying to the thread of the same name on the user list instead? > On Nov 16, 2017, at 1:36 PM, Abdelkrim Fitouri

Re: custom validation before replication

2017-11-16 Thread Abdelkrim Fitouri
ok please find bellow an example: Lets suppose that i have a cassandra cluster of 4 nodes / one DC / replication factor = 4, So in this architecture i have on full copy of the data on each node. Imagine now that one node have been hacked and in some way with full access to cqlsh session, if data

RE: custom validation before replication

2017-11-16 Thread Abdelkrim Fitouri
Trigger does not resolve my problem because it is not a format validation issue but an integrity constraint ... My purpose is to check data integrity before replication, by returning an error and killing the service, so i am killing the node that is supposed to replicate data after a write action

Re: custom validation before replication

2017-11-16 Thread Jeff Jirsa
Going to hate myself for this, but check out the trigger interface. https://github.com/apache/cassandra/blob/cassandra-3.0/src/java/org/apache/cassandra/triggers/ITrigger.java Pay attention to the note that says the API is in beta and subject to change. It's had that note for many years, which

RE: custom validation before replication

2017-11-16 Thread Jacques-Henri Berthemet
Hi, You can't prevent the replication because if you manage to return a failure the other node will keep trying to send the data. What would be more relevant is to prevent the modification in the first place. You could try to implement a custom trigger and load it in Cassandra:

Re: Possibly cassandra 3.0.9 bug?

2017-11-16 Thread Jeff Jirsa
1) There are a LOT of bugs in cassandra-3.0.9. Some of them are really bad, you should definitely consider upgrading to 3.0.15. 2) The GC profile changed between 2.0 and 3.0. It may be that you're generating a bit more garbage and causing GC pauses (especially likely since you're using thrift),

custom validation before replication

2017-11-16 Thread Abdelkrim Fitouri
Hi, I have some security constraint on a project, and i need to validate or unvalidate changes made on a keyspace via cql or via an other ways before replication. for example in the case of multinode cluster with replication, if data was changed locally using cqlsh, data will be replicated (that

Re: Possibly cassandra 3.0.9 bug?

2017-11-16 Thread Alex Circus
Thanks, Here is a link with the image: https://imgur.com/a/KpJMh On Thu, Nov 16, 2017 at 11:22 AM Pavel Drankov wrote: > You also can use any image uploading service like https://imgur.com/ > > Best wishes, > Pavel > > On 16 November 2017 at 11:21, Murukesh Mohanan

Re: Possibly cassandra 3.0.9 bug?

2017-11-16 Thread Pavel Drankov
You also can use any image uploading service like https://imgur.com/ Best wishes, Pavel On 16 November 2017 at 11:21, Murukesh Mohanan wrote: > Hi Alex, > > It's still not visible... I don't think the mailing list supports image > attachments. Maybe you can create

Re: Possibly cassandra 3.0.9 bug?

2017-11-16 Thread Murukesh Mohanan
Hi Alex, It's still not visible... I don't think the mailing list supports image attachments. Maybe you can create an issue on JIRA with the attachments? Thanks, Muru On Thu, 16 Nov 2017 at 17:00 Alex Circus wrote: > Hi Pavel, > > I'm attaching it again. I use gmail

Re: Possibly cassandra 3.0.9 bug?

2017-11-16 Thread Alex Circus
Hi Pavel, I'm attaching it again. I use gmail app from browser. Please check now. Thanks, Alex. On Thu, Nov 16, 2017 at 9:17 AM, Pavel Drankov wrote: > Hi Alex, > > I don't see any attached image. Can you please send it one more time? > > Best wishes, > Pavel > > On 16