jetty/jetty.project

Review RolloverFileOutputStream locking

Open

#5,092 创建于 2020年7月29日

在 GitHub 查看
 (6 评论) (0 反应) (0 负责人)Java (3,701 star) (1,913 fork)batch import
Help WantedLow PriorityPinned

描述

Spawned by #5083.

Jetty version 9.4.x

Description RolloverFileOutputStream locking should be improved/removed.

Currently it locks on a class lock for no reasons, since __rollover is only ever written in the constructor (and thus could be final).

There should be some synchronization between the writes and the scheduled task (so that the file can be swapped without losing log lines), but the class locks seem unnecessary.

贡献者指南