Skip to content

Commit

Permalink
Update forException method for IndexNotAvailable
Browse files Browse the repository at this point in the history
  • Loading branch information
ekaterinadimitrova2 committed Jan 12, 2025
1 parent 4d356ee commit cb7b9e1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import com.google.common.primitives.Ints;

import org.apache.cassandra.db.filter.TombstoneOverwhelmingException;
import org.apache.cassandra.index.IndexNotAvailableException;
import org.apache.cassandra.index.sai.utils.AbortedOperationException;
import org.apache.cassandra.io.IVersionedSerializer;
import org.apache.cassandra.io.util.DataInputPlus;
Expand Down Expand Up @@ -102,6 +103,9 @@ public static RequestFailureReason forException(Throwable t)
if (t instanceof AbortedOperationException)
return TIMEOUT;

if (t instanceof IndexNotAvailableException)
return INDEX_NOT_AVAILABLE;

return UNKNOWN;
}

Expand Down

0 comments on commit cb7b9e1

Please sign in to comment.