RE: MD5 in the read path

2018-09-26 Thread Tyagi, Preetika
Makes sense. Thanks! -Original Message- From: Joseph Lynch [mailto:joe.e.ly...@gmail.com] Sent: Wednesday, September 26, 2018 9:02 PM To: dev@cassandra.apache.org Subject: Re: MD5 in the read path > > Thank you all for the response. > For RandomPartitioner, MD5 is used to avoid

RE: MD5 in the read path

2018-09-26 Thread Tyagi, Preetika
dh > > > > > > > > On Wed, Sep 26, 2018 at 7:14 PM Jeff Jirsa wrote: > > > > > > > > > In some installations, it's used for hashing the partition key to > > find > > > > the > > > > > host ( RandomPartition

MD5 in the read path

2018-09-26 Thread Tyagi, Preetika
Hi all, I have a question about MD5 being used in the read path in Cassandra. I wanted to understand what exactly it is being used for and why not something like CRC is used which is less complex in comparison to MD5. Thanks, Preetika

partitioning and CRC

2018-09-13 Thread Tyagi, Preetika
Hi all, I am trying to understand where exactly digests and checksums are being used in Cassandra. In my understanding, Murmur3 hashing is used with murmur3 partitioning scheme which is also the default configuration. CRC32 is used for data corruption and repair. MD5 is used for partitioning

RE: question on running cassandra-dtests

2018-03-28 Thread Tyagi, Preetika
time aren't the same as the ones provided at compile time. It might help to run with --keep-test-dir and then check the test directory for Cassandra logs and review the classpath to make sure everything Cassandra is being loaded up with makes sense. Ariel On Wed, Mar 28, 2018, at 5:09 PM, T

RE: question on running cassandra-dtests

2018-03-28 Thread Tyagi, Preetika
re lost when running in sudo. > > > The advantage of virtualenv is not needing to mess with system > packages at > > all so sudo is inadvisable when creating, activating, and pip > > installing things. > > > > You might need to use pip3 instead of pip, bu

RE: question on running cassandra-dtests

2018-03-26 Thread Tyagi, Preetika
``pip install -r /path/to/cassandra-dtest/requirements.txt`` Regards, Ariel On Mon, Mar 26, 2018, at 11:13 AM, Tyagi, Preetika wrote: > I was able to run requirements.txt with success. Below is the error I get: > > Traceback (most recent call last): > File "/usr/local/lib/python2.

RE: question on running cassandra-dtests

2018-03-26 Thread Tyagi, Preetika
` creates an `src` directory with appropriate branches of ccm and cassandra-driver checked out. If you have run `pip3 install -r requirements.txt`, then something else is wrong and we need the complete error log. On 2018/03/23 20:22:47, "Tyagi, Preetika" <preetika.ty...@intel.co

question on running cassandra-dtests

2018-03-23 Thread Tyagi, Preetika
Hi All, I am trying to setup and run Cassandra-dtests so that I can write some tests for a JIRA ticket I have been working on. This is the repo I am using: https://github.com/apache/cassandra-dtest I followed all the instructions and installed dependencies. However, when I run "pytest

RE: Use of OpOrder in memtable

2018-02-13 Thread Tyagi, Preetika
just begun when the flush triggered). It helps avoid these race conditions on either side of the equation. On 13 February 2018 at 22:09, Tyagi, Preetika <preetika.ty...@intel.com> wrote: > Hi all, > > I'm trying to understand the behavior of memtable when writes/flus

Use of OpOrder in memtable

2018-02-13 Thread Tyagi, Preetika
Hi all, I'm trying to understand the behavior of memtable when writes/flush operations are going on in parallel. In my understanding, once a memtable is full it is queued for flushing and a new memtable is created for ongoing write operations. However, I was looking at the code and it looks

RE: range queries on partition key supported?

2018-01-31 Thread Tyagi, Preetika
(i.e. "time" in this case). No. it will skip to the section of the partition with time = '12:00'. Cassandra should be smart enough to avoid reading the whole partition. On 31 January 2018 at 06:57, Tyagi, Preetika <preetika.ty...@intel.com> wrote: > So that means more than one nodes can b

RE: create branch in my github account

2018-01-31 Thread Tyagi, Preetika
github account On 01/30/2018 03:47 PM, Tyagi, Preetika wrote: > Hi all, > > I'm working on the JIRA ticket CASSANDRA-13981 and pushed a patch > yesterday, however, I have been suggested to create a branch in my > github account and then push all changes into that. The patch is t

RE: range queries on partition key supported?

2018-01-30 Thread Tyagi, Preetika
med on the token of a partition key, not on the value. -Jeremiah > On Jan 30, 2018, at 12:21 PM, Tyagi, Preetika <preetika.ty...@intel.com> > wrote: > > Hi All, > > I have a quick question on Cassandra's behavior in case of partition keys. I > know that ra

create branch in my github account

2018-01-30 Thread Tyagi, Preetika
Hi all, I'm working on the JIRA ticket CASSANDRA-13981 and pushed a patch yesterday, however, I have been suggested to create a branch in my github account and then push all changes into that. The patch is too big hence this seems to be a better approach. I haven't done it before so wanted to

range queries on partition key supported?

2018-01-30 Thread Tyagi, Preetika
Hi All, I have a quick question on Cassandra's behavior in case of partition keys. I know that range queries are allowed in general, however, is it also allowed on partition keys as well? The partition key is used as an input to determine a node in a cluster, so I'm wondering how one can

RE: simple vs complex cells

2018-01-23 Thread Tyagi, Preetika
, cell.timestamp()); return timestamp; } On Tue, Jan 23, 2018 at 4:22 PM, Tyagi, Preetika <preetika.ty...@intel.com> wrote: > Hi all, > > I'm trying to understand the behavior of simple and complex columns in > Cassandra. > I was looking at UnfilteredSerializer.java, seri

simple vs complex cells

2018-01-23 Thread Tyagi, Preetika
Hi all, I'm trying to understand the behavior of simple and complex columns in Cassandra. I was looking at UnfilteredSerializer.java, serializeRowBody() checks for a timestamp flag and then only it writes it. In case of writeComplexColumn(), there is no timestamp being written. Also, as per my

code formatting

2018-01-18 Thread Tyagi, Preetika
Hi, I have a quick question on the code formatting for Cassandra using IntelliJ. I found a code formatter JAR here for Cassandra: https://wiki.apache.org/cassandra/CodeStyle?action=AttachFile=view=intellij-codestyle.jar Does someone know how it can be imported to IntelliJ-Cassandra project

Question on submitting a patch

2018-01-05 Thread Tyagi, Preetika
Hi all, When I click on "Submit Patch" option, it pops up a new screen where it asks for a bunch of details including Fix Version(s). Does the patch need to be synced up with the latest repo or I can just choose which version I worked with (which may not necessarily be the latest and hence one

RE: How to fetch replication factor of a given keyspace

2017-12-21 Thread Tyagi, Preetika
Dec 21, 2017 at 2:02 PM, Tyagi, Preetika <preetika.ty...@intel.com> wrote: > Hi, > > If I need to get the replication factor of a given keyspace in nodetool > commands (e.g. status), how can I do that? I'm trying to figure it out for a > JIRA item I'm working on. > > I

How to fetch replication factor of a given keyspace

2017-12-20 Thread Tyagi, Preetika
Hi, If I need to get the replication factor of a given keyspace in nodetool commands (e.g. status), how can I do that? I'm trying to figure it out for a JIRA item I'm working on. I tried using the below: Keyspace keyspace = Keyspace.open(keyspaceName); Int rf =

how to build nodetool source

2017-10-23 Thread Tyagi, Preetika
Hi all, I might be missing something very simple here but it seems I cannot find a way to build tools/nodetool/* source files correctly in my dev set up. For example, when I make a simple code change in line 105 (System.out.println("Status=Up/Down");" in Status.java to print something else

RE: Why Cassandra unit test run skips some of it?

2017-09-21 Thread Tyagi, Preetika
Thu, Sep 21, 2017 at 12:29 PM, Tyagi, Preetika <preetika.ty...@intel.com> > wrote: > >> Hi all, >> >> I downloaded and built the Cassandra project from GitHub and ran all unit >> tests by running the below command: >> >> ant test -Dtest.runners=4 >

Why Cassandra unit test run skips some of it?

2017-09-21 Thread Tyagi, Preetika
Hi all, I downloaded and built the Cassandra project from GitHub and ran all unit tests by running the below command: ant test -Dtest.runners=4 When it finished, I saw >99% success rate, however, it also showed some number under "Skipped" tests as well. Does someone know why would it skip

reclaim after memtable flush

2017-09-20 Thread Tyagi, Preetika
Hi, I'm trying to understand how Regions are being allocated and deallocated in Memtable. I can see that the same region is being used to allocate more size until the max region limit is hit. However, once the max limit is reached, the current region is set to null and eventually new Region

RE: question on assigning JIRA ticket

2017-09-19 Thread Tyagi, Preetika
Sep 19, 2017 at 9:34 AM, Tyagi, Preetika <preetika.ty...@intel.com> wrote: > Hi all, > > I'm trying to figure out different ways in which one can contribute to > Cassandra. I know one can create a ticket and assign it to himself to > work on it. However, is it also

question on assigning JIRA ticket

2017-09-19 Thread Tyagi, Preetika
Hi all, I'm trying to figure out different ways in which one can contribute to Cassandra. I know one can create a ticket and assign it to himself to work on it. However, is it also allowed to assign and work on an already existing ticket created by someone else? Thanks, Preetika

RE: question on the code formatter

2017-09-15 Thread Tyagi, Preetika
g configuration for Cassandra daemon > * License header for Java source files > * Cassandra code style > * Inspections You can just run `generate-idea-files` and then open the project in IDEA. Code style settings should be automatically picked up by IDEA. On Fri, 15 Sep 2017 at 14:46 Tyag

RE: Proposal: Closing old, unable-to-repro JIRAs

2017-09-15 Thread Tyagi, Preetika
+ 1 This is a good idea. -Original Message- From: beggles...@apple.com [mailto:beggles...@apple.com] Sent: Friday, September 15, 2017 8:29 AM To: dev@cassandra.apache.org Subject: Re: Proposal: Closing old, unable-to-repro JIRAs +1 to that On September 14, 2017 at 4:50:54 PM, Jeff

question on the code formatter

2017-09-14 Thread Tyagi, Preetika
Hi all, I was trying to configure the Cassandra code formatter and downloaded IntelliJ-codestyle.jar from this link: https://wiki.apache.org/cassandra/CodeStyle After extracting this JAR, I was able to import codestyle/Default_1_.xml into my project and formatting seemed to work. However,