Skip to content

Commit

Permalink
addressing comments
Browse files Browse the repository at this point in the history
Signed-off-by: Bharathwaj G <bharath78910@gmail.com>
  • Loading branch information
bharath-techie committed Aug 17, 2022
1 parent c8c6593 commit 51ef240
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,9 @@ protected ShardSegments shardOperation(PitSegmentsRequest request, ShardRouting
return new ShardSegments(shardRouting, new ArrayList<>());
}
return new ShardSegments(pitReaderContext.getShardRouting(), pitReaderContext.getSegments());
} else {
throw new IllegalArgumentException("Shard routing is not of PitAwareShardRouting type");
}
return new ShardSegments(shardRouting, new ArrayList<>());
}

/**
Expand Down

0 comments on commit 51ef240

Please sign in to comment.