mirror of
https://github.com/apache/nifi.git
synced 2025-02-26 05:28:44 +00:00
NIFI-4803: Ensure that we set the FileCountAttribute of BinManager to the proper value, regardless of the merge strategy
This closes #2423. Signed-off-by: Bryan Bende <bbende@apache.org>
This commit is contained in:
parent
3ebfcd5ae5
commit
6f282c6843
@ -426,6 +426,8 @@ public class MergeContent extends BinFiles {
|
||||
protected void setUpBinManager(final BinManager binManager, final ProcessContext context) {
|
||||
if (MERGE_STRATEGY_DEFRAGMENT.equals(context.getProperty(MERGE_STRATEGY).getValue())) {
|
||||
binManager.setFileCountAttribute(FRAGMENT_COUNT_ATTRIBUTE);
|
||||
} else {
|
||||
binManager.setFileCountAttribute(null);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user