apache / apache/iotdb

[Bug] `enable_audit_log` configuration not taking effect - always shows false despite correct setup

Offen
#16,706 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
6.4k
Forks
1.2k
Ø Merge
1 T. 23 Std.
Gemergte PRs (30 T.)
115

Beschreibung

### 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!

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, die Einstellung mit dem eigenständigen Docker-Image apache/iotdb zu reproduzieren und /iotdb/conf/iotdb-system.properties, das Startprotokoll und die Laufzeitausgabe von enableAuditLog zu untersuchen. Verfolge, wie enable_audit_log in die Laufzeitkonfiguration geladen wird, und überprüfe anschließend, dass enableAuditLog zu true wird und /iotdb/logs/log_datanode_audit.log Audit-Ereignisse aufzeichnet.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
docker, java
Bereich
databases
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.