8000 Change status_history_size default from 1000 to 1024, fix #941 by Slach · Pull Request #1602 · Altinity/clickhouse-backup · GitHub
[go: up one dir, main page]

Skip to content

Change status_history_size default from 1000 to 1024, fix #941 - #1602

Closed
Slach wants to merge 1 commit into
masterfrom
status_history_size_1024_941
Closed

Slach wants to merge 1 commit into
masterfrom
status_history_size_1024_941

Conversation

@Slach
@Slach Slach commented Oct 8, 2026
Copy link
Copy Markdown
Collaborator

Fixes #941

The structural part of #941 (map + slice in AsyncStatus, keep only the last N action rows) was already implemented for #1481 in #1482 and released in v2.8.1:

  • AsyncStatus.commands is an ordered slice, rows are resolved by a monotonic id through byId map[int]*ActionRow
  • trimLocked drops the oldest finished rows beyond general.status_history_size (env STATUS_HISTORY_SIZE); in-progress rows and canceled rows whose goroutine has not reached Stop are never dropped

This PR only changes the default from 1000 to 1024 (status.DefaultMaxFinishedRows, config default, ReadMe, testflows default-config snapshot, unit test, ChangeLog).

🤖 Generated with Claude Code

Issue #941 asked to replace AsyncStatus.commands with a map + slice and
keep only the last N actions. That was already done for #1481 (PR #1482):
rows are addressed by monotonic id via byId, finished rows are trimmed to
general.status_history_size. The only remaining change is the default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Slach
Slach commented Oct 8, 2026
Copy link
Copy Markdown
Collaborator Author

Not needed, default 1000 is fine; #941 is already implemented in #1482.

@Slach Slach closed this Oct 8, 2026
@Slach
Slach deleted the status_history_size_1024_941 branch October 8, 2026 05:18
@coveralls
Copy link
Copy Markdown

Coverage Report for CI Build 37731268662

Coverage at 69.61% (no base build to compare)

Details

  • Coverage remained the same as the base build.
  • Patch coverage: 1 of 1 lines across 1 file are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 28253
Covered Lines: 19667
Line Coverage: 69.61%
Coverage Strength: 35158.15 hits per line

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replcace AsyncStatus.commands []ActionRow to combination map + slice to allow store only last XXX action items

2 participants

0