Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File name too long #10968

Open
yyil80 opened this issue Nov 21, 2022 · 5 comments
Open

File name too long #10968

yyil80 opened this issue Nov 21, 2022 · 5 comments
Assignees

Comments

@yyil80
Copy link

yyil80 commented Nov 21, 2022

[WARN] [] [DUBBO] Failed to create file store cache. Local file cache will be disabled. Cache file name: /home/aigapp/.dubbo/.metadata.xx-xxxx.zookeeper.prod.2181.dubbo.cache, du
bbo version: 3.1.1, current host: 127.0.0.1, error code: 0-3. This may be caused by inaccessible of cache path, go to https://dubbo.apache.org/faq/0/3 to find instructions.
java.lang.RuntimeException: java.io.IOException: File name too long

Dubbo version 3.1.1

@The-Gamer-01
Copy link

Can you describe in detail how the problem arises?

@AlbumenJ
Copy link
Member

If zk address is too long, the created zk cached filename will be too long too.

@yyil80
Copy link
Author

yyil80 commented Jan 6, 2023

能否详细描述一下问题是如何产生的?

I have found the cause of this problem. If the backup parameter of my zoopeeperAddr url configuration is too long, this problem occurs because a file of this name is created and opened, and an exception is thrown;

My suggestion: metadata cache fileName should be configurable;

My question: What happens if enableFileCache=false?

@AlbumenJ
Copy link
Member

AlbumenJ commented Jan 9, 2023

能否详细描述一下问题是如何产生的?

I have found the cause of this problem. If the backup parameter of my zoopeeperAddr url configuration is too long, this problem occurs because a file of this name is created and opened, and an exception is thrown;

My suggestion: metadata cache fileName should be configurable;

My question: What happens if enableFileCache=false?

When there is a problem with the zookeeper server, the restart of the dubbo process will fail to fetch the address, resulting in failure to start.

@aamingaa
Copy link
Contributor

assign me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

4 participants