[ https://issues.apache.org/jira/browse/CASSANDRA-12204?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15379505#comment-15379505 ]
Aleksey Yeschenko commented on CASSANDRA-12204: ----------------------------------------------- We cannot actually detect it in this particular case and throw a better exception, as we don't have sufficient context at the time. Sorry. > sstable2json should let the user know that failure might have occurred due to > lack of disk space > ------------------------------------------------------------------------------------------------ > > Key: CASSANDRA-12204 > URL: https://issues.apache.org/jira/browse/CASSANDRA-12204 > Project: Cassandra > Issue Type: Improvement > Reporter: Thanh > Priority: Minor > > $ sstable2json testks_0101-datatable-ka-61613-Data.db > ~/json61613 > java.io.IOException: Error writing output stream > at > org.apache.cassandra.tools.SSTableExport.checkStream(SSTableExport.java:82) > at > org.apache.cassandra.tools.SSTableExport.export(SSTableExport.java:344) > at > org.apache.cassandra.tools.SSTableExport.export(SSTableExport.java:369) > at > org.apache.cassandra.tools.SSTableExport.export(SSTableExport.java:382) > at > org.apache.cassandra.tools.SSTableExport.main(SSTableExport.java:467) > The above error doesn't give the user any clue as to what happened/why it > errored. > It turns out, the above, can result from running out of disk space, which can > happen if you're trying to write out the json of a very large sstable. > sstable2json should let the user know that he/she might be out of disk space. -- This message was sent by Atlassian JIRA (v6.3.4#6332)