Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Remove unprocessed transactions from log notifications #16349

Merged
merged 1 commit into from
Apr 4, 2021

Conversation

jstarry
Copy link
Contributor

@jstarry jstarry commented Apr 4, 2021

Problem

Log subscriptions are sent notifications for non-processing related transaction errors which are not valuable to the client. This commonly includes "AccountInUse" errors because even transactions which don't obtain account locks are being iterated over when sending log notifications. This is causing unexpected error types as reported in this issue: solana-labs/solana-web3.js#1019

Summary of Changes

Only notify log events for transactions that were processed

Fixes #16339

@jstarry jstarry requested a review from mvines April 4, 2021 09:12
@codecov
Copy link

codecov bot commented Apr 4, 2021

Codecov Report

Merging #16349 (235a3c9) into master (c8c89dd) will decrease coverage by 0.0%.
The diff coverage is 100.0%.

@@            Coverage Diff            @@
##           master   #16349     +/-   ##
=========================================
- Coverage    80.1%    80.1%   -0.1%     
=========================================
  Files         411      411             
  Lines      110147   110148      +1     
=========================================
  Hits        88265    88265             
- Misses      21882    21883      +1     

Copy link
Contributor

@mvines mvines left a comment

Choose a reason for hiding this comment

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

lgtm, v1.6 and v1.5 backport?

@jstarry jstarry merged commit 0596cf5 into solana-labs:master Apr 4, 2021
@jstarry jstarry deleted the rpc-filter-errors branch April 4, 2021 15:45
mergify bot pushed a commit that referenced this pull request Apr 4, 2021
mergify bot pushed a commit that referenced this pull request Apr 4, 2021
mvines pushed a commit that referenced this pull request Apr 4, 2021
mergify bot added a commit that referenced this pull request Apr 4, 2021
(cherry picked from commit 0596cf5)

Co-authored-by: Justin Starry <justin@solana.com>
@brooksprumo brooksprumo mentioned this pull request Aug 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rpc: Log subscriptions should only receive notifications from processed transactions
2 participants