You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "shuyouZZ (Jira)" <ji...@apache.org> on 2023/10/26 03:22:00 UTC

[jira] [Created] (SPARK-45669) Ensure the continuity of rolling log index

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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org