From b4232bdc7c7eb96bfaeaa02777aa6f6a0f57d7d5 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Mon, 8 Mar 2021 17:00:40 +0200 Subject: [PATCH] state: use pickle v4 (#5571) Kudos @skshetry for the discovery, research and fix. Fixes #5563 --- dvc/state.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dvc/state.py b/dvc/state.py index 3d7b4a307..219c4ca7d 100644 --- a/dvc/state.py +++ b/dvc/state.py @@ -76,7 +76,10 @@ class State(StateBase): # pylint: disable=too-many-instance-attributes if not tmp_dir: return - config = {"eviction_policy": "least-recently-used"} + config = { + "eviction_policy": "least-recently-used", + "disk_pickle_protocol": 4, + } self.links = Cache(directory=os.path.join(tmp_dir, "links"), **config) self.md5s = Cache(directory=os.path.join(tmp_dir, "md5s"), **config)