Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-33790

Reduce the rpc call of getFileStatus in SingleFileEventLogFileReader

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 3.0.1
    • 3.0.2, 3.1.1, 3.2.0
    • Spark Core
    • None

    Description

      FsHistoryProvider#checkForLogs already has FileStatus when constructing SingleFileEventLogFileReader, and there is no need to get the FileStatus again when SingleFileEventLogFileReader#fileSizeForLastIndex.
      This can reduce a lot of rpc calls and improve the speed of the history server.

      Attachments

        Activity

          People

            dzcxzl dzcxzl
            dzcxzl dzcxzl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: