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

fix: Unlock replicator lock before returning error #1369

Merged
merged 1 commit into from
Apr 18, 2023

Conversation

AndrewSisley
Copy link
Contributor

Relevant issue(s)

Resolves #1367

Description

Unlocks a lock that is held before returning an error.

Unlikely to be tripping up any of our tests, but is undesirable and should be fixed.

@AndrewSisley AndrewSisley added bug Something isn't working area/p2p Related to the p2p networking system action/no-benchmark Skips the action that runs the benchmark. labels Apr 18, 2023
@AndrewSisley AndrewSisley added this to the DefraDB v0.5.1 milestone Apr 18, 2023
@AndrewSisley AndrewSisley requested a review from a team April 18, 2023 12:54
@AndrewSisley AndrewSisley self-assigned this Apr 18, 2023
@codecov
Copy link

codecov bot commented Apr 18, 2023

Codecov Report

Merging #1369 (c5d355f) into develop (eb3a0a8) will decrease coverage by 0.10%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1369      +/-   ##
===========================================
- Coverage    70.65%   70.55%   -0.10%     
===========================================
  Files          184      184              
  Lines        17835    17836       +1     
===========================================
- Hits         12601    12585      -16     
- Misses        4282     4294      +12     
- Partials       952      957       +5     
Impacted Files Coverage Δ
net/peer.go 50.88% <0.00%> (-0.09%) ⬇️

... and 6 files with indirect coverage changes

Copy link
Collaborator

@fredcarle fredcarle left a comment

Choose a reason for hiding this comment

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

Nice catch 👍

@AndrewSisley AndrewSisley merged commit 4642c1a into develop Apr 18, 2023
12 checks passed
@AndrewSisley AndrewSisley deleted the sisley/fix/I1367-unlock-lock branch April 18, 2023 16:38
shahzadlone pushed a commit to shahzadlone/defradb that referenced this pull request Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action/no-benchmark Skips the action that runs the benchmark. area/p2p Related to the p2p networking system bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error in peer.setReplicator can cause indefinite-lock
2 participants