Skip to content

cp: Fixed seg_paged_rw to use correct config parameter for page size#19687

Closed
sudeepdino008 wants to merge 4 commits intomainfrom
cp_seg_paged_rw
Closed

cp: Fixed seg_paged_rw to use correct config parameter for page size#19687
sudeepdino008 wants to merge 4 commits intomainfrom
cp_seg_paged_rw

Conversation

@sudeepdino008
Copy link
Copy Markdown
Member

Two domains can be affected by this bug -- rcache + commitment.

How to fix/regen rcache domain:

./build/bin/integration stage_custom_trace --domain=rcache --reset --chain chiado --datadir /erigon-data/chiado
./build/bin/erigon seg rm-state --datadir /erigon-data/chiado --domain=rcache —step 32-40
./build/bin/integration stage_custom_trace --domain=rcache --chain chiado --datadir /erigon-data/chiado

)

Two domains can be affected by this bug -- rcache + commitment.

How to fix/regen rcache domain:
```
./build/bin/integration stage_custom_trace --domain=rcache --reset --chain chiado --datadir /erigon-data/chiado
./build/bin/erigon seg rm-state --datadir /erigon-data/chiado --domain=rcache —step 32-40
./build/bin/integration stage_custom_trace --domain=rcache --chain chiado --datadir /erigon-data/chiado
```
1. dataWriter: use f.GetValuesOnCompressedPage() instead of h.HistoryValuesOnCompressedPage
   - Ensures writer uses same page size as compressor config (written to file header)
   - Reader uses decompressor.CompressedPageValuesCount() which reads from file header
   - This fixes mismatch where writer used 0 (no paging) but reader expected 64 (paging)

2. All NewPagedReader/GetFromPage: change compression flag from true to false
   - Production config uses Compression: seg.CompressNone with ValuesOnCompressedPage: 64
   - Pages are used for grouping values but NOT zstd-compressed
   - If compression is enabled in future, files would be regenerated anyway
@sudeepdino008 sudeepdino008 marked this pull request as draft March 6, 2026 16:56
@sudeepdino008
Copy link
Copy Markdown
Member Author

seems like not needed

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.

2 participants