-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-19599][SS]Clean up HDFSMetadataLog #16932
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
| // So throw an exception to tell the user this is not a valid behavior. | ||
| throw new ConcurrentModificationException( | ||
| s"Multiple HDFSMetadataLog are using $path", e) | ||
| case e: FileNotFoundException => |
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.
Removed it because we always create a temp file so it won't happen.
|
Test build #72890 has finished for PR 16932 at commit
|
|
retest this please |
|
Test build #72899 has finished for PR 16932 at commit
|
|
retest this please |
|
Test build #72898 has finished for PR 16932 at commit
|
|
Test build #72906 has finished for PR 16932 at commit
|
|
LGTM! |
|
Test build #72954 has finished for PR 16932 at commit
|
|
Thanks! Merging to master. |
## What changes were proposed in this pull request? SPARK-19464 removed support for Hadoop 2.5 and earlier, so we can do some cleanup for HDFSMetadataLog. This PR includes the following changes: - ~~Remove the workaround codes for HADOOP-10622.~~ Unfortunately, there is another issue [HADOOP-14084](https://issues.apache.org/jira/browse/HADOOP-14084) that prevents us from removing the workaround codes. - Remove unnecessary `writer: (T, OutputStream) => Unit` and just call `serialize` directly. - Remove catching FileNotFoundException. ## How was this patch tested? Jenkins Author: Shixiong Zhu <shixiong@databricks.com> Closes #16932 from zsxwing/metadata-cleanup. (cherry picked from commit 21b4ba2) Signed-off-by: Shixiong Zhu <shixiong@databricks.com>
|
Since this change is minor and safe, I also cherry-picked to 2.1 to avoid merge conflicts in future. |
|
The final code change doesn't assume Hadoop 2.6 right? |
Right. |
## What changes were proposed in this pull request? SPARK-19464 removed support for Hadoop 2.5 and earlier, so we can do some cleanup for HDFSMetadataLog. This PR includes the following changes: - ~~Remove the workaround codes for HADOOP-10622.~~ Unfortunately, there is another issue [HADOOP-14084](https://issues.apache.org/jira/browse/HADOOP-14084) that prevents us from removing the workaround codes. - Remove unnecessary `writer: (T, OutputStream) => Unit` and just call `serialize` directly. - Remove catching FileNotFoundException. ## How was this patch tested? Jenkins Author: Shixiong Zhu <shixiong@databricks.com> Closes apache#16932 from zsxwing/metadata-cleanup.
What changes were proposed in this pull request?
SPARK-19464 removed support for Hadoop 2.5 and earlier, so we can do some cleanup for HDFSMetadataLog.
This PR includes the following changes:
Remove the workaround codes for HADOOP-10622.Unfortunately, there is another issue HADOOP-14084 that prevents us from removing the workaround codes.writer: (T, OutputStream) => Unitand just callserializedirectly.How was this patch tested?
Jenkins