zhengchenyu commented on PR #6102:
URL: https://github.com/apache/hadoop/pull/6102#issuecomment-1741690367
@ayushtkn
Thanks for you reply! I reproduce the problem of
'testThreadDumpOnTaskTimeout' in my laptop. Here we can see the log dir:
```
(base) zhengchenyu@zhengchenyudeMacBook-Pro hadoop % ls -l
/Users/zhengchenyu/work/git/zhengchenyu/hadoop/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/target/test-dir/org.apache.hadoop.mapreduce.v2.TestMRJobs/yarn-902198130/org.apache.hadoop.mapreduce.v2.TestMRJobs-logDir-nm-1_0/application_1696053632795_0001/container_1696053632795_0001_01_000001
total 112
drwx--x--- 10 zhengchenyu staff 320 9 30 14:01 ./
drwx--x--- 4 zhengchenyu staff 128 9 30 14:00 ../
-rw-r--r-- 1 zhengchenyu staff 3657 9 30 14:00 directory.info
-rw-r----- 1 zhengchenyu staff 39286 9 30 14:00 launch_container.sh
-rw-r--r-- 1 zhengchenyu staff 0 9 30 14:00 prelaunch.err
-rw-r--r-- 1 zhengchenyu staff 100 9 30 14:00 prelaunch.out
-rw-r--r-- 1 zhengchenyu staff 1787 9 30 14:01 stderr
-rw-r--r-- 1 zhengchenyu staff 0 9 30 14:00 stdout
-rw-r--r-- 1 zhengchenyu staff 0 9 30 14:01 syslog
-rw-r--r-- 1 zhengchenyu staff 297 9 30 14:01 syslog.1
(base) zhengchenyu@zhengchenyudeMacBook-Pro hadoop % cat
/Users/zhengchenyu/work/git/zhengchenyu/hadoop/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/target/test-dir/org.apache.hadoop.mapreduce.v2.TestMRJobs/yarn-902198130/org.apache.hadoop.mapreduce.v2.TestMRJobs-logDir-nm-1_0/application_1696053632795_0001/container_1696053632795_0001_01_000001/syslog
(base) zhengchenyu@zhengchenyudeMacBook-Pro hadoop % cat
/Users/zhengchenyu/work/git/zhengchenyu/hadoop/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/target/test-dir/org.apache.hadoop.mapreduce.v2.TestMRJobs/yarn-902198130/org.apache.hadoop.mapreduce.v2.TestMRJobs-logDir-nm-1_0/application_1696053632795_0001/container_1696053632795_0001_01_000001/syslog.1
2023-09-30 14:01:22,345 INFO [Thread-69]
org.eclipse.jetty.server.handler.ContextHandler: Stopped
o.e.j.s.ServletContextHandler@2dc995f4{static,/static,file:///Users/zhengchenyu/work/git/zhengchenyu/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/target/classes/webapps/static/,STOPPED}
```
We can see this is just the problem which I describe the problem in this PR.
MaxSize is 0, MaxBackup is 1. So we will always roll back the log, and show the
latest log forever.
This PR indeed solve this problem.
--
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]