Repository navigation
[Bugfix] 修复 start.out 重启截断并提供日志轮转配置(#1267) - #1268
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更目的
#1267 反馈 Linux 安装包的 Java 标准输出和标准错误持续追加到
logs/start.out,日志量较大时会占满磁盘。原脚本还在每次启动时异步清空文件,丢失上一次启动记录。变更
conf/start-out.logrotate和启用说明。服务账号可每 5 分钟检查一次,按天或超过 100 MiB 时归档。轮转时清理超过 7 天的文件,最多保留 14 份压缩归档。已有实例可直接启用,无需为轮转重启 JVM。3.4.2。把现有打包流水线使用的已退役upload-artifact@v3更新到 v4,并在构建前运行启动回归测试。验证
bash tests/start-out.sh验证历史保留、两次启动标记与 stdout/stderr 顺序、日志目标不可写时退出。bash -n bin/startup.sh、git diff --check及发行包配置路径、版本核对通过。