Thursday, 2014-08-28

*** vnaboychenko has quit IRC01:05
*** vnaboychenko has joined #magnetodb01:59
*** openstackgerrit has quit IRC02:02
*** openstackgerrit has joined #magnetodb02:03
*** k4n0 has joined #magnetodb06:03
openstackgerritIllia Khudoshyn proposed a change to stackforge/magnetodb: Add recognition of 'INSERT IF NOT EXISTS'  https://review.openstack.org/11693707:06
*** vnaboychenko has quit IRC07:08
*** rushiagr_away is now known as rushiagr08:08
*** ajayaa has joined #magnetodb08:09
*** rushiagr is now known as rushiagr_away08:12
*** boris-42 has quit IRC08:21
isviridovHello everybody08:24
*** boris-42 has joined #magnetodb08:33
*** ikhudoshyn has joined #magnetodb09:28
dukhlovHi09:34
ajayaahi all.09:35
ajayaaI am trying to reproduce https://bugs.launchpad.net/magnetodb/+bug/135106809:35
ikhudoshyn0/09:35
ajayaaAny help would be appreciated.09:36
ikhudoshynhttps://review.openstack.org/#/c/116937/ guys, could you take a look once gerrit verifies that?09:36
ajayaaAs far as I understand, in the bug we are trying to get an item by secondary index and secondary index does not exist.09:37
ajayaaThat should not be 500.09:37
dukhlovajayaa: hi!09:41
ajayaadukhlov, hi09:41
dukhlovyes, It seems you are right09:41
dukhlovdo you have problem to reproduce it?09:41
ajayaadukhlov, I don't know how to query with a secondary index? I will paste my table schema somewhere.09:42
ajayaahttp://paste.openstack.org/show/101604/09:43
ajayaaI could probably look through the test files.09:46
isviridovHello ajayaa09:49
ajayaaisviridov, hi09:49
isviridovAre you familiar with postman Chrome plugin? https://chrome.google.com/webstore/detail/postman-rest-client/fdmmgilgnpjigdojojpjoooidkmcomcm09:50
isviridovI have sample requests for it and can share with you09:50
isviridovHere it is https://www.getpostman.com/collections/27123d8110f2ff9216f009:50
ajayaaisviridov, I am familiar with sending REST api calls.09:50
ajayaaI use "Advanced REST Client" btw. I am not sure whether I will be able to import this.09:51
ajayaalet me install POSTMAN09:51
dukhlovok, first of all you data model is not valid because local secondary indices are not allowed on tables with HASH key only (you could specify 'last_name' attribute as RANGE key and then you primary index).09:59
dukhlovhm, if you created such table successfully, I guess it is a bug and we need to add validation for this case10:00
*** isviridov is now known as isviridov_awa10:00
*** isviridov_awa is now known as isviridov_awat10:00
*** isviridov_awat is now known as isviridov_away10:00
ajayaadukhlov, It is a bug then.10:03
openstackgerritDmitriy Ukhlov proposed a change to stackforge/magnetodb: Fix small bugs with cql quating and unicode encoding  https://review.openstack.org/11603410:11
ajayaadukhlov, btw I don't think there is a bug. I have created local secondary index with both HASH and RANGE keys.10:14
dukhlovajayaa, I meant table with primary key which consists of HASH key only10:19
dukhlovin your example you have created table with HASH key only primary key10:20
ajayaaI didn't know that. Why is that? Why wouldn't you allow such a query?10:20
ajayaaYes. Primary key is hash only.10:20
dukhlovbecause it do nothing10:24
dukhlovif you query by index you should specify hash key  and then add some condition for for LSI RANGE key10:26
dukhlovbut if your table has HASH key only it means that each hash key stores only single item10:26
dukhlovand there nothing to query10:26
*** isviridov_away is now known as isviridov10:37
ajayaaisviridov, I sent the query "query email_data by Author and Date" with a non-existent index name and it returns 400.10:47
isviridovWhat the mdb log output?10:55
ikhudoshynhttps://bugs.launchpad.net/magnetodb/+bug/136254910:58
isviridovikhudoshyn, i see. Any other information? Stacktrace, how many requests?11:05
ikhudoshynI'll update once I have the full info11:05
isviridovGreat. Till then it is marked as 'Incomplete'11:07
ajayaaisviridov, http://paste.openstack.org/show/101675/11:45
openstackgerritA change was merged to stackforge/magnetodb: Add recognition of 'INSERT IF NOT EXISTS'  https://review.openstack.org/11693712:04
isviridovajayaa, do you have index with name foo in your table?12:12
ajayaaNo.12:13
ajayaaisridov,12:13
ajayaaI believe that is the bug. I should get 500 instead of correct validation and return.12:13
ajayaahttps://bugs.launchpad.net/magnetodb/+bug/135106812:14
isviridovajayaa, actually 400 is correct response code. Means Bad Request12:20
*** ominakov has joined #magnetodb12:20
ajayaaYes. I am trying to reproduce the above bug.12:20
ajayaaI thought If I send an get_item with non-existing secondary index, I will be able to reproduce the bug.12:21
isviridovSeems it has been fixed with refactoring of validation12:21
ajayaaisviridov, okay. cool!12:22
isviridovGood catch! Just confirm and we will resolve it12:22
ajayaaThe bug should be marked fix-commited or something equivalent to it.12:23
isviridovLet me do it. Whats is your launchpad id?12:23
ajayaahttps://launchpad.net/~ajayaa12:23
ajayaaisviridov, What do you want me to do? It is already fixed. :)12:25
isviridovajayaa, you have finished with it. Bug verification is also job, and I think you have done it. Apparently, I've assigned it to you.12:26
isviridovMarked as Fix Commited12:27
ajayaaisviridov, cool!  I will try to find some other bug to kill.12:29
isviridovajayaa, great. The prioriti for now is juno-3 milestone https://launchpad.net/magnetodb/+milestone/juno-3 and we are fighting for user expierence, so 'ux' tagged bugs are in the focus now https://bugs.launchpad.net/magnetodb/+bugs?field.tag=ux12:31
isviridov#offtopic Russian troops in Ukraine https://mapsengine.google.com/map/u/0/embed?mid=zjOaq88N3N_g.knEcWTZi7F_M12:35
*** ominakov has quit IRC12:42
ajayaaisviridov, the bug https://bugs.launchpad.net/magnetodb/+bug/1348336 is also not reproducible.12:47
ajayaaI tested with  the third attribute both present in secondary index and not present in secondary index.12:48
isviridovThis bag is assigned to aostapenko, please comment your test results. I believe he will come to IRC today12:52
ajayaaisviridov, yes there is a bug. I misunderstood it.12:54
ajayaaisviridov, Shall I go ahead and fix it?12:54
isviridovBetter to talk to aostapenko first.12:57
isviridovIIRC he not working on it, but better to check12:57
*** ominakov has joined #magnetodb12:57
isviridovHey ominakov, is aostapenko around?12:57
ominakovhey isviridov, not yet12:58
*** achuprin has joined #magnetodb13:04
achuprinhi team!13:04
isviridovHi achuprin. Any news about gate?13:05
achuprinisviridov, I created new patch set https://review.openstack.org/#/c/112304/13:06
achuprinisviridov, review in progress13:07
isviridovGreat!13:07
*** k4n0 has quit IRC13:10
*** aostapenko has joined #magnetodb13:10
*** ajayaa has quit IRC13:11
isviridov!m achuprin13:17
[o__o]You're doing good work, achuprin!13:17
openstackisviridov: Error: "m" is not a valid command.13:17
isviridov[o__o], help13:17
openstackgerritDmitriy Ukhlov proposed a change to stackforge/magnetodb: Fix small bugs with cql quating and unicode encoding  https://review.openstack.org/11603413:21
*** charlesw has joined #magnetodb13:48
aostapenkoHi, ajayaa!13:54
*** ominakov has quit IRC14:03
*** ominakov has joined #magnetodb14:03
*** denis_makogon has joined #magnetodb14:08
denis_makogonHi, guys14:09
denis_makogonCan we discuss how are we going to accomplish backup procedure?14:09
ominakovdenis_makogon, hello14:15
denis_makogonominakov, 'sup =)14:15
charleswGood topic, denis_makogon, we can schedule a time so more people can attend14:16
achudnovetsdenis_makogon: hi!14:16
ikhudoshyndenis_makogon, hi14:16
denis_makogoncharlesw, hello, i just wanted to share sore knowledge about how does cassandra does backups14:17
dukhlovhello, denis_makogon14:17
denis_makogoncharlesw, other things we can discuss within wide community14:17
ominakovdenis_makogon, sounds good14:17
denis_makogonachudnovets, dukhlov, hi, guys14:17
ikhudoshyndenis_makogon, I guess I got more experience in C* backups14:17
ikhudoshyndenis_makogon, you could start14:18
denis_makogoncassandra uses for backups nodetool CLI util (see http://www.datastax.com/documentation/cassandra/2.0/cassandra/tools/toolsSnapShot.html)14:19
ikhudoshynbut if you think it would be a lot of typing u could start with a letter to maillist14:19
denis_makogonit allows to do backups of all keyspaces, certain keyspace, and per-CF backup14:19
denis_makogonikhudoshyn, sure i can do that14:20
ikhudoshyndenis_makogon, I dot't actually want to stop you)) it's just a hint14:21
denis_makogonikhudoshyn, sure14:21
ikhudoshyneither way for us will be good. But if u start with an email we could schedule a discussion in advance,  as charlesw suggested14:22
denis_makogonthe only one impact i see that we need to have direct access via SSH onto each node and snapshotting/collecting files/sending them to remote storage14:22
denis_makogonikhudoshyn, sure, if it works for all of you, then i'm ok14:22
dukhlovdenis_makogon: is Cassandra node stopped for backup time?14:22
denis_makogondukhlov, no downtime14:23
denis_makogondukhlov, to accomplish consistency nodetool provides an ability to flush un-commited changes into file system14:23
ikhudoshyndenis_makogon,  so, r we to proceed now or you'll start with the letter?14:26
dukhlovcassandra node uses sstables and commit logs for persistance, memtables, and in memory caches for fast request processing14:26
dukhlovcould you provide deeper information what cassandra actually backups?14:27
dukhlovwhat is procedure?14:27
ikhudoshynwhat i'm really interested in is process description, inputs and outputs14:27
dukhlovso when cassandra receives backup request what is performed step by step?14:28
denis_makogondukhlov, snapshotting doesn't involve cassandra at all14:28
ikhudoshyndukhlov, I thought this is a side tool, not a part of C* process, denis_makogon am I wrong?14:28
denis_makogonikhudoshyn, correct14:29
ikhudoshynif so, I suggest first to concentrate on tool invocation, prerequisites and artifacts produced14:29
denis_makogonok14:30
denis_makogonlet me describe whole procedure of backup in ML14:30
ikhudoshyndenis_makogon, sounds good14:31
ominakovdenis_makogon, and one more question about SSH onto each node. What we need is a SSH or nodetool will suffice?14:32
denis_makogonominakov, we need to do ssh'ing14:33
denis_makogonat least once, to call snapshot command from any cluster node for each node in the rin14:33
denis_makogonbut when we need to collect data we would need to ssh onto each node14:34
dukhlovok, main point of my interest is how we nodetool achieve snapshotting without downtime (for example it is not clear to me why compaction or memtable flushing doesn't broke our backup)14:37
dukhlovalso it is very important to know about potential problems known for you.14:38
*** bogeyon18 has joined #magnetodb14:41
*** tnurlygayanov has quit IRC14:42
*** ominakov has quit IRC15:28
*** ominakov has joined #magnetodb15:29
aostapenkoisviridov: i've decided not to add new filter for time measuring and just to probe existing filters. Actually I think that to measure connection_handler filter will be enough to understand the situation. Do you have any thoughts about than?15:51
openstackgerritA change was merged to stackforge/magnetodb: Integration test scenarios  https://review.openstack.org/11487715:54
isviridovaostapenko, what the problem with time measure filter?15:59
isviridovaostapenko, I don't like an approach to add code to folters when can avoid it. I would siggest to implement 2 filters: one for measuring whole request and one for measuring specific filter, working as wrapper on target and delegating the call.16:03
isviridovaostapenko, whta do you think?16:03
*** isviridov is now known as isviridov_away16:18
aostapenkoisviridov: I need some time for investigation about 2nd filter. I like your approach16:27
*** bogeyon1_ has joined #magnetodb16:38
*** ominakov has quit IRC16:39
*** bogeyon18 has quit IRC16:40
*** ominakov has joined #magnetodb16:40
*** vnaboychenko has joined #magnetodb16:44
*** ominakov has quit IRC16:58
*** achuprin has quit IRC17:01
*** aostapenko has quit IRC17:08
*** denis_makogon has quit IRC17:10
*** vnaboychenko has quit IRC17:24
*** vnaboychenko has joined #magnetodb17:24
*** bogeyon1_ has quit IRC17:28
*** vnaboychenko has quit IRC17:29
*** vnaboychenko has joined #magnetodb18:08
*** vnaboychenko has quit IRC18:09
*** vnaboychenko has joined #magnetodb18:18
*** achuprin has joined #magnetodb18:45
*** ominakov has joined #magnetodb18:59
*** bogeyon18 has joined #magnetodb19:01
*** openstackgerrit has quit IRC19:31
*** openstackgerrit has joined #magnetodb19:33
*** bogeyon18 has quit IRC19:41
*** bogeyon18 has joined #magnetodb20:10
*** bogeyon1_ has joined #magnetodb20:14
*** bogeyon18 has quit IRC20:14
*** bogeyon1_ has quit IRC20:25
*** ominakov has quit IRC20:30
*** ominakov has joined #magnetodb20:39
*** bogeyon18 has joined #magnetodb21:06
*** bogeyon18 has quit IRC21:21
*** bogeyon18 has joined #magnetodb21:23
*** bogeyon18 has quit IRC21:32
*** achuprin has quit IRC21:39
*** ominakov has quit IRC21:42
*** aostapenko has joined #magnetodb21:56
*** ominakov has joined #magnetodb22:11
*** igormarnat has quit IRC22:13
*** ominakov has quit IRC22:16
*** igormarnat has joined #magnetodb22:16
*** charlesw has quit IRC22:51
*** ominakov has joined #magnetodb22:52
*** ominakov has quit IRC23:41
*** ominakov has joined #magnetodb23:43
*** openstackgerrit has quit IRC23:46
*** openstackgerrit has joined #magnetodb23:48
*** bogeyon18 has joined #magnetodb23:57

Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!