GitHub user gengliangwang opened a pull request: https://github.com/apache/spark/pull/19786
[SPARK-22559][CORE]history server: handle exception on opening corrupted listing.ldb ## What changes were proposed in this pull request? Currently history server v2 failed to start if `listing.ldb` is corrupted. This patch get rid of the corrupted `listing.ldb` and re-create it. The exception handling follows [opening disk store for app](https://github.com/apache/spark/blob/0ffa7c488fa8156e2a1aa282e60b7c36b86d8af8/core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala#L307) ## How was this patch tested? manual test Please review http://spark.apache.org/contributing.html before opening a pull request. You can merge this pull request into a Git repository by running: $ git pull https://github.com/gengliangwang/spark listingException Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/19786.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #19786 ---- commit 054cd7e208c908aa50cc8030b15feee9d2ce71e9 Author: Wang Gengliang <ltn...@gmail.com> Date: 2017-11-20T06:59:40Z history server: handle exception on opening corrupted listing.ldb ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org