cosmos-sdk/baseapp
mergify[bot] 7a03a18c37
fix!: remove grpc query routing through tendermint (backport #10045) (#10269)
* fix!: remove grpc query routing through tendermint (#10045)

<!--
The default pull request template is for types feat, fix, or refactor.
For other templates, add one of the following parameters to the url:
- template=docs.md
- template=other.md
-->

## Description

Revert routing queries through tendermint.

The reason this change was made is because of this error:
```
fatal error: concurrent map read and map write
```

The person who identified this error submitted these steps to reproduce
```
User sends a query with grpc
Tendermint Commit new blocks and tries to Commit IAVL (which causing IAVL versions map to change)
At the same time query tries to read from the same map (iavl.(*MutableTree).VersionExists) to check if requested version is exists
Node exits with fatal error: concurrent map read and map write
```

With the recent changes to IAVL submitted by terra (cc @YunSuk-Yeo) the reason for why we need to route through tendermint is no longer present. We should revert it when 0.17.1 of IAVL is cut, which will be later today.

---

### 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](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] added `!` to the type prefix if API or client breaking change
- [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting))
- [ ] provided a link to the relevant issue or specification
- [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#testing)
- [ ] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [ ] 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](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) 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)

(cherry picked from commit 80918462a1)

# Conflicts:
#	CHANGELOG.md

* fix conflicts

* revert

Co-authored-by: Marko <marbar3778@yahoo.com>
2021-10-04 19:24:16 +02:00
..
abci.go fix: set header hash every block (#9552) 2021-06-21 13:24:34 +00:00
abci_test.go baseapp, client: reject gRPC connections with out-of-range/nefarious x-cosmos-block-height values (#7663) 2020-11-03 18:35:22 +00:00
baseapp.go feat: return trace value from baseapp (#9578) 2021-06-24 10:51:30 +00:00
baseapp_test.go fix: set header hash every block (#9552) 2021-06-21 13:24:34 +00:00
grpcrouter.go fix!: remove grpc query routing through tendermint (backport #10045) (#10269) 2021-10-04 19:24:16 +02:00
grpcrouter_helpers.go Throw an error on duplicate registration (#7729) 2020-10-29 15:32:47 +00:00
grpcrouter_test.go Rename GRPCRouter (#8079) 2020-12-04 15:06:50 +00:00
grpcserver.go fix!: remove grpc query routing through tendermint (backport #10045) (#10269) 2021-10-04 19:24:16 +02:00
msg_service_router.go router: fix handler name (#9281) 2021-05-07 12:37:55 +02:00
msg_service_router_test.go Remove ServiceMsgs from ADR-031 (#9139) 2021-04-30 11:00:47 +00:00
options.go x/upgrade: protocol version tracking (#8897) 2021-04-02 07:11:58 -07:00
params.go update error message and add tests (#8166) 2020-12-14 15:56:10 +01:00
params_test.go update error message and add tests (#8166) 2020-12-14 15:56:10 +01:00
queryrouter.go x/ibc: alter id requirements (#6227) 2020-05-15 17:24:31 +00:00
queryrouter_test.go Merge PR #5421: Refactor Error Handling 2019-12-27 12:57:54 -05:00
recovery.go Baseapp recovery middleware (#6053) 2020-06-05 16:48:18 +00:00
recovery_test.go Baseapp recovery middleware (#6053) 2020-06-05 16:48:18 +00:00
router.go module: pass route by value (#6404) 2020-06-11 15:37:23 +00:00
router_test.go Concept PR simplify Module (#6231) 2020-06-10 18:48:16 +00:00
state.go Merge PR #4748: Write-Through Inter-Block Cache 2019-09-04 13:33:32 -04:00
test_helpers.go Handle nil *Any in UnpackAny and add panic handler for tx decoding (#7594) 2020-10-19 18:04:44 +00:00