Skip to content

docs(enterprise): document Gen1 file cleanup for the legacy Parquet engine - #7861

Merged
jstirnaman merged 1 commit into
masterfrom
rk/parquet-gen1-cleanup
Oct 8, 2026
Merged

jstirnaman merged 1 commit into
masterfrom
rk/parquet-gen1-cleanup

Conversation

@reidkaufmann

Copy link
Copy Markdown
Contributor

Follows #7853, which notes that the legacy Parquet engine keeps Gen1 files after compaction. This PR documents how to delete them, and fixes two spots that lead readers to expect otherwise.

  • New page Admin > Gen1 file cleanup: running POST /api/v3/configure/gen1_cleanup, which files it deletes and keeps, and how to inspect Gen1 vs. compacted files.
  • compaction-cleanup-wait: says it doesn't apply to Gen1 files.
  • Clustering monitoring query: notes that system.parquet_files lists only Gen1 files.
  • File-index Gen1 note: links to the new page.

Behavior was checked against influxdb_pro v3.12.0 source. Related: influxdata/DAR#766.

Details

Facts checked in source (v3.12.0)

  • Endpoint and defaults: min_age=24h, batch_size=500 (snapshots per request), concurrency=10. It is not in the fine-grained or system permission lists, so it needs an admin token.
  • 202 Accepted with Gen1 cleanup started or Gen1 cleanup already running; one run per node. Completion logs Gen1 cleanup finished or Gen1 cleanup: no eligible files found.
  • Deletes only compacted Gen1 files. It considers only snapshots older than the compactor's latest processed snapshot, so a node with one snapshot deletes nothing. Snapshots newer than min_age are skipped.
  • Compaction never queues Gen1 inputs for deletion, so compaction-cleanup-wait doesn't cover them.
  • system.parquet_files reads the ingest and replica Gen1 file lists. system.compacted_data holds compacted files and errors without a table_name filter.
  • Endpoint added in 3.9.0 (influxdata/influxdb_pro#2396).

Checks

  • lint-codeblocks passes on the changed files.
  • Commit hooks pass, including Vale for each product config.
  • The link checker and a Hugo render weren't run locally (link-checker isn't installed); relying on CI.

Not covered

  • The Enterprise v3 API reference: that spec comes from docs-tooling.

…ngine

What changed:
- Add an admin page for the Gen1 cleanup endpoint
  (POST /api/v3/configure/gen1_cleanup): how to run it, which files it
  deletes and keeps, and how to inspect Gen1 and compacted files.
- Link it from the Gen1 note on the file-index page.
- Clarify that compaction-cleanup-wait doesn't apply to Gen1 files.
- Note that system.parquet_files lists only Gen1 files on the legacy
  Parquet engine.

Why: The file-index note says Gen1 files remain after compaction but not
how to remove them. Customers read compaction-cleanup-wait as Gen1
retention and monitor system.parquet_files expecting compacted files.

Impact: Documentation only.

Verification: Endpoint, defaults, eligibility rules, admin-token
requirement, log messages, and system table behavior checked against
influxdb_pro v3.12.0 source. lint-codeblocks and Vale (enterprise
config) pass on the changed files.
Copilot AI balanced review requested due to automatic review settings October 7, 2026 20:31
@reidkaufmann
reidkaufmann requested a review from a team as a code owner October 7, 2026 20:31
@reidkaufmann
reidkaufmann requested review from jstirnaman and removed request for a team October 7, 2026 20:31
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Vale Style Check Results

Metric Count
Errors 0
Warnings 1
Warnings (1)
File Line Rule Message
content/influxdb3/enterprise/admin/clustering.md 5 InfluxDataDocs.WordList Use 'import' or 'load' instead of 'ingest'.

✅ Check passed

@github-actions github-actions Bot added product:shared Shared content across products product:v3-monolith InfluxDB 3 Core and Enterprise (single-node / clusterable) labels Oct 7, 2026
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

🔗 Link Check Results — Link Check Bot

✅ All links are valid

Metric Value
Files Checked 5
Total Links 2749
Errors 0
Warnings 5
Success Rate 99.454346%
⚠️ 5 warning(s) (do not fail CI)
Source File URL Issue
content/influxdb3/core/reference/config-options/_index.md https://support.influxdata.com/ Network error: SSL certificate not trusted. Use --insecure if site is trusted (e…
content/influxdb3/enterprise/admin/clustering/_index.md https://support.influxdata.com/ Network error: SSL certificate not trusted. Use --insecure if site is trusted (e…
content/influxdb3/enterprise/admin/file-index/_index.md https://support.influxdata.com/ Network error: SSL certificate not trusted. Use --insecure if site is trusted (e…
content/influxdb3/enterprise/admin/gen1-file-cleanup/_index.md https://support.influxdata.com/ Network error: SSL certificate not trusted. Use --insecure if site is trusted (e…
content/influxdb3/enterprise/reference/config-options/_index.md https://support.influxdata.com/ Network error: SSL certificate not trusted. Use --insecure if site is trusted (e…

Full details: workflow run summary and artifact. Last updated: 2026-10-07 20:32:31 UTC

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The shared-content edit needs corresponding consumer-stub updates to support reliable incremental rendering.

1 open finding
What changed in this PR

Documents manual Gen1 cleanup for Enterprise’s legacy Parquet engine, extending #7853’s storage-retention clarification.

Changes:

  • Adds cleanup instructions, eligibility rules, and inspection queries.
  • Clarifies compaction cleanup and monitoring behavior.
  • Links existing file-index guidance to the new procedure.
File Description
content/​shared/​influxdb3-cli/​config-options.md Clarifies that compaction cleanup excludes Gen1 files.
content/​influxdb3/​enterprise/​admin/​gen1-file-cleanup.md Documents cleanup and file inspection.
content/​influxdb3/​enterprise/​admin/​file-index/​_index.md Links to cleanup instructions.
content/​influxdb3/​enterprise/​admin/​clustering.md Clarifies the monitoring table’s Gen1-only scope.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +1898 to +1899
On the legacy Parquet storage engine, compaction doesn't mark Gen1 files for
deletion; see [Gen1 file cleanup](/influxdb3/enterprise/admin/gen1-file-cleanup/).

@jstirnaman jstirnaman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 Thank you!

@jstirnaman
jstirnaman added this pull request to the merge queue Oct 8, 2026
Merged via the queue into master with commit bcb12b8 Oct 8, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:shared Shared content across products product:v3-monolith InfluxDB 3 Core and Enterprise (single-node / clusterable)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants