-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-4826][Streaming] - Create unique file names for each test in WALS... #3695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ALSuite to avoid conflicts.
|
Test build #24446 has started for PR 3695 at commit
|
|
@tdas @JoshRosen Since the directories are created atomically each time the suite is run, conflicts reported in SPARK-4826 was likely caused by multiple tests running at the same time and using the same filename (since the writeLogSegments method is not thread-safe). |
…atter cannot delete directories that are not empty.
|
Test build #24447 has started for PR 3695 at commit
|
|
Test build #24447 has finished for PR 3695 at commit
|
|
Test FAILed. |
|
Test build #24448 has started for PR 3695 at commit
|
|
Test build #24446 has finished for PR 3695 at commit
|
|
Test PASSed. |
|
Test build #24448 has finished for PR 3695 at commit
|
|
Test PASSed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not bring in commons-io again for this. There is already a method in Utils that does this.
|
The fix in #3701 looks simpler but it's fixing a different supposed cause. Is it really that the random method produces the same string many times, because of a race condition or something? seems like synchronization would fix that then. The alternate method in the other PR may do the same. |
|
I can't be sure which one is causing the issue but this one should take care of both. Since thee file names are being updated atomically - each test will get a unique file without random causing issues again. |
Here's what I find confusing, though: the Jenkins master builds (and branch-1.2 builds) don't have any parallelism within a single build: only one thread of control should be executing in a given instance of Are you saying that within the same Jenkins build / instance of Maybe something is implicitly calling |
|
So, it could also what #3701 mentions, where the random class is returning the same string for each call - in which case every tests following the first one fails. This PR should fix that too, since each test will get a unique file name. Basically, I am trying to fix boh the cases - |
|
I've opened a new PR with what I think is is a more direct approach to fixing this issue: #3704. Please take a look and let me know what you think. |
|
Test build #24465 has started for PR 3695 at commit
|
|
Closing this as #3704 takes care of this issue. |
|
Test build #24465 has finished for PR 3695 at commit
|
|
Test PASSed. |
This PR should fix SPARK-4826, an issue where a bug in how we generate temp. file names was causing spurious test failures in the write ahead log suites. Closes #3695. Closes #3701. Author: Josh Rosen <joshrosen@databricks.com> Closes #3704 from JoshRosen/SPARK-4826 and squashes the following commits: f2307f5 [Josh Rosen] Use Spark Utils class for directory creation/deletion a693ddb [Josh Rosen] remove unused Random import b275e41 [Josh Rosen] Move creation of temp. dir to beforeEach/afterEach. 9362919 [Josh Rosen] [SPARK-4826] Fix bug in generation of temp file names. in WAL suites. 86c1944 [Josh Rosen] Revert "HOTFIX: Disabling failing block manager test" (cherry picked from commit f6b8591) Signed-off-by: Josh Rosen <joshrosen@databricks.com>
This PR should fix SPARK-4826, an issue where a bug in how we generate temp. file names was causing spurious test failures in the write ahead log suites. Closes #3695. Closes #3701. Author: Josh Rosen <joshrosen@databricks.com> Closes #3704 from JoshRosen/SPARK-4826 and squashes the following commits: f2307f5 [Josh Rosen] Use Spark Utils class for directory creation/deletion a693ddb [Josh Rosen] remove unused Random import b275e41 [Josh Rosen] Move creation of temp. dir to beforeEach/afterEach. 9362919 [Josh Rosen] [SPARK-4826] Fix bug in generation of temp file names. in WAL suites. 86c1944 [Josh Rosen] Revert "HOTFIX: Disabling failing block manager test"
...uite to avoid conflicts.