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: should exit with error code when setup failed #2197

Merged

Conversation

yangby-cryptape
Copy link
Collaborator

Issue: if the config was malformed and an error was thrown in setup_app, the process wouldn't exit.

@doitian
Copy link
Member

doitian commented Jul 31, 2020

bors r=quake,doitian

bors bot added a commit that referenced this pull request Jul 31, 2020
2169: small tx-pool refactoring  r=quake,doitian a=zhangsoledad

proposal changes:
* rename ContextualTransactionVerifier -> TimeRelativeTransactionVerifier
* split NonContextualTransactionVerifier from TransactionVerifier
* check syntactic correctness first before 
* refactory tx-pool rejection error
* re-broadcast when duplicated tx submit

2197: fix: should exit with error code when setup failed r=quake,doitian a=yangby-cryptape

Issue: if the config was malformed and an error was thrown in `setup_app`, the process wouldn't exit.

2198: chore: several minor changes about thread and runtime r=quake,driftluo a=yangby-cryptape

- Simplify dependencies of `ckb-async-runtime`.
  - Use `::std::sync::Barrier` instead of `crossbeam-channel`.
- Let method `ckb-async-runtime::new_runtime` more general.
  - Accept name prefix for threads.
  - Accept `tokio::runtime::Builder` as an optional parameter, so we can set options for the runtime.
- After we upgrade `tokio` from 0.1 to 0.2, the thread name of `tokio` runtime threads has a redundant suffix "-".
  - [`tokio-0.1.x::runtime::Builder::name_prefix(...)`](https://docs.rs/tokio/0.1.22/tokio/runtime/struct.Builder.html#method.name_prefix)
  - [`tokio-0.2.x::runtime::Builder::thread_name(...)`](https://docs.rs/tokio/0.2.22/tokio/runtime/struct.Builder.html#method.thread_name)
- Use a default thread name in logs instead of an empty string.
  Without color, a log record with empty thread name is a bit hard to parse.
- Give name to rayon threads to improve the debuggability slightly.

Co-authored-by: zhangsoledad <787953403@qq.com>
Co-authored-by: Boyu Yang <yangby@cryptape.com>
@bors
Copy link
Contributor

bors bot commented Jul 31, 2020

Build failed (retrying...):

  • continuous-integration/travis-ci/push

@bors
Copy link
Contributor

bors bot commented Jul 31, 2020

Build succeeded:

  • continuous-integration/travis-ci/push

@bors bors bot merged commit c8da160 into nervosnetwork:develop Jul 31, 2020
@yangby-cryptape yangby-cryptape deleted the pr/fix-exit-when-setup-failed branch September 11, 2020 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants