Skip to content

Commit

Permalink
fix: exclude _recovery_source_size
Browse files Browse the repository at this point in the history
  • Loading branch information
salvatore-campagna committed Jan 9, 2025
1 parent b2bbbf7 commit 1b6b524
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2410,8 +2410,14 @@ protected void validateRoundTripReader(String syntheticSource, DirectoryReader r
// and since the copy is exact, contents of ignored source are different.
assertReaderEquals(
"round trip " + syntheticSource,
new FieldMaskingReader(Set.of(SourceFieldMapper.RECOVERY_SOURCE_NAME, IgnoredSourceFieldMapper.NAME), reader),
new FieldMaskingReader(Set.of(SourceFieldMapper.RECOVERY_SOURCE_NAME, IgnoredSourceFieldMapper.NAME), roundTripReader)
new FieldMaskingReader(
Set.of(SourceFieldMapper.RECOVERY_SOURCE_NAME, IgnoredSourceFieldMapper.NAME, SourceFieldMapper.RECOVERY_SOURCE_SIZE_NAME),
reader
),
new FieldMaskingReader(
Set.of(SourceFieldMapper.RECOVERY_SOURCE_NAME, IgnoredSourceFieldMapper.NAME, SourceFieldMapper.RECOVERY_SOURCE_SIZE_NAME),
roundTripReader
)
);
}
}

0 comments on commit 1b6b524

Please sign in to comment.