incubator-cassandra-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sávio Teles <savio.te...@lupa.inf.ufg.br>
Subject Doubt about key using Thrift
Date Tue, 19 Mar 2013 19:33:56 GMT
I'm using a thrift client and my Cassandra Partitioner is
ByteOrderedPartitioner. I generate a key to force to store an item in a
specific machine. But, this key comes different on Cassandra Server. For
example, if my ByteBuffer key is [*98, 99, 100, 49, 57, 50, 53, 55, 98, 56,
49, 55, 100, 52, 52, 52, 52, 49, 98, 51, 53, 97, 98, 55, 56, 53, 52, 97,
51, 56, 97, 101, 101, 49*], this key comes on Cassandra with this value:

-128, 1, 0, 1, 0, 0, 0, 12, 98, 97, 116, 99, 104, 95, 109, 117, 116, 97,
116, 101, 0, 0, 0, 70, 13, 0, 1, 11, 13, 0, 0, 0, 1, 0, 0, 0, 34, *98, 99,
100, 49, 57, 50, 53, 55, 98, 56, 49, 55, 100, 52, 52, 52, 52, 49, 98, 51,
53, 97, 98, 55, 56, 53, 52, 97, 51, 56, 97, 101, 101, 49*, 11, 15, 0, 0, 0,
1, 0, 0, 0, 5, 117, 115, 105, 110, 97, 12, 0, 0, 0, 19, 12, 0, 1, 12, 0, 1,
11, 0, 1, 0, 0, 0, 3, 103, 105, 100, 11, 0, 2, 0, 0, 0, 2, -95, 50, 10, 0,
3, 0, 4, -40, 75, -114, -111, -103, 0, 0, 0, 0, 12, 0, 1, 12, 0, 1, 11, 0,
1, 0, 0, 0, 17, 110, 117, 109, 103, 101, 111, 101, 110, 116, 114, 121, 112,
111, 105, 110, 116, 115, 11, 0, 2, 0, 0, 0, 1, 1, 10, 0, 3, 0, 4, -40, 75,
-114, -111, -103, 0, 0, 0, 0, 12, 0, 1, 12, 0, 1, 11, 0, 1, 0, 0, 0, 9,
111, 119, 110, 101, 114, 110, 111, 100, 101, 11, 0, 2, 0, 0, 0, 1, -64, 10,
0, 3, 0, 4, -40, 75, -114, -111, -103, 0, 0, 0, 0, 12, 0, 1, 12, 0, 1, 11,
0, 1, 0, 0, 0, 4, 100, 97, 116, 97, 11, 0, 2, 0, 0, 0, 1, -64, 10, 0, 3, 0,
4, -40, 75, -114, -111, -103, 0, 0, 0, 0, 12, 0, 1, 12, 0, 1, 11, 0, 1, 0,
0, 0, 11, 98, 111, 117, 110, 100, 105, 110, 103, 98, 111, 120, 11, 0, 2, 0,
0, 0, 22, -75, 0, 0, 0, 0, 1, -64, 70, 58, -86, -86, -86, -86, -85, -64,
55, 1, -3, -71, 117, 48, -19, 10, 0, 3, 0, 4, -40, 75, -114, -111, -103, 0,
0, 0, 0, 12, 0, 1, 12, 0, 1, 11, 0, 1, 0, 0, 0, 3, 107, 101, 121, 11, 0, 2,
0, 0, 0, 37, -38, 0, 34, *98, 99, 100, 49, 57, 50, 53, 55, 98, 56, 49, 55,
100, 52, 52, 52, 52, 49, 98, 51, 53, 97, 98, 55, 56, 53, 52, 97, 51, 56,
97, 101, 101, 49*, 10, 0, 3, 0, 4, -40, 75, -114, -111, -103, 0, 0, 0, 0,
12, 0, 1, 12, 0, 1, 11, 0, 1, 0, 0, 0, 15, 97, 116, 116, 114, 105, 98, 117,
116, 101, 115, 58, 110, 111, 109, 101, 11, 0, 2, 0, 0, 0, 1, -64, 10, 0, 3,
0, 4, -40, 75, -114, -111, -103, 0, 0, 0, 0, 12, 0, 1, 12, 0, 1, 11, 0, 1,
0, 0, 0, 18, 97, 116, 116, 114, 105, 98, 117, 116, 101, 115, 58, 101, 115,
116, 97, 103, 105, 111, 11, 0, 2, 0, 0, 0, 1, -64, 10, 0, 3, 0, 4, -40, 75,
-114, -111, -103, 0, 0, 0, 0, 12, 0, 1, 12, 0, 1, 11, 0, 1, 0, 0, 0, 18,
97, 116, 116, 114, 105, 98, 117, 116, 101, 115, 58, 99, 111, 100, 109, 117,
110, 49, 11, 0, 2, 0, 0, 0, 1, -64, 10, 0, 3, 0, 4, -40, 75, -114, -111,
-103, 0, 0, 0, 0, 12, 0, 1, 12, 0, 1, 11, 0, 1, 0, 0, 0, 17, 97, 116, 116,
114, 105, 98, 117, 116, 101, 115, 58, 109, 117, 110, 105, 99, 49, 11, 0, 2,
0, 0, 0, 1, -64, 10, 0, 3, 0, 4, -40, 75, -114, -111, -103, 0, 0, 0, 0, 12,
0, 1, 12, 0, 1, 11, 0, 1, 0, 0, 0, 14, 97, 116, 116, 114, 105, 98, 117,
116, 101, 115, 58, 117, 102, 49, 11, 0, 2, 0, 0, 0, 1, -64, 10, 0, 3, 0, 4,
-40, 75, -114, -111, -103, 0, 0, 0, 0, 12, 0, 1, 12, 0, 1, 11, 0, 1, 0, 0,
0, 21, 97, 116, 116, 114, 105, 98, 117, 116, 101, 115, 58, 112, 114, 111,
99, 95, 97, 110, 101, 101, 108, 11, 0, 2, 0, 0, 0, 1, -64, 10, 0, 3, 0, 4,
-40, 75, -114, -111, -103, 0, 0, 0, 0, 12, 0, 1, 12, 0, 1, 11, 0, 1, 0, 0,
0, 20, 97, 116, 116, 114, 105, 98, 117, 116, 101, 115, 58, 97, 116, 111,
95, 108, 101, 103, 97, 108, 11, 0, 2, 0, 0, 0, 1, -64, 10, 0, 3, 0, 4, -40,
75, -114, -111, -103, 0, 0, 0, 0, 12, 0, 1, 12, 0, 1, 11, 0, 1, 0, 0, 0,
20, 97, 116, 116, 114, 105, 98, 117, 116, 101, 115, 58, 99, 108, 97, 115,
95, 99, 111, 109, 98, 11, 0, 2, 0, 0, 0, 1, -64, 10, 0, 3, 0, 4, -40, 75,
-114, -111, -103, 0, 0, 0, 0, 12, 0, 1, 12, 0, 1, 11, 0, 1, 0, 0, 0, 18,
97, 116, 116, 114, 105, 98, 117, 116, 101, 115, 58, 99, 111, 109, 98, 117,
115, 116, 11, 0, 2, 0, 0, 0, 1, -64, 10, 0, 3, 0, 4, -40, 75, -114, -111,
-103, 0, 0, 0, 0, 12, 0, 1, 12, 0, 1, 11, 0, 1, 0, 0, 0, 19, 97, 116, 116,
114, 105, 98, 117, 116, 101, 115, 58, 112, 95, 111, 117, 116, 95, 107, 119,
11, 0, 2, 0, 0, 0, 1, -64, 10, 0, 3, 0, 4, -40, 75, -114, -111, -103, 0, 0,
0, 0, 12, 0, 1, 12, 0, 1, 11, 0, 1, 0, 0, 0, 20, 97, 116, 116, 114, 105,
98, 117, 116, 101, 115, 58, 112, 95, 102, 105, 115, 99, 95, 107, 119, 11,
0, 2, 0, 0, 0, 1, -64, 10, 0, 3, 0, 4, -40, 75, -114, -111, -103, 0, 0, 0,
0, 12, 0, 1, 12, 0, 1, 11, 0, 1, 0, 0, 0, 21, 97, 116, 116, 114, 105, 98,
117, 116, 101, 115, 58, 112, 114, 111, 112, 114, 105, 101, 116, 97, 114,
11, 0, 2, 0, 0, 0, 1, -64, 10, 0, 3, 0, 4, -40, 75, -114, -111, -103, 0, 0,
0, 0, 12, 0, 1, 12, 0, 1, 11, 0, 1, 0, 0, 0, 21, 97, 116, 116, 114, 105,
98, 117, 116, 101, 115, 58, 105, 100, 95, 109, 101, 116, 97, 100, 97, 100,
11, 0, 2, 0, 0, 0, 1, -64, 10, 0, 3, 0, 4, -40, 75, -114, -111, -103, 0, 0,
0, 0, 8, 0, 2, 0, 0, 0, 1, 0].

I discovered this debugging the StorageProxy class on Cassandra. *Why this
happen?* I have to solve this problem, because when the key is different,
the item is stored on a differente machine.



-- 
Atenciosamente,
Sávio S. Teles de Oliveira
voice: +55 62 9136 6996
http://br.linkedin.com/in/savioteles
Mestrando em Ciências da Computação - UFG
Arquiteto de Software
Laboratory for Ubiquitous and Pervasive Applications (LUPA) - UFG

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message