mirror of https://github.com/apache/nifi.git
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…
Reference in New Issue