[jira] [Created] (FLINK-11107) [state] Avoid memory stateBackend to create arbitrary folders under HA path when no checkpoint path configured

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-11107) [state] Avoid memory stateBackend to create arbitrary folders under HA path when no checkpoint path configured

Shang Yuanchun (Jira)
Yun Tang created FLINK-11107:
--------------------------------

             Summary: [state] Avoid memory stateBackend to create arbitrary folders under HA path when no checkpoint path configured
                 Key: FLINK-11107
                 URL: https://issues.apache.org/jira/browse/FLINK-11107
             Project: Flink
          Issue Type: Bug
          Components: State Backends, Checkpointing
    Affects Versions: 1.7.0, 1.6.2
            Reporter: Yun Tang
            Assignee: Yun Tang
             Fix For: 1.6.3, 1.7.1


Currently, memory state-backend would create a folder named with random UUID under HA directory if no checkpoint path ever configured. (the code logic locates within {{StateBackendLoader#fromApplicationOrConfigOrDefault}}) However, the default memory state-backend would not only be created on JM side, but also on each task manager's side, which means many folders with random UUID would be created under HA directory. It would result in exception like:
{noformat}
The directory item limit of /tmp/flink/ha is exceeded: limit=1048576 items=1048576{noformat}
 If this happens, no new jobs could be submitted only if we do not clean up those directories manually.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)