Re: New Cassandra PMC members and committers

2016-06-19 Thread Giampaolo Trapasso
Congrats! :)
giampaolo

2016-06-16 22:11 GMT+02:00 Jonathan Ellis :

> The Apache Cassandra PMC would like to welcome its newest members.  In
> alphabetical order, these are Aaron Morton, Dave Brosius, and Tyler Hobbs.
>
> We would also like to welcome new committer Jeff Jirsa, author of TWCS.
>
> Thanks to everyone for your help, and we look forward to working together!
>
> --
> Jonathan Ellis
> Project Chair, Apache Cassandra
> co-founder, http://www.datastax.com
> @spyced
>


Documentation on a new CQL feature of 3.6

2016-06-15 Thread Giampaolo Trapasso
Hi to all,

DS Documentation says that
*In Cassandra 3.6 and later, clustering columns can be defined in WHERE
clauses if ALLOW FILTERING is also used even if a secondary index is not
created. The table definition is given and then the SELECT command. Note
that race_start_date is a clustering column that has no secondary index.*

This seemed strange to me, since since in past I did queries using
clustering columns.

I did this quick check:

cqlsh:test> show version
[cqlsh 5.0.1 | Cassandra 2.2.5-SNAPSHOT | CQL spec 3.3.1 | Native protocol
v4]
cqlsh:test> SELECT * FROM calendar WHERE race_start_date='2015-06-13' ALLOW
FILTERING;

 race_id | race_start_date | race_end_date | race_name
-+-+---+---

(0 rows)
cqlsh:test> SELECT * FROM calendar WHERE race_end_date='2015-06-13' ALLOW
FILTERING;
InvalidRequest: code=2200 [Invalid query] message="PRIMARY KEY column
"race_end_date" cannot be restricted as preceding column "race_start_date"
is not restricted"
cqlsh:test>

As you can see, in < 3.6 you can put clustering columns in queries as long
as you respect the "preceding column" constraint. IMHO, that line should be
changed saying that an arbitrary clustering column can be used from 3.6,
and the example should use the 'race_end_date".

This is DS documentation. Did not find something similar in community
documentation (anycase 8700 is a work in progress, I will check in future).
Let me know if I'm missing some point.

Giampaolo


Re: Welcome new committers Carl Yeksigian and Stefania Alborghetti!

2016-04-21 Thread Giampaolo Trapasso
Congrats to both!

giampaolo

2016-04-21 18:01 GMT+02:00 Jason Brown :

> Woo-hoo! Congrats Carl and Stephania
>
> On Thursday, April 21, 2016, Jonathan Ellis  wrote:
>
> > Belated congratulations to Carl (added as committer in January) and
> > Stefania (added this week)!
> >
> > Thanks for your hard work and we look forward to making Cassandra better
> > with you!
> >
> > --
> > Jonathan Ellis
> > Project Chair, Apache Cassandra
> > co-founder, http://www.datastax.com
> > @spyced
> >
>


Re: Problems with test DateTieredCompactionStrategyTest for 2.2.5 on RedHat machine

2016-04-15 Thread Giampaolo Trapasso
Just an additional info. Repeating the test, I get odd executions as
failed, even as successful. The error message remains the same:
[junit] Testcase:
testFilterOldSSTables(org.apache.cassandra.db.compaction.DateTieredCompactionStrategyTest):
FAILED
[junit] only the newest 2 sstables should remain expected:<2> but
was:<42>
[junit] junit.framework.AssertionFailedError: only the newest 2
sstables should remain expected:<2> but was:<42>
[junit] at
org.apache.cassandra.db.compaction.DateTieredCompactionStrategyTest.testFilterOldSSTables(DateTieredCompactionStrategyTest.java:276)

Giampaolo

2016-04-15 15:38 GMT+02:00 Giampaolo Trapasso <
giampaolo.trapa...@radicalbit.io>:

> Hi to all,
>
> I'm trying to do unit test on cassandra-2.2.5
> (dd76858c7652541c7b137323f7b9e154686d6fba) and I cannot correctly run them.
> Let me explain. While on my personal laptop (OSX) it's all ok, I'm having
> some troubles on a RedHat box where I want to put my CI.
>
> In particular, I have problems with the DateTieredCompactionStrategyTest.
> I ran the test twice and, with surprise, the first run failed while the
> immediate second succeeded. You can find the output of both test here
> <https://gist.github.com/giampaolotrapasso/882f26cef098969cceb65d8143b4c60f#file-test-output-txt>
> and the information about the distro is here
> <https://gist.github.com/giampaolotrapasso/882f26cef098969cceb65d8143b4c60f#file-linux-distro-txt>
>
>
> I kindly ask you if you could help me to solve this (for me) strange
> situation. Any hint is appreciated.
>
> Thanks in advance
>
> Giampaolo
>


Problems with test DateTieredCompactionStrategyTest for 2.2.5 on RedHat machine

2016-04-15 Thread Giampaolo Trapasso
Hi to all,

I'm trying to do unit test on cassandra-2.2.5
(dd76858c7652541c7b137323f7b9e154686d6fba) and I cannot correctly run them.
Let me explain. While on my personal laptop (OSX) it's all ok, I'm having
some troubles on a RedHat box where I want to put my CI.

In particular, I have problems with the DateTieredCompactionStrategyTest. I
ran the test twice and, with surprise, the first run failed while the
immediate second succeeded. You can find the output of both test here

and the information about the distro is here



I kindly ask you if you could help me to solve this (for me) strange
situation. Any hint is appreciated.

Thanks in advance

Giampaolo