aboutsummaryrefslogtreecommitdiff
path: root/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/PartitioningUtils.scala
diff options
context:
space:
mode:
authorjerryshao <sshao@hortonworks.com>2017-04-20 16:02:09 -0700
committerMarcelo Vanzin <vanzin@cloudera.com>2017-04-20 16:02:09 -0700
commit592f5c89349f3c5b6ec0531c6514b8f7d95ad8da (patch)
tree11a60e8bf35212ff0980dbe288fb687b71c6bbfd /sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/PartitioningUtils.scala
parent033206355339677812a250b2b64818a261871fd2 (diff)
downloadspark-592f5c89349f3c5b6ec0531c6514b8f7d95ad8da.tar.gz
spark-592f5c89349f3c5b6ec0531c6514b8f7d95ad8da.tar.bz2
spark-592f5c89349f3c5b6ec0531c6514b8f7d95ad8da.zip
[SPARK-20172][CORE] Add file permission check when listing files in FsHistoryProvider
## What changes were proposed in this pull request? In the current Spark's HistoryServer we expected to get `AccessControlException` during listing all the files, but unfortunately it was not worked because we actually doesn't check the access permission and no other calls will throw such exception. What was worse is that this check will be deferred until reading files, which is not necessary and quite verbose, since it will be printed out the exception in every 10 seconds when checking the files. So here with this fix, we actually check the read permission during listing the files, which could avoid unnecessary file read later on and suppress the verbose log. ## How was this patch tested? Add unit test to verify. Author: jerryshao <sshao@hortonworks.com> Closes #17495 from jerryshao/SPARK-20172.
Diffstat (limited to 'sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/PartitioningUtils.scala')
0 files changed, 0 insertions, 0 deletions