Skip to content

Improve DataColumnIdentifiers cache#188

Closed
zilm13 wants to merge 2 commits intoNashatyrev:dasfrom
zilm13:use-el-reconstruction
Closed

Improve DataColumnIdentifiers cache#188
zilm13 wants to merge 2 commits intoNashatyrev:dasfrom
zilm13:use-el-reconstruction

Conversation

@zilm13
Copy link
Copy Markdown
Collaborator

@zilm13 zilm13 commented Feb 11, 2025

When recovering DataColumnSidecars from EL our nodes usually end up saving sidecars 2 times each, one when received from gossip and other from recovery. Moreover the order could be different at any slot.
This PR addresses this issue


private void invalidateSlotCache(final UInt64 slot) {
slotCaches.remove(slot);
delegateDb.getColumnIdentifiers(slot).thenApply(Function.identity()),
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

You just need to change param type to:

        final SafeFuture<? extends Iterable<DataColumnSlotAndIdentifier>> dbResponseFuture,

@zilm13
Copy link
Copy Markdown
Collaborator Author

zilm13 commented May 9, 2025

closed in favor of Consensys#9409

@zilm13 zilm13 closed this May 9, 2025
@zilm13 zilm13 deleted the use-el-reconstruction branch May 9, 2025 20:04
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