cosmos-sdk/baseapp
yihuang 1f91ee2ee9
fix: state listener observe writes at wrong time (#13516)
* fix: state listener observe writes at wrong time

Closes: #13457

Currently state listener is notified when the cache store write, which happens in commit event only, which breaks the current design.
The solution (as discussed in the issue) is to listen state writes on rootmulti store only.

It also changes the file streamer to output single data file for the writes in the whole block, since we can't distinguish writes from different stage of abci events.

It adds new config items for file streamer:
- streamers.file.output-metadata
- streamers.file.stop-node-on-error
- streamers.file.fsync

* synchronous abci call, and format doc

* fix comment

* update file streamer readme and fix typos

* typo

* fix: state listener observe writes at wrong time

Closes: #13457

Currently state listener is notified when the cache store write, which happens in commit event only, which breaks the current design.
The solution (as discussed in the issue) is to listen state writes on rootmulti store only.

It also changes the file streamer to output single data file for the writes in the whole block, since we can't distinguish writes from different stage of abci events.

It adds new config items for file streamer:
- streamers.file.output-metadata
- streamers.file.stop-node-on-error
- streamers.file.fsync

synchronous abci call, and format doc

fix comment

update file streamer readme and fix typos

typo

* improve UX of file streamer, make it immediately usable after enabled

- set default value to write_dir.
- make write_dir based on home directory by default.
- auto-create the directory if not exists.

* get homePage from opts

Co-authored-by: Marko <marbar3778@yahoo.com>
2022-12-02 15:43:21 +01:00
..
testutil feat: ABCI 1.0 baseapp integration (#13453) 2022-11-09 09:50:27 -06:00
abci_test.go refactor: move snapshotstore under store (#14048) 2022-11-29 23:40:14 +00:00
abci_v1_test.go feat: sender mempool impl (#13888) 2022-11-24 00:15:41 +01:00
abci.go fix: state listener observe writes at wrong time (#13516) 2022-12-02 15:43:21 +01:00
baseapp_test.go chore: move pruning to store (#13609) 2022-10-24 14:02:17 +02:00
baseapp.go refactor: move snapshotstore under store (#14048) 2022-11-29 23:40:14 +00:00
block_gas_test.go refactor!: Add context arg to sign mode handler GetSignBytes (#13701) 2022-11-29 18:49:51 +00:00
deliver_tx_test.go refactor: move snapshotstore under store (#14048) 2022-11-29 23:40:14 +00:00
grpcrouter_helpers.go refactor: migrate to cosmos/gogoproto (#13070) 2022-09-08 17:27:48 +00:00
grpcrouter_test.go fix: add gRPC nil/zero check in query (#13352) 2022-09-29 01:20:03 +00:00
grpcrouter.go chore: clean-up deprecated function usage (#14078) 2022-11-30 01:10:50 +01:00
grpcserver.go refactor: migrate to cosmos/gogoproto (#13070) 2022-09-08 17:27:48 +00:00
msg_service_router_test.go refactor!: Add context arg to sign mode handler GetSignBytes (#13701) 2022-11-29 18:49:51 +00:00
msg_service_router.go chore: clean-up deprecated function usage (#14078) 2022-11-30 01:10:50 +01:00
options.go refactor: move snapshotstore under store (#14048) 2022-11-29 23:40:14 +00:00
params_legacy.go feat!: consensus module (#12905) 2022-10-05 18:06:24 +00:00
params.go feat!: consensus module (#12905) 2022-10-05 18:06:24 +00:00
recovery_test.go refactor: Revert middlewares to antehandlers (part 1/2: baseapp) (#11979) 2022-05-20 09:27:27 +00:00
recovery.go refactor: Revert middlewares to antehandlers (part 1/2: baseapp) (#11979) 2022-05-20 09:27:27 +00:00
state.go Merge PR #4748: Write-Through Inter-Block Cache 2019-09-04 13:33:32 -04:00
streaming.go fix: state listener observe writes at wrong time (#13516) 2022-12-02 15:43:21 +01:00
test_helpers.go refactor: Revert middlewares to antehandler (part 2/2: posthandler) (#11985) 2022-05-23 10:32:38 +00:00
util_test.go docs: add docs about x/auth/tx (#14021) 2022-11-27 20:30:23 +00:00