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 collision

RE: MD5 in the read path

2018-09-26 Thread Tyagi, Preetika
> > > > Regards, > > > > Anirudh > > > > > > > > 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 > > &

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 onl

RE: question on running cassandra-dtests

2018-03-28 Thread Tyagi, Preetika
provided at runtime 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,

RE: question on running cassandra-dtests

2018-03-28 Thread Tyagi, Preetika
venv are 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,

RE: question on running cassandra-dtests

2018-03-26 Thread Tyagi, Preetika
ndencies: ``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/li

RE: question on running cassandra-dtests

2018-03-26 Thread Tyagi, Preetika
, `pip3 install -r requirements.txt` 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&

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 -cassandra

RE: Use of OpOrder in memtable

2018-02-13 Thread Tyagi, Preetika
only 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 wrote: > Hi all, > > I'm trying to understand the behavior of memtable when writes/flush > operations are going on in p

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 lik

RE: range queries on partition key supported?

2018-01-31 Thread Tyagi, Preetika
d based on the > clustering key (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 wrote: > So that mean

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

RE: range queries on partition key supported?

2018-01-30 Thread Tyagi, Preetika
tition key supported? A range query can be performed on the token of a partition key, not on the value. -Jeremiah > On Jan 30, 2018, at 12:21 PM, Tyagi, Preetika > wrote: > > Hi All, > > I have a quick question on Cassandra's behavior in case of partition keys. I >

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 e

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 possib

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 wrote: > Hi all, > > I'm trying to understand the behavior of simple and complex columns in > Cassandra. > I was looking at UnfilteredSerializer.java, serializeRowBody() checks > f

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&do=view&target=intellij-codestyle.jar Does someone know how it can be imported to IntelliJ-Cassandra pro

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
, December 20, 2017 6:09 PM To: dev Subject: Re: How to fetch replication factor of a given keyspace I think you want: Schema.instance.getKeyspaceMetadata There is a ReplicationParams nested under there which should have everything you need fully populated. On Thu, Dec 21, 2017 at 2:02 PM, Tyagi

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 = keyspace.getReplicationStrategy()

RE: how to build nodetool source

2017-10-23 Thread Tyagi, Preetika
unset CASSANDRA_HOME" if you haven't. On Mon, Oct 23, 2017 at 11:49 AM, Tyagi, Preetika wrote: > 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,

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 and

chunk size for checksum when writing to disk

2017-09-25 Thread Tyagi, Preetika
Hi all, Does anyone know the size of each chunk/block while appending it with a checksum when writing to the disk in Cassandra? Is it the standard 512 bytes or it varies? Thanks, Preetika

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

2017-09-21 Thread Tyagi, Preetika
> On Sep 21, 2017, at 10:14 AM, Josh McKenzie wrote: > > It at least skips the CDC* tests unless you use the test-cdc target, as it > needs some different .yaml configurations so runs as a separate job. Not > sure about any other skips. > > On Thu, Sep 21, 2017 at 12:2

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 some

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 get

RE: question on assigning JIRA ticket

2017-09-19 Thread Tyagi, Preetika
ind if you work on it instead. Sometimes people assign and then never work on it, and they won't mind if you take it. Sometimes they'll have started but hit a road block, and may be able to give you some code to start with. Just ask before you change the assignee. - Jeff On Tue, Sep 1

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
nfiguration 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 Tyagi, Pr

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 Ji

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, I'm