HomeSoftware Heritage

storage: Identify and provide the collision hashes in exception

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

storage: Identify and provide the collision hashes in exception

This matches, what's done in other storage backends. There is no consistency
for now though, storage backends provides as HashCollision exception parameters
the content information as:

  • cassandra: (algo: str, hash_id: bytes, Content as cassandra Row)
  • in_memory: (algo: str, hash_id: bytes, Content as Tuple[str, bytes]
  • pgstorage: algo: Optional[str]

Opening this diff to discuss how to properly land this.

Details

Provenance
ardumontAuthored on Mar 6 2020, 1:58 PM
ardumontPushed on Mar 10 2020, 10:54 AM
Differential Revision
D2783: storage(s): Identify and provide the collision hash(es) in HashCollision exception
Build Status
Buildable 11011
Build 16577: test-and-buildJenkins

Commit No Longer Exists

This commit no longer exists in the repository.