Skip to content

Commit

Permalink
Check directory casting state
Browse files Browse the repository at this point in the history
Signed-off-by: luyuncheng <[email protected]>
  • Loading branch information
luyuncheng committed Aug 15, 2024
1 parent 2bcc139 commit 12b96e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public KNN80DocValuesProducer(DocValuesProducer delegate, SegmentReadState state

FSDirectory fsDirectory = null;
try {
fsDirectory = ((FSDirectory) FilterDirectory.unwrap(directory));
fsDirectory = ((FSDirectory) FilterDirectory.unwrap(directory));
} catch (ClassCastException ex) {
log.warn("{} can not casting to FSDirectory", directory.toString());
return;
Expand Down

0 comments on commit 12b96e4

Please sign in to comment.