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

Exit get_signatures_for_address on first BigTable error #22200

Merged

Conversation

CriesofCarrots
Copy link
Contributor

Problem

#22115 adds a 2nd query to long-term storage. However, if there is an issue with the connection, this could lead the process to wait for two timeouts.

Summary of Changes

Parse BigTable error and queue up 2nd query only on Ok or SignatureNotFound, otherwise return results already found in Blockstore

@CriesofCarrots
Copy link
Contributor Author

@omarkilani , what do you think of this?

Copy link
Contributor

@omarkilani omarkilani left a comment

Choose a reason for hiding this comment

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

lgtm

Bigtable is currently somewhat responsive, and this code is working as expected.

@CriesofCarrots CriesofCarrots marked this pull request as ready for review December 31, 2021 19:37
@codecov
Copy link

codecov bot commented Dec 31, 2021

Codecov Report

Merging #22200 (f52d8ca) into master (95dfcc5) will increase coverage by 0.0%.
The diff coverage is 0.0%.

@@           Coverage Diff           @@
##           master   #22200   +/-   ##
=======================================
  Coverage    81.0%    81.0%           
=======================================
  Files         523      523           
  Lines      146470   146480   +10     
=======================================
+ Hits       118728   118761   +33     
+ Misses      27742    27719   -23     

@CriesofCarrots CriesofCarrots merged commit 0b1b36f into solana-labs:master Dec 31, 2021
mergify bot pushed a commit that referenced this pull request Dec 31, 2021
(cherry picked from commit 0b1b36f)
mergify bot pushed a commit that referenced this pull request Dec 31, 2021
(cherry picked from commit 0b1b36f)
mergify bot added a commit that referenced this pull request Jan 1, 2022
(cherry picked from commit 0b1b36f)

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
mergify bot added a commit that referenced this pull request Jan 1, 2022
(cherry picked from commit 0b1b36f)

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
@brooksprumo brooksprumo mentioned this pull request Jan 5, 2022
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.

2 participants