Skip to main content

Maintenance

Use these guides to manage table history, clean up stored data, run compaction jobs, and tune and monitor workloads. Storage setup and configuration references are also collected here.

Choose a Task​

TaskStart here
Reduce storage usageChoose a cleanup operation
Keep daily versions available for queriesAutomatic tag creation and retention
Recover from an incorrect writeChoose a recovery operation
Validate changes on a separate branchManage Branches
Run compaction separately from writersDedicated Compaction
Investigate slow writes or memory pressureChoose metrics, then see Write Performance
Connect to HDFS or an object storeFilesystems
Look up a table, catalog, or connector optionConfigurations

Clean Up Stored Data​

Choose the operation based on what you want to remove:

  • Expire partitions to remove old partitions from the latest table state. Physical file deletion depends on snapshot expiration.
  • Expire snapshots to limit retained history and remove files that are no longer needed. Review the retention requirements of batch queries and streaming readers before changing the policy.
  • Remove orphan files to clean up files that are no longer referenced. Follow the cleanup guide's age cutoff to account for files being added by active writers.

Tags preserve historical data independently of snapshot expiration. Review tag retention as part of your storage policy. To remove empty directories left after file deletion, see the snapshot.clean-empty-directories option in Expire Snapshots.

Recover Table Data​

Choose a recovery mode, then follow the instructions for a snapshot ID or a tag. The linked guides include the supported engine commands and operation-specific limitations.

Recovery modeEffect on table historyInstructions
RollbackRestore the target state and remove snapshots and tags after the target.Snapshot or tag
Rollback as latestRestore the target state as a new latest snapshot, preserving later snapshots and tags.Snapshot or tag

For a workflow that validates corrected data on a separate branch before updating the main branch, see Manage Branches and Fast Forward.

Browse by Topic​

Data Lifecycle & Versioning​

  • Manage Snapshots: retain or expire table history, roll back, and remove orphan files.
  • Manage Tags: preserve named versions, automate tag retention, and restore tagged data.
  • Manage Branches: create isolated branches, validate changes, and fast-forward the main branch.
  • Manage Partitions: expire partitions and mark partitions ready for downstream consumers.

Compaction & Data Layout​

Performance & Monitoring​

  • Write Performance: tune parallelism, buffering, file formats, and memory usage.
  • Metrics: access metrics through Flink and choose metrics for investigation.

Storage & Configuration​

  • Filesystems: install filesystem dependencies and configure storage access.
  • Configurations: look up table, catalog, connector, and file-format options.