[Bug] `enable_audit_log` configuration not taking effect - always shows false despite correct setup
- Dominant language
- Java
- Stars
- 6.4k
- Forks
- 1.2k
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 115
Description
### Search before asking
- [x] I searched in the [issues](https://github.com/apache/iotdb/issues) and found nothing similar.
### Version
- **Versions Tested**: 2.0.5, 2.0.4, 2.0.3, 1.3.4-1 (standalone mode)
- **Deployment**: Docker (apache/iotdb:*-standalone images)
### Describe the bug and provide the minimal reproduce step
1. Set configuration via environment variable or in `iotdb-system.properties`:
```yaml
environment:
- enable_audit_log=true
```
2. Check runtime configuration:
```bash
docker logs iotdb-service 2>&1 | grep -i "enableAuditLog"
```
### What did you expect to see?
**Expected:**
```
enableAuditLog=true;
```
### What did you see instead?
**Actual:**
```
enableAuditLog=false;
```
### Anything else?
1. Configuration file contains `enable_audit_log=true` correctly
2. Startup log shows: `append enable_audit_log=true /iotdb/conf/iotdb-system.properties`
3. But runtime always shows: `enableAuditLog=false;`
4. Audit log file `/iotdb/logs/log_datanode_audit.log` is created but remains empty
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
Contributor guide
Research direction
Start by reproducing the setting with the apache/iotdb standalone Docker image and inspect /iotdb/conf/iotdb-system.properties, the startup log, and the enableAuditLog runtime output. Trace how enable_audit_log is loaded into the runtime configuration, then verify that enableAuditLog becomes true and /iotdb/logs/log_datanode_audit.log records audit events.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, java
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100