Skip to content

[bug] 0000000.log in data/ grows continuously under idle, larger than other data files #6359

@joewiz

Description

@joewiz

[This issue was filed in response to a request by @duncdrum during PR #6145 testing.]

Symptom

While testing PR #6145 (Jetty 11→12 upgrade + WebSocket eval), @duncdrum observed a continuously-growing log file at exist/data/0000000.log:

  • File grows without apparent bound, even when the database is idle
  • After a few minutes of idle time it's already larger than anything else in the data/ folder
  • File is locked while running, so contents could not be inspected from outside the JVM

Context

This is not caused by the Jetty 12 upgrade or the WebSocket changes — it is independent of those, surfaced incidentally during #6145 testing. The file is in data/, not in the eXist log directory configured by log4j2, so it sits outside the normal log-management path.

Hypothesis

The filename pattern (0000000.log — leading zeros, no rolling-suffix) is consistent with the BFile / journal log style used by eXist's storage layer (collection cache journal, broker pool, or transaction log). Likely candidates to investigate:

  • Transaction log without bounded rotation
  • Cache journal accumulating without checkpoint
  • A debug-level writer left enabled in the storage layer

Requested

  • Identify which subsystem owns 0000000.log
  • Confirm whether the unbounded growth is a regression or pre-existing behavior
  • Decide on appropriate rotation / size cap / opt-out

Reference

PR #6145 review thread: #6145

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugissue confirmed as buginvestigateissues being looked at

    Type

    No fields configured for Bug.

    Projects

    Status
    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions