[GitHub] cassandra pull request: Update lib/snappy-java-1.0.5.jar with snap...

2016-02-02 Thread iheanyi
Github user iheanyi closed the pull request at:

https://github.com/apache/cassandra/pull/37


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


Re: Missing rows while scanning table using java driver

2016-02-02 Thread Priyanka Gugale
I am using query of the form: select * from %t where token(%p) > %s limit
%l;

where t=tablename, %p=primary key, %s=token value of primary key and l=limit

-Priyanka

On Mon, Feb 1, 2016 at 6:19 PM, Priyanka Gugale  wrote:

> Hi,
>
> I am using Cassandra 2.2.0 and cassandra driver 2.1.8. I am trying to scan
> a table as per suggestions given here
> ,
>  On running the code to fetch records from table, it fetches different
> number of records on each run. Some times it reads all records from table,
>  and some times some records are missing. As I have observed there is no
> fixed pattern for missing records.
>
> I have tried to set consistency level to ALL while running select query
> still I couldn't fetch all records. Is there any known issue? Or am I
> suppose to do anything more than running simple "select" statement.
>
> Code snippet to fetch data:
>
>  SimpleStatement stmt = new SimpleStatement(query);
>  stmt.setConsistencyLevel(ConsistencyLevel.ALL);
>  ResultSet result = session.execute(stmt);
>  if (!result.isExhausted()) {
>for (Row row : result) {
>  process(row);
>}
>  }
>
> -Priyanka
>


Re: Missing rows while scanning table using java driver

2016-02-02 Thread Priyanka Gugale
Thanks Paulo and Ryan, I have moved my question to user mailing list.

-Priyanka

On Tue, Feb 2, 2016 at 6:31 PM, Ryan Svihla  wrote:

> Priyanka,
>
> This is a better question for the Cassandra user mailing list (cc’d above)
> which is where many experts in the use of Cassandra are subscribed, where
> as this list is more about improving or changing Cassandra itself.
>
> As to your issue, there can be many combined issues at once that are
> leading to this situation, can I suggest you respond on the user list with
> the following:
>
> - Keyspace (RF especially), data center and table configuration.
> - Any errors in the logs on the Cassandra nodes.
>
> Regards,
>
> Ryan Svihla
>
> > On Feb 2, 2016, at 4:58 AM, Priyanka Gugale  wrote:
> >
> > I am using query of the form: select * from %t where token(%p) > %s limit
> > %l;
> >
> > where t=tablename, %p=primary key, %s=token value of primary key and
> l=limit
> >
> > -Priyanka
> >
> > On Mon, Feb 1, 2016 at 6:19 PM, Priyanka Gugale 
> wrote:
> >
> >> Hi,
> >>
> >> I am using Cassandra 2.2.0 and cassandra driver 2.1.8. I am trying to
> scan
> >> a table as per suggestions given here
> >> <
> http://www.myhowto.org/bigdata/2013/11/04/scanning-the-entire-cassandra-column-family-with-cql/
> >,
> >> On running the code to fetch records from table, it fetches different
> >> number of records on each run. Some times it reads all records from
> table,
> >> and some times some records are missing. As I have observed there is no
> >> fixed pattern for missing records.
> >>
> >> I have tried to set consistency level to ALL while running select query
> >> still I couldn't fetch all records. Is there any known issue? Or am I
> >> suppose to do anything more than running simple "select" statement.
> >>
> >> Code snippet to fetch data:
> >>
> >> SimpleStatement stmt = new SimpleStatement(query);
> >> stmt.setConsistencyLevel(ConsistencyLevel.ALL);
> >> ResultSet result = session.execute(stmt);
> >> if (!result.isExhausted()) {
> >>   for (Row row : result) {
> >> process(row);
> >>   }
> >> }
> >>
> >> -Priyanka
> >>
>
>


Re: Missing rows while scanning table using java driver

2016-02-02 Thread Paulo Motta
This list (dev@cassandra.apache.org) is not the appropriate forum for user
or driver-related questions, but only for Cassandra internal development.
Please subscribe and ask the question in the appropriate list:
https://mail-archives.apache.org/mod_mbox/cassandra-user/ or
https://groups.google.com/a/lists.datastax.com/forum/#!forum/java-driver-user

Thanks,

2016-02-02 7:58 GMT-03:00 Priyanka Gugale :

> I am using query of the form: select * from %t where token(%p) > %s limit
> %l;
>
> where t=tablename, %p=primary key, %s=token value of primary key and
> l=limit
>
> -Priyanka
>
> On Mon, Feb 1, 2016 at 6:19 PM, Priyanka Gugale  wrote:
>
> > Hi,
> >
> > I am using Cassandra 2.2.0 and cassandra driver 2.1.8. I am trying to
> scan
> > a table as per suggestions given here
> > <
> http://www.myhowto.org/bigdata/2013/11/04/scanning-the-entire-cassandra-column-family-with-cql/
> >,
> >  On running the code to fetch records from table, it fetches different
> > number of records on each run. Some times it reads all records from
> table,
> >  and some times some records are missing. As I have observed there is no
> > fixed pattern for missing records.
> >
> > I have tried to set consistency level to ALL while running select query
> > still I couldn't fetch all records. Is there any known issue? Or am I
> > suppose to do anything more than running simple "select" statement.
> >
> > Code snippet to fetch data:
> >
> >  SimpleStatement stmt = new SimpleStatement(query);
> >  stmt.setConsistencyLevel(ConsistencyLevel.ALL);
> >  ResultSet result = session.execute(stmt);
> >  if (!result.isExhausted()) {
> >for (Row row : result) {
> >  process(row);
> >}
> >  }
> >
> > -Priyanka
> >
>