-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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
[HOTFIX][Streaming][MLlib] use temp folder for checkpoint #2046
Conversation
QA tests have started for PR 2046 at commit
|
QA tests have finished for PR 2046 at commit
|
@rxin Could you help clean the Jenkins working directory? |
QA tests have started for PR 2046 at commit
|
QA tests have finished for PR 2046 at commit
|
Jenkins, retest this please |
Jenkins, retest this please. |
QA tests have started for PR 2046 at commit
|
QA tests have finished for PR 2046 at commit
|
Jenkins, retest this please. |
QA tests have started for PR 2046 at commit
|
QA tests have finished for PR 2046 at commit
|
Jenkins, retest this please. |
QA tests have started for PR 2046 at commit
|
QA tests have finished for PR 2046 at commit
|
Jenkins, retest this please. |
QA tests have started for PR 2046 at commit
|
QA tests have finished for PR 2046 at commit
|
Jenkins, retest this please. |
QA tests have started for PR 2046 at commit
|
@mengxr when something like this happens - can you please log into jenkins manually and clear the bad files on all nodes? otherwise this will fail other tests indefinitely until someone does that. |
QA tests have finished for PR 2046 at commit
|
or Jenkins will complain about no Apache header in checkpoint files. tdas rxin Author: Xiangrui Meng <meng@databricks.com> Closes #2046 from mengxr/tmp-checkpoint and squashes the following commits: 0d3ec73 [Xiangrui Meng] remove ssc.stop 9797843 [Xiangrui Meng] change checkpointDir to lazy val 89964ab [Xiangrui Meng] use temp folder for checkpoint (cherry picked from commit fce5c0f) Signed-off-by: Xiangrui Meng <meng@databricks.com>
We can just wipe the workspace on the web. |
I did that. |
The folder is created by a unit test. So we have to change the checkpointDir setting first and then wipe the workspace. |
@@ -119,7 +119,12 @@ trait TestSuiteBase extends FunSuite with BeforeAndAfter with Logging { | |||
def batchDuration = Seconds(1) | |||
|
|||
// Directory where the checkpoint data will be saved | |||
def checkpointDir = "checkpoint" | |||
lazy val checkpointDir = { | |||
val dir = Files.createTempDir() |
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.
Ideally, delete this explicitly and recursively in the 'after' function. It could fail to be deleted if the JVM crashes later on. Minor though.
Why not just add the checkpoint directory to |
Probably also a good idea, but tests ought to try to behave well -- write to temp dirs, not the source tree, and clean up reliably. I suppose it helps ensure test state isn't accidentally picked up by subsequent runs too. It's not just an issue for RAT and Jenkins, but for devs. For a while tests were not cleaning up a "work" directory, and I ended up with hundreds of thousands of files under it. (That's fixed now.) My IDE was trying to index them. Stuff like that is a minor problem. |
or Jenkins will complain about no Apache header in checkpoint files. tdas rxin Author: Xiangrui Meng <meng@databricks.com> Closes apache#2046 from mengxr/tmp-checkpoint and squashes the following commits: 0d3ec73 [Xiangrui Meng] remove ssc.stop 9797843 [Xiangrui Meng] change checkpointDir to lazy val 89964ab [Xiangrui Meng] use temp folder for checkpoint
or Jenkins will complain about no Apache header in checkpoint files. @tdas @rxin