Github user vrozov commented on a diff in the pull request:
https://github.com/apache/apex-malhar/pull/333#discussion_r69836047
--- Diff:
library/src/test/java/com/datatorrent/lib/io/fs/FileSplitterInputTest.java ---
@@ -499,7 +499,7 @@ public void testRecoveryOfBlockMetadataIterator()
throws InterruptedException
testMeta.fileSplitterInput.getScanner().setScanIntervalMillis(500);
- testMeta.fileSplitterInput.setup(testMeta.context);
--- End diff --
@chandnisingh
The tests are not supposed to call setup() multiple times for the same
operator instance. According to the Java doc of the `Component.setup()`
callback to setup() "is made exactly once during the operator lifetime." If a
test relies on setup() to clean or reinitialize an operator state, such test
should be modified.
It will be good to fix all operators that are frequently used. Please file
new JIRA for such operators.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---