ekuiper
ekuiper copied to clipboard
About filepath (linux/win)
Environment:
- eKuiper version (e.g.
1.3.0): 1.14.x - Hardware configuration (e.g.
lscpu): amd 16 core - OS (e.g.
cat /etc/os-release): win11 mingw64 - Others:
What happened and what you expected to happen: 源码中很多文件路径拼接的地方使用了path.join, 而非filepath.join, 从而导致移植到win平台时路径产生异常. 不过作者好像暂时也没有要移植到for win的意思, 我自己尝试简单的修改了相关部分. 是可以在windows下正常运行的.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?: linux版本使用的log库在配置文件滚动时, 如果文件滚动数量太小, 如果滚动文件名产生循环, 还会导致stream.log指向一个不存在的日志文件, 从而导致日志无法正确写入.
Hi @khan-lau Thanks for reporting the problem. If you already have fixes, we encourage you to open a PR so that we can merge to the codebase. Thanks.