De : mdione....@orange.com [mailto:mdione....@orange.com] > > De : Sylvain Lebresne [mailto:sylv...@datastax.com] > > > 2) copy the snapshot sstable in the right place and call the JMX > > > method > > > loadNewSSTables() (in the column family MBean, which mean you need > > > to do that per-CF). > > > > How does this affect the contents of the CommitLogs? I mean, I > > imagine using this for rollback'ing errors in the app side, like > > some/many/all objects deleted. How will updates/deletes saved in > > CommitLogs impact the data restored this way? Also: while I'm > > restoring a KS of CF, is it possible to cut write requests but not > > reads? I hope I'm explaining myself clearly... > > In particular, I'm thinking on a restore like this: > > * the app does something stupid. > * (if possible) I stop writes to the KS or CF. > * remove the db files with the wrong data. > * I put the db files from the restore. > * nodetool refresh > * profit! > [...] > * and here's the error at repair time: > > root@pnscassandra04:~# nodetool repair one_cf cf_1 > > INFO [RMI TCP Connection(56)-10.234.169.244] 2012-08-10 17:03:12,354 > StorageService.java (line 1925) Starting repair command #3, repairing 5 > ranges. > INFO [AntiEntropySessions:5] 2012-08-10 17:03:12,358 > AntiEntropyService.java (line 666) [repair #811be330-e2fc-11e1-0000- > b64817724cbd] new session: will sync > pnscassandra04.vdev.bas.s1.p.fti.net/10.234.169.244, /10.234.169.245, > /10.234.169.241, /10.234.169.242, /10.234.169.243 on range > (34028236692093846346337460743176821145,6805647338418769269267492148635 > 3642291] for one_cf.[cf_1] INFO [AntiEntropySessions:5] 2012-08-10 > 17:03:12,359 AntiEntropyService.java (line 871) [repair #811be330-e2fc- > 11e1-0000-b64817724cbd] requesting merkle trees for cf_1 (to > [/10.234.169.245, /10.234.169.241, /10.234.169.242, /10.234.169.243, > pnscassandra04.vdev.bas.s1.p.fti.net/10.234.169.244]) > ERROR [ValidationExecutor:2] 2012-08-10 17:03:12,361 > AbstractCassandraDaemon.java (line 134) Exception in thread > Thread[ValidationExecutor:2,1,main] > java.io.IOError: java.io.FileNotFoundException: > /var/opt/hosting/db/cassandra/data/one_cf/cf_1/one_cf-cf_1-hd-13- > Data.db (No such file or directory) [...] > > I understand that this procedure (refresh+repair in one node) makes > absolutely no sense, but the error leads me to think that after > refresh, the 'wrong' databases are still taken in account. Is it that > the whole procedure is bad from the start and I should use > SSTableLoader instead?
Ok, I just did the refresh without the repair on all the nodes at the same time, and the error is still there. Should I drop the CF or KS before doing this kind of restore? -- Marcos Dione SysAdmin Astek Sud-Est pour FT/TGPF/OPF/PORTAIL/DOP/HEBEX @ Marco Polo 04 97 12 62 45 - mdione....@orange.com _________________________________________________________________________________________________________________________ Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, France Telecom - Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci. This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, France Telecom - Orange is not liable for messages that have been modified, changed or falsified. Thank you.