[ 
https://issues.apache.org/jira/browse/CASSANDRA-8019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14200590#comment-14200590
 ] 

Joshua McKenzie commented on CASSANDRA-8019:
--------------------------------------------

Discussed this offline - I'm going to pursue formalizing the relationship 
between SSTableScanners and SSTableReaders w/expectations of ordering, as we 
don't want to close out SSTR w/scanners still open to them (in general 
principle, though it doesn't seem to be hurting anything at this time).  
Currently in the 2.1 branch, Windows' intolerance of deletion of files w/open 
filehandles gives us a temporary "canary in a coal mine" on these specific 
ordering issues but we shouldn't rely on that, and that goes away in 3.0 anyway.

My gut feeling is that codifying the expectation of release/deletion ordering 
is best served by _aggressive_v1 but I'm loathe to add *more* users of the ref 
counting mechanism on SSTR as it's been such a pain point for us.

I've also created CASSANDRA-8271 to cover SSTableDeletingTask removal in 3.0.

> Windows Unit tests and Dtests erroring due to sstable deleting task error
> -------------------------------------------------------------------------
>
>                 Key: CASSANDRA-8019
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8019
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: Windows 7
>            Reporter: Philip Thompson
>            Assignee: Joshua McKenzie
>              Labels: windows
>             Fix For: 2.1.2
>
>         Attachments: 8019_aggressive_v1.txt, 8019_conservative_v1.txt, 
> 8019_v2.txt
>
>
> Currently a large number of dtests and unit tests are erroring on windows 
> with the following error in the node log:
> {code}
> ERROR [NonPeriodicTasks:1] 2014-09-29 11:05:04,383 
> SSTableDeletingTask.java:89 - Unable to delete 
> c:\\users\\username\\appdata\\local\\temp\\dtest-vr6qgw\\test\\node1\\data\\system\\local-7ad54392bcdd35a684174e047860b377\\system-local-ka-4-Data.db
>  (it will be removed on server restart; we'll also retry after GC)\n
> {code}
> git bisect points to the following commit:
> {code}
> 0e831007760bffced8687f51b99525b650d7e193 is the first bad commit
> commit 0e831007760bffced8687f51b99525b650d7e193
> Author: Benedict Elliott Smith <[email protected]>
> Date:  Fri Sep 19 18:17:19 2014 +0100
>     Fix resource leak in event of corrupt sstable
>     patch by benedict; review by yukim for CASSANDRA-7932
> :100644 100644 d3ee7d99179dce03307503a8093eb47bd0161681 
> f55e5d27c1c53db3485154cd16201fc5419f32df M      CHANGES.txt
> :040000 040000 194f4c0569b6be9cc9e129c441433c5c14de7249 
> 3c62b53b2b2bd4b212ab6005eab38f8a8e228923 M  src
> :040000 040000 64f49266e328b9fdacc516c52ef1921fe42e994f 
> de2ca38232bee6d2a6a5e068ed9ee0fbbc5aaebe M  test
> {code}
> You can reproduce this by running simple_bootstrap_test.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to