cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DuyHai Doan <doanduy...@gmail.com>
Subject Re: Speeding up schema generation during tests
Date Wed, 19 Oct 2016 07:45:37 GMT
Ohh didn't know such system property exist, nice idea!

On Wed, Oct 19, 2016 at 9:40 AM, horschi <horschi@gmail.com> wrote:

> Have you tried starting Cassandra with -Dcassandra.unsafesystem=true ?
>
>
> On Wed, Oct 19, 2016 at 9:31 AM, DuyHai Doan <doanduyhai@gmail.com> wrote:
>
>> As I said, when I bootstrap the server and create some keyspace,
>> sometimes the schema is not fully initialized and when the test code tried
>> to insert data, it fails.
>>
>> I did not have time to dig into the source code to find the root cause,
>> maybe it's something really stupid and simple to fix. If you want to
>> investigate and try out my CassandraDaemon server, I'd be happy to get
>> feedbacks
>>
>> On Wed, Oct 19, 2016 at 9:22 AM, Ali Akhtar <ali.rac200@gmail.com> wrote:
>>
>>> Thanks. I've disabled durable writes but this is still pretty slow
>>> (about 10 seconds).
>>>
>>> What issues did you run into with your impl?
>>>
>>> On Wed, Oct 19, 2016 at 12:15 PM, DuyHai Doan <doanduyhai@gmail.com>
>>> wrote:
>>>
>>>> There is a lot of pre-flight checks when starting the cassandra server
>>>> and they took time.
>>>>
>>>> For integration testing, I have developped a modified CassandraDeamon
>>>> here that remove pretty most of those checks:
>>>>
>>>> https://github.com/doanduyhai/Achilles/blob/master/achilles-
>>>> embedded/src/main/java/info/archinnov/achilles/embedded/Achi
>>>> llesCassandraDaemon.java
>>>>
>>>> The problem is that I felt into weird scenarios where creating a
>>>> keyspace wasn't created in timely manner so I just stop using this impl for
>>>> the moment, just look at it and do whatever you want.
>>>>
>>>> Another idea for testing is to disable durable write to speed up
>>>> mutation (CREATE KEYSPACE ... WITH durable_write=false)
>>>>
>>>> On Wed, Oct 19, 2016 at 3:24 AM, Ali Akhtar <ali.rac200@gmail.com>
>>>> wrote:
>>>>
>>>>> Is there a way to speed up the creation of keyspace + tables during
>>>>> integration tests? I am using an RF of 1, with SimpleStrategy, but it
still
>>>>> takes upto 10-15 seconds.
>>>>>
>>>>
>>>>
>>>
>>
>

Mime
View raw message