Skip to content

SAMZA-2486: Update TestFileReaderSystemAdmin to use test resource files#1315

Merged
lhaiesp merged 4 commits intoapache:masterfrom
kw2542:master
Mar 16, 2020
Merged

SAMZA-2486: Update TestFileReaderSystemAdmin to use test resource files#1315
lhaiesp merged 4 commits intoapache:masterfrom
kw2542:master

Conversation

@kw2542
Copy link
Copy Markdown
Contributor

@kw2542 kw2542 commented Mar 16, 2020

Symptom:
samza-core:test are randomly failing.

Cause:
TestFileReaderSystemAdmin and TestFileReaderSystemConsumer are creating and deleting the same set of files, when runnig in parallel, FileNotFoundException could happen depending on the timing.

Changes:

  1. Update TestFileReaderSystemAdmin to use test resource files.
  2. Update assert conditions as we removed tailing spaces and newlines in the files.
  3. Keep TestFileReaderSystemConsumer as it is because it is also appending data to test files, thus cannot share to use the same test resource file.

Tests:
./gradlew test

API Changes:
None

Upgrade Instructions:
None

Usage Instructions:
None

kw2542 added 3 commits March 11, 2020 16:56
Fix the issue that getAppMainArgs & getAppMainClass is reversed
Symptom:
samza-core:test are randomly failing.

Cause:
TestFileReaderSystemAdmin and TestFileReaderSystemConsumer are creating and deleting the same set of files, when runnig in parallel, FileNotFoundException could happen depending on the timing.

Changes:
1. Update TestFileReaderSystemAdmin to use test resource files.
2. Update assert conditions as we removed tailing spaces and newlines in the files.
3. Keep TestFileReaderSystemConsumer as it is because it is also appending data to test files, thus cannot share to use the same test resource file.

Tests:
./gradlew test

API Changes:
None

Upgrade Instructions:
None

Usage Instructions:
None
Copy link
Copy Markdown
Contributor

@Sanil15 Sanil15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch, LGTM!

@lhaiesp lhaiesp merged commit 9bd3d61 into apache:master Mar 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants