Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 24001 invoked from network); 22 Mar 2011 20:40:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Mar 2011 20:40:50 -0000 Received: (qmail 26479 invoked by uid 500); 22 Mar 2011 20:40:47 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 26451 invoked by uid 500); 22 Mar 2011 20:40:47 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 26443 invoked by uid 99); 22 Mar 2011 20:40:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2011 20:40:47 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a80.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Mar 2011 20:40:42 +0000 Received: from homiemail-a80.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a80.g.dreamhost.com (Postfix) with ESMTP id 4C10F37A078 for ; Tue, 22 Mar 2011 13:40:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thelastpickle.com; h=from :mime-version:content-type:subject:date:in-reply-to:to :references:message-id; q=dns; s=thelastpickle.com; b=gijxHKvZk3 f42gk1TRmya3DLI7pyyDLEmm+6Ik1bv2OLps0rKoY7Y0Sy5xeoO1QPwK9zcMyUoC MUSttAzwQJU0UfpeCbPSGNeiOhndCYAhbR3/vjfYZgQEt0Z9VZV7R2ebVXppg5pi UAynLnYeJ3hv3S97ghbxp9ZQIHtehgWgM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h=from :mime-version:content-type:subject:date:in-reply-to:to :references:message-id; s=thelastpickle.com; bh=rxcbbr+7cGb+8+0Z SglLQTSDdVA=; b=H8Xk5IV9G+Ov6BAh4gNIY3YJhagbfu9jYHsL99hOwPeqGu4U RnfAsl7+sGEMSzyujiK1q63GlwW/nGs8iaI24SqkkrQcKfOTHTaxbv0pNwLaFkCi IwShV1NWJdCCac6zg0R5zc06z6kU/EvgioQZMEz09PtIs7w8TIDRw4ZNFLQ= Received: from [172.20.10.3] (unknown [121.90.66.89]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a80.g.dreamhost.com (Postfix) with ESMTPSA id B8FBB37A06F for ; Tue, 22 Mar 2011 13:40:00 -0700 (PDT) From: aaron morton Mime-Version: 1.0 (Apple Message framework v1082.1) Content-Type: multipart/alternative; boundary=Apple-Mail-22-396661667 Subject: Re: Clearsnapshot Problem Date: Wed, 23 Mar 2011 09:40:08 +1300 In-Reply-To: To: user@cassandra.apache.org References: Message-Id: <7935CB99-FA5F-4D80-9AC7-1D096EC6EE45@thelastpickle.com> X-Mailer: Apple Mail (2.1082.1) --Apple-Mail-22-396661667 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii AFAIK upgrade from 0.6.2 to 0.6.12 should be a straight forward rolling = restart. Do check the changes.txt file first and if you have a test env = test it there. (The large gap in versions makes me a little nervous). If you feel it's reproducible (even sometimes) can you create a jira = ticket ? https://issues.apache.org/jira/browse/CASSANDRA Windows gets less loving than *nix so any help is appreciated.=20 Thanks Aaron On 23 Mar 2011, at 06:48, s p wrote: > Thanks. The problem is intermittent meaning we have separate CA = cluster environments: In some cases there is no problem running a = snapshot followed by a later clear snapshot (or for that matter physical = delete of the snapshot file).=20 > When I stop Cassandra the snapshot file can be deleted. As soon as = Cassandra is started the file is locked. >=20 > While testing the above I monitored things with sysinternals (Handle, = ProcessExplorer, ProcMon). None of them show any open file = handles/locks. >=20 > Am I missing something? I see you suggestion going to 0.6.12. Can the = existing cluster (0.6.2) be upgraded node by node? > =20 > -S >=20 > On Mon, Mar 21, 2011 at 11:45 PM, aaron morton = wrote: > There have been some issues to with deleting files on windows, cannot = find a reference to it happening for snapshots. >=20 > If you restart the node can you delete the snapshot? >=20 > Longer term can you upgrade to 0.6.12 and let us know if it happens = again? Any fix will be against that version. >=20 > Hope that helps. > Aaron >=20 >=20 > On 22 Mar 2011, at 08:11, s p wrote: >=20 > > I'm running 3-way CA cluster (0.62 ) on a windows 2008 (jre 1.6.24) = 64-bit. Things are running fine except when trying to remove old = snaphsot files. When running clearsnapshot I get an error msg like = below. I can't remove any daily snapshot files. When trying to delete = the actual snapshot file os cmd file I get "access denied. File used by = another process". Seems CA or JRE is sitting on file? > > > > Feedback much appreciated. > > > > > > C:\Cassandra\ > > Exception in thread "main" java.io.IOException: Failed to delete = c:\cassandra\da > > = ta\data\ks_SnapshotTest\snapshots\1300731301822-ks_SnapshotTest\cf_Snapsho= tTest-135-Data.db > > at = org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.ja > > va:47) > > at = org.apache.cassandra.io.util.FileUtils.deleteDir(FileUtils.java:189) > > at = org.apache.cassandra.io.util.FileUtils.deleteDir(FileUtils.java:184) > > at = org.apache.cassandra.io.util.FileUtils.deleteDir(FileUtils.java:184) > > at = org.apache.cassandra.db.Table.clearSnapshot(Table.java:274) > > at = org.apache.cassandra.service.StorageService.clearSnapshot(StorageServ > > ice.java:1023) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native = Method) > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown = Source) > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown = Source) > > at java.lang.reflect.Method.invoke(Unknown Source) > > at = com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown So > > urce) > > at = com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown So > > urce) > > at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(Unknown = Source) > > at com.sun.jmx.mbeanserver.PerInterface.invoke(Unknown = Source) > > at com.sun.jmx.mbeanserver.MBeanSupport.invoke(Unknown = Source) > > at = com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown > > Source) > > at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown = Source) > > at = javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown Sou > > rce) > > at = javax.management.remote.rmi.RMIConnectionImpl.access$200(Unknown Sour > > ce) > > at = javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run > > (Unknown Source) > > at = javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(U > > nknown Source) > > at = javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown Source) > > at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown = Source) > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown = Source) > > at java.lang.reflect.Method.invoke(Unknown Source) > > at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) > > at sun.rmi.transport.Transport$1.run(Unknown Source) > > at java.security.AccessController.doPrivileged(Native = Method) > > at sun.rmi.transport.Transport.serviceCall(Unknown Source) > > at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown = Source) > > at = sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Sou > > rce) > > at = sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Sour > > ce) > > at = java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source > > ) > > at = java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) > > at java.lang.Thread.run(Unknown Source) > > > > C:\Cassandra\bin> > > > > > > > > > > >=20 >=20 --Apple-Mail-22-396661667 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii AFAIK = upgrade from 0.6.2 to 0.6.12 should be a straight forward rolling = restart. Do check the changes.txt file first and if you have a test env = test it there. (The large gap in versions makes me a little = nervous).

If you feel it's reproducible (even = sometimes) can you create a jira ticket ?  https://issues.ap= ache.org/jira/browse/CASSANDRA

Windows gets = less loving than *nix so any help is = appreciated. 

Thanks
Aaron



On 23 Mar 2011, at 06:48, = s p wrote:

Thanks. The problem is intermittent meaning we have = separate CA cluster environments: In some cases there is no problem = running a snapshot followed by a later clear snapshot (or for that = matter physical delete of the snapshot file).
When I stop Cassandra the snapshot file can be deleted. As soon as = Cassandra is started the file is locked.

While testing the above = I monitored things with sysinternals (Handle, ProcessExplorer, ProcMon). = None of them show any open file handles/locks.

Am I missing something? I see you suggestion going to 0.6.12. Can = the existing cluster (0.6.2) be upgraded node by = node?
 
-S

On Mon, Mar 21, = 2011 at 11:45 PM, aaron morton <aaron@thelastpickle.com> wrote:
There = have been some issues to with deleting files on windows, cannot find a = reference to it happening for snapshots.

If you restart the node can you delete the snapshot?

Longer term can you upgrade to 0.6.12 and let us know if it happens = again? Any fix will be against that version.

Hope that helps.
Aaron


On 22 Mar 2011, at 08:11, s p wrote:

> I'm running 3-way CA cluster (0.62 ) on a windows 2008 (jre 1.6.24) = 64-bit. Things are running fine except when trying to remove old = snaphsot files. When running clearsnapshot I get an error msg like = below.  I can't remove any daily snapshot files. When trying to = delete the actual snapshot file os cmd file I get "access denied. File = used by another process". Seems CA or JRE is sitting on file?
>
> Feedback much appreciated.
>
>
> C:\Cassandra\
> Exception in thread "main" java.io.IOException: Failed to delete = c:\cassandra\da
> = ta\data\ks_SnapshotTest\snapshots\1300731301822-ks_SnapshotTest\cf_Snapsho= tTest-135-Data.db
>         at = org.apache.cassandra.io.util.FileUtils.deleteWithConfirm(FileUtils.ja
> va:47)
>         at = org.apache.cassandra.io.util.FileUtils.deleteDir(FileUtils.java:189)
>         at = org.apache.cassandra.io.util.FileUtils.deleteDir(FileUtils.java:184)
>         at = org.apache.cassandra.io.util.FileUtils.deleteDir(FileUtils.java:184)
>         at = org.apache.cassandra.db.Table.clearSnapshot(Table.java:274)
>         at = org.apache.cassandra.service.StorageService.clearSnapshot(StorageServ
> ice.java:1023)
>         at = sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at = sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at = sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at = java.lang.reflect.Method.invoke(Unknown Source)
>         at = com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown = So
> urce)
>         at = com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown = So
> urce)
>         at = com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(Unknown Source)
>         at = com.sun.jmx.mbeanserver.PerInterface.invoke(Unknown Source)
>         at = com.sun.jmx.mbeanserver.MBeanSupport.invoke(Unknown Source)
>         at = com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown
> Source)
>         at = com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
>         at = javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown = Sou
> rce)
>         at = javax.management.remote.rmi.RMIConnectionImpl.access$200(Unknown = Sour
> ce)
>         at = javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run
> (Unknown Source)
>         at = javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(U
> nknown Source)
>         at = javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown Source)
>         at = sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
>         at = sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at = java.lang.reflect.Method.invoke(Unknown Source)
>         at = sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
>         at = sun.rmi.transport.Transport$1.run(Unknown Source)
>         at = java.security.AccessController.doPrivileged(Native Method)
>         at = sun.rmi.transport.Transport.serviceCall(Unknown Source)
>         at = sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
>         at = sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown = Sou
> rce)
>         at = sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown = Sour
> ce)
>         at = java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown = Source
> )
>         at = java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown = Source)
>
> C:\Cassandra\bin>
>
>
>
>
>



= --Apple-Mail-22-396661667--