pub fn to_state_updates<M: DatabaseKeyMapper + 'static>(
    index: IndexMap<NodeId, TrackedNode>,
    partition_deletions: IndexSet<(NodeId, PartitionNumber)>
) -> StateUpdates