-
Notifications
You must be signed in to change notification settings - Fork 314
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
LIVY-313. Fixed SparkRInterpreter always returning success. #307
Conversation
- Stopped redirecting stderr to stdout. - Continue to read ErrorStream (it was only being read once). - Checking for any errors returned by stderr before returning success.
Mind if you fix the style issue? |
There used to be a race condition in the code I fixed in #251. To solve it, I modified the code to redirect stderr to stdout so SparkRInterpreter doesn't need to read from multiple streams. To repo the issue, run this unit test in a loop. I think this fix undoes my fix. |
@alex-the-man thanks for the feedback. Could you tell me how you run a single test or single test suite? I have been doing it by building my own class path and running |
@jonalter Do you use ideaj? |
@alex-the-man yes I do, but I am pretty new to using it. |
You can start a specific scalatest test case using the test runner integrated in IntelliJ. You will hit some errors if your environment variables are not set properly. You can set them referencing to pom.xml. However, for your particular case, you can just add a infinite loop around this block. Let it run overnight to verify the race condition is gone. |
Codecov Report
@@ Coverage Diff @@
## master #307 +/- ##
============================================
+ Coverage 70.35% 70.37% +0.01%
+ Complexity 689 688 -1
============================================
Files 94 94
Lines 4912 4925 +13
Branches 740 743 +3
============================================
+ Hits 3456 3466 +10
- Misses 954 955 +1
- Partials 502 504 +2
Continue to review full report at Codecov.
|
7352af6
to
377ba20
Compare
@alex-the-man, thanks for the info! |
I ran that one test overnight like you suggested with no failure. |
PR ready for review |
LGTM. @zjffdu |
LGTM, thanks @jonalter will merge it. |
LIVY-313