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

Replicator download test #3320

Merged
merged 4 commits into from
Mar 19, 2019

Conversation

sakridge
Copy link
Contributor

Problem

Nothing testing that replicator can download ledger and also serve to others. Also, a replicator kind of looks like a validator on gossip, but it can't really respond to RPC requests, or use its TPU ports or do things that fullnodes can.

Summary of Changes

Clear out the TPU/RPC ports for replicators and fill in storage_addr and use it as an interface to query replicator for what ledger segment it has.
Add the test logic to find the replicator on gossip and ask it for the segment it's storing.

Fixes #

@sakridge sakridge force-pushed the replicator-download-test branch from db841e2 to c1054a8 Compare March 15, 2019 18:23
@codecov
Copy link

codecov bot commented Mar 15, 2019

Codecov Report

Merging #3320 into master will increase coverage by 0.1%.
The diff coverage is 87.7%.

@@           Coverage Diff            @@
##           master   #3320     +/-   ##
========================================
+ Coverage    78.7%   78.8%   +0.1%     
========================================
  Files         153     153             
  Lines       22080   22187    +107     
========================================
+ Hits        17388   17497    +109     
+ Misses       4692    4690      -2

@sakridge sakridge marked this pull request as ready for review March 15, 2019 20:51
core/src/cluster_info.rs Outdated Show resolved Hide resolved
@sakridge sakridge force-pushed the replicator-download-test branch 5 times, most recently from 22b7675 to 7e04adb Compare March 19, 2019 02:20
Add optional UdpSocket for storage interface.
Add new_localhost_replicator to create a new replicator local node.
@sakridge sakridge force-pushed the replicator-download-test branch from 7e04adb to bbe935a Compare March 19, 2019 15:08
Add an interface to query the storage slot a
  replicator is holding on storage_addr port.
Fix logic to poll blocktree for all slots
  replicated being filled.
Add test logic to ask replicator what slot it
  is replicating and then download an entry in
  the slot.
@sakridge sakridge force-pushed the replicator-download-test branch from bbe935a to c0bf356 Compare March 19, 2019 17:38
@sakridge sakridge merged commit 682b1b8 into solana-labs:master Mar 19, 2019
@sakridge sakridge deleted the replicator-download-test branch March 19, 2019 20:49
brooksprumo added a commit to brooksprumo/solana that referenced this pull request Oct 28, 2024
ryoqun pushed a commit to ryoqun/solana that referenced this pull request Nov 23, 2024
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.

3 participants