dubbo
dubbo copied to clipboard
File name too long
[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
Can you describe in detail how the problem arises?
If zk address is too long, the created zk cached filename will be too long too.
能否详细描述一下问题是如何产生的?
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?
能否详细描述一下问题是如何产生的?
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.
assign me :)