Re: Repair has now effect

2012-09-04 Thread Patricio Echagüe
embarrassing. Chef somehow ran in that box and updated the schema with a version of it that had RF=1. Sorry about that. On Mon, Sep 3, 2012 at 1:45 AM, Radim Kolar h...@filez.com wrote: INFO [AntiEntropySessions:6] 2012-09-02 15:46:23,022 AntiEntropyService.java (line 663) [repair #%s] No

Repair has now effect

2012-09-02 Thread Patricio Echagüe
Hey folks, perhaps a dumb question but I ran into this situation and it's a bit unclear what's going on. We are running a 3 nodes cluster with RF 3 (cass 1.0.11). We had one issue with one node and it was down for like 1 hour. I brought the node up again as soon as I realized it was down (and

Re: Hector Problem Basic one

2011-10-13 Thread Patricio Echagüe
Hi, Hector does not retry on a down server. In the unit tests where you have just one server, Hector will pass the exception to the client. Can you tell us please what your test looks like ? 2011/10/12 Wangpei (Peter) peter.wang...@huawei.com I only saw this error message when all Cassandra

Re: Efficiency of hector's setRowCount

2011-10-13 Thread Patricio Echagüe
Hi Don. No it will not. IndexedSlicesQuery will read just the amount of rows specified by RowCount and will go to the DB to get the new page when needed. SetRowCount is doing indexClause.setCount(rowCount); On Mon, Oct 10, 2011 at 3:52 PM, Don Smith dsm...@likewise.com wrote: Hector's

Re: Efficiency of hector's setRowCount (and setStartKey!)

2011-10-13 Thread Patricio Echagüe
++; String key = row.getKey(); if (!startKey.equals(key)) {lastKey=key;} } totalCount--; return lastKey; } On 10/13/2011 09:15 AM, Patricio

Re: Write everywhere, read anywhere

2011-08-03 Thread Patricio Echagüe
On Wed, Aug 3, 2011 at 4:00 PM, Philippe watche...@gmail.com wrote: Hello, I have a 3-node, RF=3, cluster configured to write at CL.ALL and read at CL.ONE. When I take one of the nodes down, writes fail which is what I expect. When I run a repair, I see data being streamed from those column

Re: Counter Column in Cassandra

2011-06-13 Thread Patricio Echagüe
It's a column whose content represents a distributed counter. http://wiki.apache.org/cassandra/Counters On Mon, Jun 13, 2011 at 8:29 AM, Sijie YANG iyan...@gmail.com wrote: Hi, All I am newbie to cassandra. I have a simple question but don't find any clear answer by searching google:

Re: Site Not Surviving a Single Cassandra Node Crash

2011-04-09 Thread Patricio Echagüe
What is the consistency level you are using ? And as Ed said, if you can provide the stacktrace that would help too. On Sat, Apr 9, 2011 at 7:02 PM, aaron morton aa...@thelastpickle.comwrote: btw, the nodes are a tad out of balance was that deliberate ?

Re: Re: Quorum, Hector, and datacenter preference

2011-03-24 Thread Patricio Echagüe
Doesn't CL=LOCAL_QUORUM solve your problem? On Thu, Mar 24, 2011 at 9:33 AM, jonathan.co...@gmail.com wrote: Hi Nate - That sounds really promising and I'm looking forward to trying that out. My original question came up while thinking how to achieve quorum (with rf=3) with a loss of 1 of

is it possible to mutate Columns and CounterColumn in the same batch mutation?

2011-03-24 Thread Patricio Echagüe
Hi folks, I'm modeling the partitioned counters into Hector and given the non-inheritance of Thrift, I don't see how to add a ColumnCounter and a Column in the same batch mutation. Is it possible do achieve? or are both in fact different mutations? Thanks

Re: TSocket timing out

2011-01-29 Thread Patricio Echagüe
The recommendation is to wait few milliseconds and retry. For Example if you use Hector ( I don't think it is your case), Hector will retry to different nodes in your cluster and the retry mechanisms is tunable as well. On Sat, Jan 29, 2011 at 2:20 PM, buddhasystem potek...@bnl.gov wrote:

Re: Basic question on a write operation immediately followed by a read

2011-01-24 Thread Patricio Echagüe
Roshan, when a client invoke a write, the write goes first to commit log and later to memtable. After that it returns to the client. After it reaches the memtable, that data is ready to be read. The reads consolidates de data from the memtables and sstables unless there is a hit in the row

Re: Converting a TimeUUID to a long (timestamp) and vice-versa

2011-01-05 Thread Patricio Echagüe
you use to query your columns too. Victor K. http://www.voxnucleus.fr 2011/1/4 Patricio Echagüe patric...@gmail.com In Hector framework, take a look at TimeUUIDUtils.java You can create a UUID using TimeUUIDUtils.getTimeUUID(long time); or TimeUUIDUtils.getTimeUUID

Re: Converting a TimeUUID to a long (timestamp) and vice-versa

2011-01-05 Thread Patricio Echagüe
support Hector should expose. Thoughts? On Wed, Jan 5, 2011 at 6:30 PM, Roshan Dawrani roshandawr...@gmail.comwrote: Hi Patricio, Thanks for your comment. Replying inline. 2011/1/5 Patricio Echagüe patric...@gmail.com Roshan, just a comment in your solution. The time returned is not a simple

Re: Converting a TimeUUID to a long (timestamp) and vice-versa

2011-01-04 Thread Patricio Echagüe
In Hector framework, take a look at TimeUUIDUtils.java You can create a UUID using TimeUUIDUtils.getTimeUUID(long time); or TimeUUIDUtils.getTimeUUID(ClockResolution clock) and later on, TimeUUIDUtils.getTimeFromUUID(..) or just UUID.timestamp(); There are some example in

Re: Any GUI for Cassandra database on Windows?

2010-12-29 Thread Patricio Echagüe
The error you mentioned sounds like one of the server/client is using TFramedTransport and the other one TSocket. I saw the same error when that happened. On Mon, Dec 27, 2010 at 9:15 PM, Roshan Dawrani roshandawr...@gmail.comwrote: Sorry. Will do that. I am using Cassandra 0.7.0-rc2. I

Re: Is it possible to read from one row, several SuperColumns with all their Columns in one call?

2010-07-22 Thread Patricio Echagüe
the start and finish values are empty strings. Set the count to an appropriate level to get them all (e.g. 1000) or make multiple calls. Aaron On 22 Jul, 2010,at 12:05 PM, Patricio Echagüe patric...@gmail.com wrote: Hi all, apologize before hand if this question sounds a bit dumb but I don't

Re: Is it possible to read from one row, several SuperColumns with all their Columns in one call?

2010-07-22 Thread Patricio Echagüe
that the amount of columns are lot and for performance issues i want to avoid moving a lot of data over the network? 2010/7/22 Patricio Echagüe patric...@gmail.com: Hi Aaron, the problem I have is that those UUIDs are random numbers. 2,3,4 are not sequential unfortunately. I don't think

Re: Understanding atomicity in Cassandra

2010-07-20 Thread Patricio Echagüe
Hi, regarding the retrying strategy, I understand that it might make sense assuming that the client can actually perform a retry. We are trying to build a fault tolerance solution based on Cassandra. In some scenarios, the client machine can go down during a transaction. Would it be bad design

Re: Is there any way to detect when a node is down so I can failover more effectively?

2010-06-04 Thread Patricio Echagüe
for it so much. also see http://wiki.apache.org/cassandra/FAQ#node_clients_connect_to 2010/6/1 Patricio Echagüe patric...@gmail.com: Hi all, I'm using Hector framework to interact with Cassandra and at trying to handle failover more effectively I found it a bit complicated to fetch all

Is there any way to detect when a node is down so I can failover more effectively?

2010-06-01 Thread Patricio Echagüe
Hi all, I'm using Hector framework to interact with Cassandra and at trying to handle failover more effectively I found it a bit complicated to fetch all cassandra nodes that are up and running. My goal is to keep an up-to-date list of active/up Cassandra servers to provide HEctor every time I

Help to understand a strange behavior with DCQUORUM

2010-05-28 Thread Patricio Echagüe
Hi all, I need to help to understand how DCQUORUM works. This is my setup: - Cluster with 3 Cassandra Nodes - RF = 3 - ReplicatePlacementStrategy = RackUnawareStrategy My test: - I write/read with DCQUORUM Results: - While the 3 nodes are UP, all my writes and read succeed. (the nodes are

Re: Basic Architecture Question

2010-05-01 Thread Patricio Echagüe
Roger, if you include the last read key as the start key for the next API call, will that retrieve the same key/row twice? The documentation says that both keys (start, finish) are included. Thanks On Thu, Apr 29, 2010 at 1:31 PM, Brandon Williams dri...@gmail.com wrote: On Thu, Apr 29, 2010