shuyouZZ created SPARK-45669:
--------------------------------

             Summary: Ensure the continuity of rolling log index
                 Key: SPARK-45669
                 URL: https://issues.apache.org/jira/browse/SPARK-45669
             Project: Spark
          Issue Type: Task
          Components: Spark Core
    Affects Versions: 3.5.0
            Reporter: shuyouZZ


Current the log file index will increment before running `initLogFile()`. When 
running `rollEventlogFile()`, the index will increment first, then create new 
log file to init event log writer.
 
If the log file creation fails, `initLogFile()` will throw an exception and 
stop running the method. The log file index will still increment next time 
`rollEventLogFile()` is called,
which will cause the file index to become discontinuous. EventLogFileReader can 
not read the event log files normally.
 
Therefore, we need to update the logic here to ensure the continuity of rolling 
log index 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to