Skip to content

Commit

Permalink
Update RollupInterceptor.kt
Browse files Browse the repository at this point in the history
uncommeneted rollup size check

Signed-off-by: Ronnak Saxena <[email protected]>
  • Loading branch information
ronnaksaxena committed Aug 23, 2023
1 parent 6d82554 commit c258896
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ class RollupInterceptor(
val index = request.shardId().indexName
val isRollupIndex = isRollupIndex(index, clusterService.state())
if (isRollupIndex) {
// if (request.source().size() != 0) {
// throw IllegalArgumentException("Rollup search must have size explicitly set to 0, but found ${request.source().size()}")
// }
if (request.source().size() != 0) {
throw IllegalArgumentException("Rollup search must have size explicitly set to 0, but found ${request.source().size()}")
}

val indices = request.indices().map { it.toString() }.toTypedArray()
val concreteIndices = indexNameExpressionResolver
Expand Down

0 comments on commit c258896

Please sign in to comment.