Skip to content

What to do with on-disk index when upgrading nativelink? #1636

Closed
0 of 1 issue completed
Closed
@cormacrelf

Description

@cormacrelf

I was running 0.5.1, upgraded to 0.6.0. Didn't nuke the cache, I figured it might still work. Lots of errors like these:

WARN nativelink_store::dedup_store: Failed to deserialize index in dedup store, key: Digest(DigestInfo("...")),  err: Io(Custom { kind: UnexpectedEof, error: "" })
     at nativelink-store/src/dedup_store.rs:123
     in nativelink_service::ac_server::ac_server_get_action_result
     in nativelink_service::ac_server::get_action_result with request: GetActionResultRequest { instance_name: "main", action_digest: Some(Digest { hash: "2bb32040683458c20496bd2ec036b513718bc00ecb211>
     in nativelink_util::task::http_executor
     in nativelink::services::http_connection with remote_addr:

and

event!(
Level::ERROR,
?new_awaited_action,
?action_key,
"action_info_hash_key_to_awaited_action out of sync, it should have had the unique_key",
);

For the dedup store with a disk index, there is obviously some kind of on-disk storage. Is this meant to be able to survive an upgrade? Or should I generally nuke the storage whenever I do?

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions