Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
in_sample: support to renew record functionality
When in_sample plugin is used with filter parser which uses remove_key_name_field, it raises the following error repeatedly. #0 dump an error event: error_class=ArgumentError error="message does not exist" This kind of error occurs when key_name and remove_key_name_field removes key from record with destructive change in filter parser. It affects generated sample data. To fix this issue, it is simple to just dup every record, but it has a significant performance penalty. Considering keeping compatibility and providing way to a workaround, added option to control whether it always re-generate a new record or re-use existing record - renew_record. ref. #4575 Signed-off-by: Kentaro Hayashi <[email protected]>
- Loading branch information