[NiFi][PartitionRecord] When using Partition Record it fails with IllegalArgumentException: newLimit > capacity (90>82)
So guys,
This time I could really use your help with something because I cannot figure this on my own and neither do I know where to look in the source code exactly.
My flow is as follows:
ConsumeKafka ----> MergeContent (as I have plenty of small files I prefer to merge them in bigger files for further processing) ----> ReplaceText (I have some empty spaces and I want them removed) ---> PartitionRecord.
The problems comes here, in PartitionRecord. I have defined two Controller Services, one Record Reader (CSVReader, with a pre-defined working schema) and and Record Writer (ParquetRecordSetWriter, with the same exact schema as in the CSV reader). I have no strange data types, only a couple of FLOATs and around 100 STRINGS. I defined a property called time, which extracts the value from a field in our File.
Unfortunately, when executing the flow, I keep on getting the following error message:
" PartitionRecord[id=3be1c42e-5fa9-3144-3365-f568bb616028] Processing halted: yielding [1 sec]: java.lang.IllegalArgumentException: newLimit > capacity: (90 > 82) "
I have nothing else in the logs. The data which enters the PartionRecord looks fine to me, but something happens when we transform it from CSV (plain text) to Parquet ... and I do not know at all what to further check.
Has anybody encountered such and error and if so, what was the cause and how did you manage to solve it?
Thank you in advance 🙂

