Re: snapshot files locked

2012-03-14 Thread Watanabe Maki
Typo > 2. MKLINK /D LINK.TXT ORIG.TXT MKLINK /H On 2012/03/15, at 9:04, Watanabe Maki wrote: > It's true on unix, but you can't delete hard links of opened files on windows. > Try following: > 1 Create a text file ORIG.TXT > 2. MKLINK /D LINK.TXT ORIG.TXT > Now you have hard link LINK.TXT .

Re: snapshot files locked

2012-03-14 Thread Watanabe Maki
It's true on unix, but you can't delete hard links of opened files on windows. Try following: 1 Create a text file ORIG.TXT 2. MKLINK /D LINK.TXT ORIG.TXT Now you have hard link LINK.TXT . 3 Open ORIG.TXT with MS Word. 4. DEL LINK.TXT It returns error. Interesting thing is that you can del

Re: snapshot files locked

2012-03-14 Thread Jim Newsham
Sure: https://issues.apache.org/jira/browse/CASSANDRA-4050. Thanks, Jim On 3/14/2012 10:17 AM, Tyler Hobbs wrote: Can you open a ticket on https://issues.apache.org/jira/browse/CASSANDRA for this? On Wed, Mar 14, 2012 at 3:04 PM, Jim Newsham > wrote: H

Re: snapshot files locked

2012-03-14 Thread Tyler Hobbs
Can you open a ticket on https://issues.apache.org/jira/browse/CASSANDRAfor this? On Wed, Mar 14, 2012 at 3:04 PM, Jim Newsham wrote: > > Hi Maki, > > Thanks for the reply. Yes, I understand that snapshots are hard links. > However, my understanding is that removing any hard-linked files just >

Re: snapshot files locked

2012-03-14 Thread Jim Newsham
Hi Maki, Thanks for the reply. Yes, I understand that snapshots are hard links. However, my understanding is that removing any hard-linked files just removes the link (decrementing the link counter of the file on disk) -- it does not delete the file itself nor remove any other links which m

Re: snapshot files locked

2012-03-14 Thread Maki Watanabe
snapshot files are "hardlink"s of the original sstables. As you know, on windows, you can't delete files opened by other process. If you try to delete the "hardlink", windows thinks you try to delete the sstables in production. maki 2012/3/14 Jim Newsham : > > Hi, > > I'm using Cassandra 1.0.8, o

snapshot files locked

2012-03-13 Thread Jim Newsham
Hi, I'm using Cassandra 1.0.8, on Windows 7. When I take a snapshot of the database, I find that I am unable to delete the snapshot directory (i.e., dir named "{datadir}\{keyspacename}\snapshots\{snapshottag}") while Cassandra is running: "The action can't be completed because the folder o