Skip to content

refactor(core-p2p): make peer reply errors less verbose#2962

Merged
faustbrian merged 1 commit intodevelopfrom
refactor/core-p2p/less-verbose-error
Sep 24, 2019
Merged

refactor(core-p2p): make peer reply errors less verbose#2962
faustbrian merged 1 commit intodevelopfrom
refactor/core-p2p/less-verbose-error

Conversation

@spkjp
Copy link
Copy Markdown
Contributor

@spkjp spkjp commented Sep 24, 2019

Summary

Don't flood the log with reply schema errors and make it opt-in.

3|ark-relay      | [2019-09-24 02:20:27.075] INFO : Broadcasting block 3,709,770 to 129 peers
3|ark-relay      | [2019-09-24 02:20:28.182] ERROR: Got unexpected reply from http://134.209.94.193:4002/p2p.peer.getStatus: data.config should have required property 'plugins'
3|ark-relay      | [2019-09-24 02:20:28.554] ERROR: Got unexpected reply from http://134.209.94.193:4002/p2p.peer.getStatus: data.config should have required property 'plugins'
3|ark-relay      | [2019-09-24 02:20:28.869] ERROR: Got unexpected reply from http://134.209.94.193:4002/p2p.peer.getStatus: data.config should have required property 'plugins'
3|ark-relay      | [2019-09-24 02:20:34.417] INFO : 134.209.94.193 has downloaded 400 blocks from height 3,642,063
3|ark-relay      | [2019-09-24 02:20:34.505] ERROR: Got unexpected reply from http://134.209.94.193:4002/p2p.peer.getStatus: data.config should have required property 'plugins'
3|ark-relay      | [2019-09-24 02:20:35.256] INFO : Received new block at height 3,709,771 with 0 transactions from 108.46.169.235

Checklist

  • Documentation (if necessary)
  • Tests (if necessary)
  • Ready to be merged

@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 24, 2019

Codecov Report

Merging #2962 into develop will decrease coverage by 0.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           develop   #2962      +/-   ##
==========================================
- Coverage    68.31%   68.3%   -0.02%     
==========================================
  Files          405     405              
  Lines         9821    9821              
  Branches       461     461              
==========================================
- Hits          6709    6708       -1     
- Misses        3076    3077       +1     
  Partials        36      36
Impacted Files Coverage Δ
packages/core-p2p/src/peer-communicator.ts 60.41% <0%> (-1.05%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 451aa16...54b1726. Read the comment docs.

@faustbrian faustbrian merged commit d5e9eaa into develop Sep 24, 2019
@ghost ghost deleted the refactor/core-p2p/less-verbose-error branch September 24, 2019 03:31
vasild added a commit that referenced this pull request Sep 24, 2019
…move-throwIfCannotBeApplied

* ArkEcosystem/core/develop:
  chore: drop node 11 support (#2965)
  test(e2e): No need to run as root the chmod command when modifying own's files (#2958)
  refactor(crypto): change maximum recipients of multipayment via milestone (#2961)
  ci: split functional job into 1 job per type (#2963)
  refactor(core-p2p): make peer reply errors less verbose (#2962)
  fix(core-state): index recipient wallets during bootstrap (#2947)
vasild added a commit that referenced this pull request Sep 24, 2019
…l-range-selection

* ArkEcosystem/core/develop:
  chore: drop node 11 support (#2965)
  test(e2e): No need to run as root the chmod command when modifying own's files (#2958)
  refactor(crypto): change maximum recipients of multipayment via milestone (#2961)
  ci: split functional job into 1 job per type (#2963)
  refactor(core-p2p): make peer reply errors less verbose (#2962)
  fix(core-state): index recipient wallets during bootstrap (#2947)
  Tell git to ignore vim's temporary files (#2957)
  ci: force exit tests if there are hanging promises
  ci: use different test coverage directories for each type (#2956)
vasild added a commit that referenced this pull request Sep 27, 2019
…ts-nonce

* ArkEcosystem/core/develop:
  refactor(core-transaction-pool): don't accept expired v1 transactions (#2948)
  fix(core-snapshots): remove bogus skipRoundRows (#2973)
  feat(core-api): endpoints for locks/businesses/bridgechains (#2940)
  fix(core-blockchain): round deletion during rollback (#2970)
  fix: range selection in pool's getTransactions() (#2952)
  feat: expose `isValidPeer` via ajv format rule (#2960)
  chore: remove trailing whitespace (#2971)
  fix(core-transactions): update wallet nonce when applying v1 transaction (#2959)
  fix(core-blockchain): do not reset `noBlockCounter` when `downloadBlocks` succeeds (#2968)
  refactor(pool): remove unnecessary check from validateTransactions() (#2951)
  ci: temporarily disable pull_request.synchronize event (#2966)
  refactor: strengthen a nonce check in performGenericWalletChecks() (#2949)
  ci: setup github action workflow for e2e tests (#2964)
  chore: drop node 11 support (#2965)
  test(e2e): No need to run as root the chmod command when modifying own's files (#2958)
  refactor(crypto): change maximum recipients of multipayment via milestone (#2961)
  ci: split functional job into 1 job per type (#2963)
  refactor(core-p2p): make peer reply errors less verbose (#2962)
  fix(core-state): index recipient wallets during bootstrap (#2947)
  Tell git to ignore vim's temporary files (#2957)
  ci: force exit tests if there are hanging promises
  ci: use different test coverage directories for each type (#2956)
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.

2 participants