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

Do not expect to retrieve local org during definition handling #1398

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

awrichar
Copy link
Contributor

@awrichar awrichar commented Sep 5, 2023

Only the org DID is needed for this check - no need to actually look up the org from the database. At this point the message author has already been verified, so a database lookup here is just extra unnecessary processing (and can lead to infinite retries if it fails).

Fixes #1397

@awrichar awrichar requested a review from a team as a code owner September 5, 2023 18:47
Copy link
Contributor

@peterbroadhurst peterbroadhurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@awrichar awrichar force-pushed the late-join branch 2 times, most recently from 40dfdfb to 9a93519 Compare September 5, 2023 18:51
@codecov-commenter
Copy link

codecov-commenter commented Sep 5, 2023

Codecov Report

Merging #1398 (9e33ff2) into main (9f29850) will increase coverage by 0.00%.
Report is 3 commits behind head on main.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1398   +/-   ##
=======================================
  Coverage   99.97%   99.98%           
=======================================
  Files         315      315           
  Lines       22072    22078    +6     
=======================================
+ Hits        22066    22074    +8     
+ Misses          3        2    -1     
+ Partials        3        2    -1     
Files Changed Coverage Δ
internal/contracts/manager.go 100.00% <100.00%> (ø)
internal/definitions/handler_contracts.go 100.00% <100.00%> (ø)
internal/definitions/handler_tokenpool.go 100.00% <100.00%> (ø)
internal/identity/identitymanager.go 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

Only the org DID is needed for this check - no need to actually look up the
org from the database. At this point the message author has already been
verified, so a database lookup here is just extra unnecessary processing
(and can lead to infinite retries if it fails).

Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
@awrichar awrichar merged commit 5418e40 into hyperledger:main Sep 5, 2023
14 checks passed
@awrichar awrichar deleted the late-join branch September 5, 2023 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Late joiners to multiparty networks may hang processing earlier definitions
3 participants