diff options
author | Tathagata Das <tathagata.das1565@gmail.com> | 2016-03-25 20:07:54 -0700 |
---|---|---|
committer | Tathagata Das <tathagata.das1565@gmail.com> | 2016-03-25 20:07:54 -0700 |
commit | 13945dd83bfa47ebd05181bda5a7c3e412feb5c0 (patch) | |
tree | 2503daf88389f98d6f04057f0ff69105bc27c32b /examples/src | |
parent | 24587ce433aa30f30a5d1ed6566365f24c222a27 (diff) | |
download | spark-13945dd83bfa47ebd05181bda5a7c3e412feb5c0.tar.gz spark-13945dd83bfa47ebd05181bda5a7c3e412feb5c0.tar.bz2 spark-13945dd83bfa47ebd05181bda5a7c3e412feb5c0.zip |
[SPARK-14109][SQL] Fix HDFSMetadataLog to fallback from FileContext to FileSystem API
## What changes were proposed in this pull request?
HDFSMetadataLog uses newer FileContext API to achieve atomic renaming. However, FileContext implementations may not exist for many scheme for which there may be FileSystem implementations. In those cases, rather than failing completely, we should fallback to the FileSystem based implementation, and log warning that there may be file consistency issues in case the log directory is concurrently modified.
In addition I have also added more tests to increase the code coverage.
## How was this patch tested?
Unit test.
Tested on cluster with custom file system.
Author: Tathagata Das <tathagata.das1565@gmail.com>
Closes #11925 from tdas/SPARK-14109.
Diffstat (limited to 'examples/src')
0 files changed, 0 insertions, 0 deletions