prasanthj commented on a change in pull request #1858: URL: https://github.com/apache/hive/pull/1858#discussion_r558482661
########## File path: llap-server/src/main/resources/llap-daemon-log4j2.properties ########## @@ -81,23 +81,21 @@ appender.query-routing.type = Routing appender.query-routing.name = query-routing appender.query-routing.routes.type = Routes appender.query-routing.routes.pattern = $${ctx:queryId} -#Purge polciy for query-based Routing Appender -appender.query-routing.purgePolicy.type = LlapRoutingAppenderPurgePolicy -# Note: Do not change this name without changing the corresponding entry in LlapConstants -appender.query-routing.purgePolicy.name = llapLogPurgerQueryRouting +#Purge policy for query-based Routing Appender +appender.query-routing.purgePolicy.type = IdlePurgePolicy +appender.query-routing.purgePolicy.timeToLive = 5 Review comment: Question: When does this timer start? after the log file is closed or after every writes? If "idle" is triggered after closing the file I think it is ok. But if it is triggered after the last write then 5 second is probably very low as even if llap is stuck in gc pause it could trigger a file close. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org