[ 
https://issues.apache.org/jira/browse/FLINK-32796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17758706#comment-17758706
 ] 

Ferenc Csaky commented on FLINK-32796:
--------------------------------------

I think the documentation can be improved, I plan to file a PR with suggestions 
tomorrow.

Another point worth to note IMO (plan to add this to the doc as well) is that, 
the current FILE catalog store impl expects the given catalog store path folder 
to exist and it does not create it on its own, hence if a non-existing (or 
inaccessible) path is passed, SQL client will fail to start and the SQL gateway 
will return an arror for session create. Reason for that is the external FS 
support, so the file catalog store can be placed to any supported distributed 
FS (hdfs, s3, etc.) and in those cases creating the catalog store root might 
fail.

Maybe it makes sense to not fail in all cases, but at least try to create the 
dirs to the given path if it does not exists at the catalog store open and only 
fail if it cannot be done. I added the exernal file system support, so I can 
open a PR with this improvement tomorrow.

> Release Testing: Verify FLIP-295: Support lazy initialization of catalogs and 
> persistence of catalog configurations
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-32796
>                 URL: https://issues.apache.org/jira/browse/FLINK-32796
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Tests
>    Affects Versions: 1.18.0
>            Reporter: Qingsheng Ren
>            Assignee: Ferenc Csaky
>            Priority: Major
>             Fix For: 1.18.0
>
>         Attachments: check_after_restart.png, create_catalog.png
>
>




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

Reply via email to