Return ActiveRecord::Import::Result.new([], 0, [], []) when the kafka_config import is not set or the result set is empty.
Fixes an issue where KafkaSource crashes on bulk-imports if import hooks are disabled.
Fixes #73
Type of change
Please delete options that are not relevant.
[x] Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
[x] Unit Tests
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
…disabled
Pull Request Template
Description
Return
ActiveRecord::Import::Result.new([], 0, [], [])
when the kafka_configimport
is not set or the result set is empty. Fixes an issue where KafkaSource crashes on bulk-imports if import hooks are disabled.Fixes #73
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: