dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

File name too long

Open yyil80 opened this issue 2 years ago • 5 comments

[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

yyil80 avatar Nov 21 '22 03:11 yyil80

Can you describe in detail how the problem arises?

The-Gamer-01 avatar Dec 16 '22 09:12 The-Gamer-01

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

AlbumenJ avatar Dec 17 '22 07:12 AlbumenJ

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

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?

yyil80 avatar Jan 06 '23 06:01 yyil80

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

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.

AlbumenJ avatar Jan 09 '23 11:01 AlbumenJ

assign me :)

aamingaa avatar Jan 19 '23 02:01 aamingaa