a2l007 commented on code in PR #17976:
URL: https://github.com/apache/druid/pull/17976#discussion_r2072448096
##########
server/src/main/java/org/apache/druid/server/log/FileRequestLogger.java:
##########
@@ -57,27 +57,34 @@ public class FileRequestLogger implements RequestLogger
private final File baseDir;
private final DateTimeFormatter filePattern;
private final Duration durationToRetain;
+ private final Duration rollPeriod;
private final Object lock = new Object();
- private DateTime currentDay;
+ private DateTime currentPeriodStart;
private OutputStreamWriter fileWriter;
public FileRequestLogger(
ObjectMapper objectMapper,
ScheduledExecutorService exec,
File baseDir,
String filePattern,
- Duration durationToRetain
+ Duration durationToRetain,
+ Duration rollPeriod
)
{
this.exec = exec;
this.objectMapper = objectMapper;
this.baseDir = baseDir;
this.filePattern = DateTimeFormat.forPattern(filePattern);
this.durationToRetain = durationToRetain;
+ this.rollPeriod = rollPeriod;
Review Comment:
This is being defaulted in `FileRequestLoggerProvider` before the request
logger object is created.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]