Ruslan Fomkin created CASSANDRA-20447:
-----------------------------------------

             Summary: Ignoring errors in SSTables write leads to incorrect 
results for SASI
                 Key: CASSANDRA-20447
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-20447
             Project: Apache Cassandra
          Issue Type: Bug
            Reporter: Ruslan Fomkin


The fix for https://issues.apache.org/jira/browse/CASSANDRA-11383 catches any 
exceptions and ignores them during SSTables disk writer.
{code:java}
try
                 {
                     File index = new File(segmentFile);
                     return builder.finish(index) ? new OnDiskIndex(index, 
columnIndex.getValidator(), null) : null;
                 }
                 catch (Exception | FSError e)
                 {
                     logger.error("Failed to build index segment {}", 
segmentFile, e);
                     return null;
                 } {code}
This covers the case when a user creates a SASI index with a long name, which 
leads to a too long file name. Thus queries, which utilize the index, produces 
incorrect result. See https://issues.apache.org/jira/browse/CASSANDRA-20445

There might be more issues hidden behind the ignoring of exceptions.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to