28a681a7bf
Remove duplicate increment ( #24219 ) ( #24226 )
...
(cherry picked from commit ff3b6d2b8b
)
Co-authored-by: carllin <carl@solana.com >
2022-04-11 17:19:48 -04:00
15acdcc19a
Bump version to v1.10.9 ( #24253 )
2022-04-11 13:30:11 -06:00
a628034eb5
Bump version to v1.10.8
2022-04-09 00:06:32 -06:00
8bce2dd446
Address review comments
...
(cherry picked from commit a058f348a2
)
2022-04-08 19:22:35 -05:00
60020632c1
Unittest for cost tracker after process_and_record_transactions
...
(cherry picked from commit 2ed29771f2
)
2022-04-08 19:22:35 -05:00
864253a85b
Adjustments to cost_tracker updates
...
- don't store pending tx signatures and costs in CostTracker
- apply tx costs to global state immediately again
- go from commit_or_cancel to update_or_remove, where the cost tracker
is either updated with the true costs for successful tx, or the costs
of a retryable tx is removed
- move the function into qos_service and hold the cost tracker lock for
the whole loop
(cherry picked from commit 924b8ea1eb
)
2022-04-08 19:22:35 -05:00
637ac7933b
- Only commit successfully executed transactions' cost to cost_tracker;
...
- In-fly transactions are pended in cost_tracker until being committed
or cancelled;
(cherry picked from commit 9e07272af8
)
2022-04-08 19:22:35 -05:00
5a29e95f71
v1.10: Bump tonic, tonic-build, prost, and etcd-client ( #24157 )
...
* Bump tonic, prost, and etcd-client
* Restore doc ignores
2022-04-08 10:21:53 -06:00
e5623d288e
removes legacy weighted_shuffle and weighted_best methods ( #24125 ) ( #24139 )
...
Older weighted_shuffle is based on a heuristic which results in biased
samples as shown in:
https://github.com/solana-labs/solana/pull/18343
and can be replaced with WeightedShuffle.
Also, as described in:
https://github.com/solana-labs/solana/pull/13919
weighted_best can be replaced with rand::distributions::WeightedIndex,
or WeightdShuffle::first.
(cherry picked from commit db23295e1c
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2022-04-07 00:52:40 +00:00
ad530d73ce
Bump lru crate ( #24151 )
2022-04-06 16:45:27 -06:00
a6ded6a5ed
removes turbine legacy code and already activated features (backport #24080 ) ( #24117 )
2022-04-06 01:12:18 +00:00
c5541efdc2
Set drop callback on first root bank ( #23999 ) ( #24129 )
...
(cherry picked from commit 4ea59d8cb4
)
Co-authored-by: carllin <carl@solana.com >
2022-04-05 20:32:17 +00:00
3f3e1b30d6
removes outdated and flaky test_skip_repair from retransmit-stage ( #24121 ) ( #24126 )
...
test_skip_repair in retransmit-stage is no longer relevant because
following: https://github.com/solana-labs/solana/pull/19233
repair packets are filtered out earlier in window-service and so
retransmit stage does not know if a shred is repaired or not.
Also, following turbine peer shuffle changes:
https://github.com/solana-labs/solana/pull/24080
the test has become flaky since it does not take into account how peers
are shuffled for each shred.
(cherry picked from commit 2282571493
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2022-04-05 19:08:18 +00:00
1b6de0f08d
Bump version to v1.10.7 ( #24105 )
2022-04-04 11:20:53 -05:00
ca1a282a60
demotes WeightedShuffle failures to error metrics ( #24079 ) ( #24088 )
...
Since call-sites are calling unwrap anyways, panicking seems too punitive
for our use cases.
(cherry picked from commit 7cb3b6cbe2
)
Co-authored-by: behzad nouri <behzadnouri@gmail.com >
2022-04-03 18:10:00 +00:00
6048b71640
Revert voting service to use UDP instead of QUIC (backport #24032 ) ( #24052 )
...
* Revert voting service to use UDP instead of QUIC (#24032 )
(cherry picked from commit df4d92f9cf
)
# Conflicts:
# core/src/voting_service.rs
* resolve merge conflicts
Co-authored-by: Pankaj Garg <pankaj@solana.com >
2022-04-01 18:52:27 +00:00
a639282c0f
Bump version to 1.10.6 ( #23969 )
2022-03-28 10:56:01 -05:00
5eb085fcaf
Implement forwarding via TpuConnection ( #23817 ) ( #23936 )
...
(cherry picked from commit 6b85c2104c
)
Co-authored-by: ryleung-solana <91908731+ryleung-solana@users.noreply.github.com >
2022-03-28 16:38:44 +02:00
c66d086db1
fix: thread enforce_ulimit_nofile
config down when opening blockstore ( #23925 ) ( #23958 )
...
(cherry picked from commit f44c8f296f
)
Co-authored-by: Steven Luscher <steveluscher@users.noreply.github.com >
2022-03-26 20:09:49 +00:00
fd49ed1959
Bump version to 1.10.5 ( #23955 )
2022-03-26 11:34:12 -05:00
c0d3cd145e
Optimize TpuConnection and its implementations and refactor connection-cache to not use dyn in order to enable those changes ( #23877 ) ( #23909 )
...
Co-authored-by: ryleung-solana <91908731+ryleung-solana@users.noreply.github.com >
2022-03-25 19:09:26 +01:00
d135e3b839
Use QUIC client in voting service ( #23713 ) ( #23813 )
...
* Use QUIC client in voting service
* guard quic-client usage with a flag
* add measure to time the quic client
* move time measure outside if block
* remove quic vs UDP flag from voting service
(cherry picked from commit 5d03b188c8
)
Co-authored-by: Pankaj Garg <pankaj@solana.com >
2022-03-24 22:03:33 +00:00
71ea05c176
replace nested for_each with flat_map
2022-03-18 16:37:41 -05:00
1c369fb55f
Scan entire UnprocessedPacketBatches buffer to produce stake and locator of each packet
2022-03-18 16:37:41 -05:00
f999eef452
(LedgerStore) Rename BlockstoreAdvancedOptions to LedgerColumnOptions ( #23764 )
...
This PR renames BlockstoreAdvancedOptions to LedgerColumnOptions, as we will
pass-down this struct to LedgerColumn to allow it to perform metric reporting.
2022-03-18 11:13:35 -07:00
56428be629
Not exposing inner cost_table to encapsulating implementation details,
...
making future change easier.
2022-03-18 12:58:43 -05:00
0ed23899e7
directly use compute_budget MAX_UNITS and DEFAULT_UNITS
2022-03-18 08:53:11 -05:00
a4cacf3389
add deterministic default cost
2022-03-18 08:53:11 -05:00
c478fe2047
add timing metrics, some renaming
2022-03-17 19:31:28 -05:00
fd515097d8
leader qos part 2: add stage to find sender stake, set to packet meta
2022-03-17 19:31:28 -05:00
976b138e76
Add tx weighting stage
2022-03-17 19:31:28 -05:00
2f58c9e501
Bump version to 1.10.4 ( #23743 )
2022-03-17 14:02:13 -05:00
3773b753d1
Configure shrink paths during blockstore load
2022-03-15 23:08:07 -07:00
ab373bb1a9
Refactor new_banks_from_ledger() into load and process steps
2022-03-15 23:08:07 -07:00
2da4e3eb6c
Add --no-os-memory-stats-reporting
2022-03-15 17:07:40 -07:00
dbc62f2e28
Use consistent variable naming for DropBankService
2022-03-15 17:07:13 -07:00
d44f3d7216
Remove unhelpful log message
2022-03-15 17:07:13 -07:00
2d3501dff9
make upsert infallible op
2022-03-15 17:05:41 -05:00
62b26f012e
chore: bump reqwest from 0.11.9 to 0.11.10 ( #23671 )
...
* chore: bump reqwest from 0.11.9 to 0.11.10
Bumps [reqwest](https://github.com/seanmonstar/reqwest ) from 0.11.9 to 0.11.10.
- [Release notes](https://github.com/seanmonstar/reqwest/releases )
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md )
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.9...v0.11.10 )
---
updated-dependencies:
- dependency-name: reqwest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* [auto-commit] Update all Cargo lock files
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com >
2022-03-15 12:54:23 -06:00
61cead9b9b
Remove injection of exit signal into cost_update_service
2022-03-15 09:58:56 -05:00
eb73dacd58
harden banking tests
2022-03-15 09:58:08 -05:00
8c8f9694e0
Refactor: Sanitized transaction creation ( #23558 )
...
* Refactor: SanitizedTransaction::try_create optionally computes hash
* Refactor: Add SimpleAddressLoader
2022-03-15 12:02:22 +08:00
102dd68a03
Rename AccountsDb plugins to Geyser plugins ( #23604 )
2022-03-14 19:18:46 -06:00
17cc095d28
Slot warping doesn't need to be in new_banks_from_ledger
2022-03-14 15:29:58 -07:00
2e7ee0f177
Tower loading doesn't need to be in new_banks_from_ledger
2022-03-14 15:29:58 -07:00
390dc24608
Create leader schedule before processing blockstore
2022-03-14 15:29:58 -07:00
543d5d4a5d
Reduce new_banks_from_ledger arguments
2022-03-14 15:29:58 -07:00
115f376465
Factor out bank_forks_utils::load_bank_forks()
2022-03-14 15:29:58 -07:00
c2ce152be8
Inline do_process_blockstore_from_root
2022-03-14 15:29:58 -07:00
5ea6a1e500
code review
2022-03-14 13:14:27 -05:00