NIFI-13763 Fixed HashSet Filtering for DeduplicateRecord (#9277)

Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
timeabarna 2024-09-19 22:57:44 +02:00 committed by GitHub
parent 58184683df
commit e125d8cdbb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -391,7 +391,7 @@ public class DeduplicateRecord extends AbstractProcessor {
private FilterWrapper getFilter(ProcessContext context) {
if (useInMemoryStrategy) {
boolean useHashSet = context.getProperty(FILTER_TYPE).getValue()
.equals(context.getProperty(HASH_SET_VALUE.getValue()).getValue());
.equals(HASH_SET_VALUE.getValue());
final int filterCapacity = context.getProperty(FILTER_CAPACITY_HINT).asInteger();
return useHashSet
? new HashSetFilterWrapper(new HashSet<>(filterCapacity))