gaozhangmin opened a new pull request, #15449:
URL: https://github.com/apache/pulsar/pull/15449
### Motivation
1、same as #14725, `BOOKIE_PID_DIR` in `bkenv.sh` took no effect.
2、If We set `BOOKIE_LOG_DIR` and `PULSAR_LOG_DIR` rather than default value
`PULSAR_HOME/logs`,
the JVM GC log file should also output to log dir we set.
```
[0.002s][error][logging] Error opening log file
'logs/pulsar_bookie_gc_36230.log': No such file or directory
[0.002s][error][logging] Initialization of output
'file=logs/pulsar_bookie_gc_%p.log' using options 'filecount=10,filesize=20M'
failed.
Invalid -Xlog option
'-Xlog:gc*:logs/pulsar_bookie_gc_%p.log:time,uptime,level,tags:filecount=10,filesize=20M',
see error log for details.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
```
### Modifications
1、If we use command `bookie`, `BOOKIE_PID_DIR` passed to `PULSR_PID_DIR`
instead of `PULSR_PID_DIR` by default.
2、In env file, use `$PULSAR_LOG_DIR/pulsar_bookie_gc_%p.log` instead of
`logs/logs/pulsar_bookie_gc_%p.log`
### Documentation
Check the box below or label this PR directly.
Need to update docs?
- [ ] `doc-required`
(Your PR needs to update docs and you will update later)
- [ ] `no-need-doc`
(Please explain why)
- [ ] `doc`
(Your PR contains doc changes)
- [ ] `doc-added`
(Docs have been already added)
--
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]