Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: support dump for external objects #4794

Merged
merged 1 commit into from
Mar 18, 2025
Merged

fix: support dump for external objects #4794

merged 1 commit into from
Mar 18, 2025

Conversation

romange
Copy link
Collaborator

@romange romange commented Mar 18, 2025

Before: the code crashed on check-fail if a dump of the external string was requested.
This PR fixes it.

We call SerializerBase::DumpObject also in CmdSerializer::SerializeRestore,
and there we also do not handle the external strings, which will be fixed
in the future.

Signed-off-by: Roman Gershman [email protected]

Before: the code crashed on check-fail if a dump of the external string was requested.
This PR fixes it.

We call SerializerBase::DumpObject also in CmdSerializer::SerializeRestore,
and there we also do not handle the external strings, which will be fixed
in the future.

Signed-off-by: Roman Gershman <[email protected]>
CompactObj co(future.Get());
SerializerBase::DumpObject(co, &sink);
} else {
SerializerBase::DumpObject(it->second, &sink);
Copy link
Collaborator

@adiholden adiholden Mar 18, 2025

Choose a reason for hiding this comment

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

What is this cool thingy I dont remember this...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it is very cool, actually. When we offload an object we may still keep it in-memory so if we hit it later, we can warm it up without hitting disk by moving it from the cool storage. Cool storage is just a FIFO queue of items and if we become low on memory we start discarding the oldest ones, making the values fully external.

@romange romange enabled auto-merge (squash) March 18, 2025 10:26
@romange romange merged commit a86de10 into main Mar 18, 2025
10 checks passed
@romange romange deleted the FixDump branch March 18, 2025 11:03
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