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: double close #13400

Merged
merged 7 commits into from
Sep 27, 2022
Merged

fix: double close #13400

merged 7 commits into from
Sep 27, 2022

Conversation

mmsqe
Copy link
Contributor

@mmsqe mmsqe commented Sep 27, 2022

Description

Closes: #13373


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

@codecov
Copy link

codecov bot commented Sep 27, 2022

Codecov Report

Merging #13400 (2d7b4d5) into main (684ee62) will increase coverage by 0.62%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #13400      +/-   ##
==========================================
+ Coverage   54.40%   55.03%   +0.62%     
==========================================
  Files         645      680      +35     
  Lines       54925    57835    +2910     
==========================================
+ Hits        29881    31827    +1946     
- Misses      22645    23342     +697     
- Partials     2399     2666     +267     
Impacted Files Coverage Δ
snapshots/stream.go 52.72% <ø> (+3.57%) ⬆️
x/distribution/simulation/operations.go 80.64% <0.00%> (-9.68%) ⬇️
orm/encoding/ormkv/index_key.go 62.82% <0.00%> (ø)
orm/encoding/ormfield/int64.go 100.00% <0.00%> (ø)
orm/encoding/ormfield/string.go 86.04% <0.00%> (ø)
orm/model/ormdb/json.go 66.66% <0.00%> (ø)
orm/encoding/ormfield/uint32.go 73.77% <0.00%> (ø)
orm/model/ormtable/batch.go 69.56% <0.00%> (ø)
orm/encoding/ormfield/duration.go 76.31% <0.00%> (ø)
orm/encoding/ormfield/timestamp.go 76.31% <0.00%> (ø)
... and 27 more

Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

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

Pre-approving. Thank you! I'll rebase #13373 when this is merged then. Better indeed to split the upgrade and this fix.

CHANGELOG.md Outdated
@@ -1609,6 +1609,7 @@ sure you are aware of any relevant breaking changes.
* (client/keys) [#5091](https://github.com/cosmos/cosmos-sdk/issues/5091) `keys parse` does not honor client app's configuration.
* (x/bank) [#6674](https://github.com/cosmos/cosmos-sdk/pull/6674) Create account if recipient does not exist on handing `MsgMultiSend`.
* (x/auth) [#6287](https://github.com/cosmos/cosmos-sdk/pull/6287) Fix nonce stuck when sending multiple transactions from an account in a same block.
* (snapshot) [#13400](https://github.com/cosmos/cosmos-sdk/pull/13400) Fix snapshot checksum issue in golang 1.19.
Copy link
Member

Choose a reason for hiding this comment

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

Can you move the changelog under unreleased?

@julienrbrt julienrbrt marked this pull request as ready for review September 27, 2022 10:18
@julienrbrt julienrbrt requested a review from a team as a code owner September 27, 2022 10:18
Copy link
Collaborator

@odeke-em odeke-em left a comment

Choose a reason for hiding this comment

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

LGTM, thank you @mmsqe! Indeed invoking protoWriter.Close() invokes .Close() on the underlying writer.

@alexanderbez alexanderbez enabled auto-merge (squash) September 27, 2022 15:16
@alexanderbez alexanderbez merged commit dcb0c9c into cosmos:main Sep 27, 2022
Wryhder pushed a commit to Wryhder/cosmos-sdk that referenced this pull request Oct 26, 2022
ryanchristo pushed a commit to regen-network/cosmos-sdk that referenced this pull request Dec 15, 2022
@julienrbrt
Copy link
Member

@tac0turtle, as discussed in Slack, then we'll need to backport this one in v0.45 and v0.46 along with the bump and the CometBFT migration.

julienrbrt pushed a commit that referenced this pull request Feb 24, 2023
mhofman pushed a commit to agoric-labs/cosmos-sdk that referenced this pull request Feb 24, 2023
(cherry picked from commit dcb0c9c)
@julienrbrt julienrbrt mentioned this pull request Mar 4, 2023
19 tasks
mhofman pushed a commit to agoric-labs/cosmos-sdk that referenced this pull request Mar 8, 2023
(cherry picked from commit dcb0c9c)
mhofman pushed a commit to agoric-labs/cosmos-sdk that referenced this pull request Mar 14, 2023
(cherry picked from commit dcb0c9c)
mhofman pushed a commit to agoric-labs/cosmos-sdk that referenced this pull request Mar 23, 2023
(cherry picked from commit dcb0c9c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

go 1.19 causes different checksums in TestMultistoreSnapshot_Checksum
4 participants