src/java/org/apache/cassandra/io/sstable/SSTableWriter.java
/**
     * After failure, attempt to close the index writer and data file before deleting all temp components for the sstable
     */
After failure, attempt to close the index writer and data file before deleting all temp components for the sstable
After failure attempt to close the index writer and data file before deleting all temp components for the sstable
public void abort()
    {
        assert descriptor.temporary;
        FileUtils.closeQuietly(iwriter);
        FileUtils.closeQuietly(dataFile);
        try
        {
            Set<Component> components = SSTable.componentsFor(descriptor);
            if (!components.isEmpty())
                SSTable.delete(descriptor, components);
        }
        catch (Exception e)
        {
            logger.error(String.format("Failed deleting temp components for %s", descriptor), e);
        }
    }
public void abort ( ) { assert descriptor . temporary ; FileUtils . closeQuietly ( iwriter ) ; FileUtils . closeQuietly ( dataFile ) ; try { Set < Component > components = SSTable . componentsFor ( descriptor ) ; if ( ! components . isEmpty ( ) ) SSTable . delete ( descriptor , components ) ; } catch ( Exception e ) { logger . error ( String . format ( "Failed deleting temp components for %s" , descriptor ) , e ) ; } }
After failure, attempt to close the index writer and data file before deleting all temp components for the sstable
After failure attempt to close the index writer and data file before deleting all temp components for the sstable