Skip to content

Bug-98: storeObject Failed Junit Test#99

Merged
doulikecookiedough merged 4 commits into
developfrom
bug-98-storeobj-failedtest
Aug 20, 2024
Merged

Bug-98: storeObject Failed Junit Test#99
doulikecookiedough merged 4 commits into
developfrom
bug-98-storeobj-failedtest

Conversation

@doulikecookiedough

Copy link
Copy Markdown
Contributor

After further investigation, it appears that a bug was introduced when optimizing how the default hash algorithms were calculated.

The junit test did its job and threw a new unexpected exception PidRefsFileExistsException: which is thrown when the pid that has already been accounted for is referencing another cid.

This can be observed where multiple instances of unexpected hash calculations were produced, for example:

RETRIEVED CID: faa2d37dee00163152f1f13492ab8e29a97407f06b253ee9e916add7caae578e
PROVIDED CID: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

This specific junit test should only encounter two types of exceptions:

  • RunTimeException which is thrown when the pid is already being stored (synchronization rejects)
  • HashStoreRefsAlreadyExistException which is thrown when everything is already tagged as expected.

For now, we will roll back the changes specifically made related to setting up of the default message digest objects/hash algorithms to calculate. A new issue will be created when time permitting to refactor/optimize the affected code.

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.

1 participant