zhengchenyu commented on PR #6102: URL: https://github.com/apache/hadoop/pull/6102#issuecomment-1741028712
@virajjasani Thanks for your reply. For CLA before HADOOP-18649: CLA is org.apache.hadoop.yarn.ContainerLogAppender which is extend from FileAppender. In default, yarn.app.container.log.filesize is set to 0, then log4j.appender.CLA.totalLogFileSize is set to 0. So maxEvents is 0, then eventBuffer is null. Then we will append directly. There are no limit. For CLA after HADOOP-18649: CLA is org.apache.log4j.RollingFileAppender. In default, yarn.app.container.log.filesize is set to 0, RollingFileAppender::maxFileSize is set to 0. This configure means that we will roll the log every time. Then will reproduce the problem which is reported by me. For CRLA before HADOOP-18649: CRLA is ContainerRollingLogAppender which is extend from org.apache.log4j.RollingFileAppender. In default, RollingFileAppender::maxFileSize is not set, so use default value 10M. The default value is comming from: https://github.com/apache/logging-log4j1/blob/b7e9154128cd4ae1244c877a6fda8f834a0f2247/src/main/java/org/apache/log4j/RollingFileAppender.java#L50 For CRLA after HADOOP-18649: CRLA is org.apache.log4j.RollingFileAppender. In default, yarn.app.container.log.filesize is set to 0, RollingFileAppender::maxFileSize is set to 0. This configure means that we will roll the log every time. Then will reproduce the problem which is reported by me. -- 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: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org