2 suggestions
Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive for their assessments.
Optional improvements
[suggestion] · Cleanup warnings omit the failed step and filesystem error
The same warning covers database destruction and parent-directory removal failures, without reporting the available filesystem error.
Location: src/index/coinstatsindex.cpp:101 (head).
Details and suggested fix
With -coinstatsindex enabled, an extra user-placed file beside an otherwise removable indexes/coinstats/db lets DestroyDB delete the legacy database before fs::remove(old_path, ec) fails because the parent is not empty. Subsequent enabled startups repeat the generic warning, although the legacy index already requires resync after a downgrade. LevelDB also skips unrecognized files inside db and ignores its final directory-removal error. Check the two cleanup steps separately: identify a failed database-destruction step, and include ec.message() when parent-directory removal fails. Keep the current non-recursive behavior so unexpected files remain untouched. No current code creating such extra entries was found, so their occurrence in practice is unconfirmed.
[suggestion] · The compatibility test misses cleanup failure and file preservation
The clean legacy-directory fixture does not exercise the warning branch or protect continued startup and preservation of unexpected files.
Location: test/functional/feature_coinstatsindex_compatibility.py:55 (head).
Details and suggested fix
The test copies an unmodified v28.2 legacy directory and checks the success log, directory removal, and matching gettxoutsetinfo output. A switch to recursive deletion retaining that log, or making only the failure branch fatal, would leave these assertions satisfied. Add another case that copies the legacy directory while the nodes are stopped, places an extra file directly under indexes/coinstats/, and starts with -coinstatsindex. Assert the cleanup warning, preservation of the extra file, and that gettxoutsetinfo('muhash') still matches res0. This exercises the current non-recursive failure behavior without relying on permissions. The docstring allows removing this test after v29 reaches EOL, which limits the coverage's long-term value.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: Name the release note file after the PR number (earlier report)