The SplitRecord processor allows the user to configure the number of Records in each 'split' FlowFile. The Property uses a Positive Integer Validator to ensure that the value is > 0. However, if Expression Language is used, a value of 0 could still be returned. Or a negative value. For example, if the record.count attribute has a value of 1 and the property is set to:
The intent would be to split the incoming FlowFile into two equally sized FlowFiles. However, if the input has 1 FlowFile, the result will be a value of (integer division) of 1/2 = 0. So the processor enters an infinite loop, creating a new file for each FlowFile until an IOException is reached due to "Too Many Open Files"