Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug-98: storeObject Failed Junit Test #99

Merged
merged 4 commits into from
Aug 20, 2024

Conversation

doulikecookiedough
Copy link
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.

@doulikecookiedough doulikecookiedough merged commit e54e48f into develop Aug 20, 2024
1 check passed
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