Brooks
aa8d7de2d1
Uses impl_crds_entry! for SnapshotHashes ( #31032 )
2023-04-04 14:44:05 -04:00
Alexander Meißner
911489d373
Feature - Stop truncating strings in syscalls ( #31030 )
...
* Adds the feature gate stop_truncating_strings_in_syscalls.
* Removes the truncation of everything after the first NULL byte in translate_string_and_do().
2023-04-04 19:33:53 +02:00
Jeff Washington (jwash)
aa3e0b9c20
disk index: add stat: disk_index_failed_resizes ( #31039 )
2023-04-04 09:39:06 -07:00
Jeff Washington (jwash)
514816a31f
disk index: move key enum to bitvec ( #31026 )
2023-04-04 08:21:29 -07:00
joeaba
80b25726e1
update metrics status scripts ( #31037 )
...
* update metrics status scripts
* add exit condition
2023-04-04 09:03:57 -05:00
Jeff Washington (jwash)
b0540ff5ad
disk index: add `Capacity` ( #31031 )
...
* disk index: add `Capacity`
* pr feedback
2023-04-04 06:57:09 -07:00
Jeff Washington (jwash)
bc343a431c
disk index: set_anticipated_count to optimally grow disk buckets at startup ( #31033 )
...
* disk index: set_anticipated_count to optimally grow disk buckets at startup
* remove atomic
2023-04-03 20:28:50 -07:00
Tyera
3442f184f7
Remove unneeded `clippy::new_ret_no_self` allows ( #31035 )
...
Remove unneeded allows
2023-04-03 20:35:20 -06:00
Brooks
e8ea722061
Uses AccountsHashes type for AccountsHashes CrdsData variant ( #31003 )
2023-04-03 16:42:21 -04:00
Jeff Washington (jwash)
05f2a01a80
disk index: refactor OccupiedEnumTag ( #31028 )
2023-04-03 13:12:06 -07:00
Proph3t
ab8d3066a5
Improve poh.rs readability ( #30298 )
...
* chore: factor out variable hashes per tick to a constant
* chore: add units to `elapsed` in `compute_hashes_per_tick`
2023-04-03 12:12:41 -07:00
Jeff Washington (jwash)
f289a0726b
disk index: refactoring get/get_mut fns ( #31025 )
2023-04-03 11:40:49 -07:00
Jeff Washington (jwash)
7edef94088
disk index: remove Option on read_value ( #31023 )
2023-04-03 11:36:58 -07:00
Jeff Washington (jwash)
ef6b6793dd
disk bucket: add trait fn copying_entry ( #31024 )
2023-04-03 11:35:15 -07:00
Alexander Meißner
a0c7fde90e
Cleanup - mock InvokeContext ( #31007 )
...
* Turns with_mock_invoke_context() into a macro.
* Removes prepare_mock_invoke_context().
* Replaces InvokeContext::new_mock() with with_mock_invoke_context().
* Removes InvokeContext::new_mock().
* Removes Cow from InvokeContext::sysvar_cache.
* Removes override parameters from mock_process_instruction().
* cargo fmt
2023-04-03 17:23:24 +02:00
Jeff Washington (jwash)
9219a16c42
disk bucket: new_map takes bytes ( #31020 )
2023-04-03 06:57:06 -07:00
Jeff Washington (jwash)
8051aea88e
disk index: store single slot list in index entry ( #31002 )
2023-04-03 06:51:59 -07:00
Jeff Washington (jwash)
07f4789257
fix assert ( #31012 )
2023-04-03 06:40:54 -07:00
behzad nouri
3cb22458f8
generalizes sample-size in quic::ConnectionTable::prune_random ( #31011 )
...
Even if there are many connections with stake less than the
threshold_stake, prune_random might still reject if both randomly
sampled connections have stake bigger than the threshold. A bigger
sample-size will make this less likely (at the cost of more
computations):
https://github.com/solana-labs/solana/blob/2cbd5d6c9/streamer/src/nonblocking/quic.rs#L958-L985
In order to benchmark for an optimal sample-size, the commit generalizes
the sample-size and makes it configurable.
2023-04-03 13:33:12 +00:00
Dmitri Makarov
8c860e9894
Bump platform-tools version to v1.37 ( #31017 )
2023-04-01 12:08:03 -04:00
Dmitri Makarov
2cbd5d6c9b
Output all trace frames instead of last one from rbpf-cli ( #31005 )
2023-03-31 12:52:49 -07:00
Jeff Biseda
0e2c6c8989
ammend clarifying comment for duplicate instance detection ( #31008 )
2023-03-31 12:50:04 -07:00
Jeff Washington (jwash)
9600643860
reduce contention on startup index generation ( #31006 )
2023-03-31 12:46:42 -07:00
Jeff Washington (jwash)
fc2bcdffe2
fix up refcounts on disk bucket test ( #31001 )
2023-03-31 12:37:21 -07:00
behzad nouri
8a96b91515
simplifies quic::ConnectionTable::prune_oldest ( #30995 )
2023-03-31 18:24:37 +00:00
Jeff Washington (jwash)
a2797ebfa9
disk index: use bits in ref count to store occupied ( #31004 )
2023-03-31 10:50:55 -07:00
Pankaj Garg
a2f3a219d8
SBF test that runs with stable bank and genesis to produce deterministic hash ( #30945 )
...
* SBF test that runs with stable bank and genesis to produce deterministic hash
* fix warning
* ignore the test
2023-03-31 10:13:11 -07:00
Jeff Washington (jwash)
db5cdbedae
disk index remove dead code ( #30999 )
2023-03-31 09:08:16 -07:00
behzad nouri
ff9a42a354
uses Duration type instead of untyped ..._ms: u64 ( #30971 )
2023-03-31 15:42:49 +00:00
Jeff Washington (jwash)
3f6c33d7e2
disk index: break ref_count u64 into reserved bits ( #30997 )
2023-03-31 06:51:00 -07:00
joeaba
24f81beb6e
fix condition to exclude the metrics servers ( #31000 )
2023-03-31 08:25:26 -05:00
joeaba
eedb92a6c0
refactor container status check ( #30998 )
...
* refactor container status check
* remove blank line at EOF
* add pagerduty integration
Co-authored-by: axleiro <83293196+axleiro@users.noreply.github.com>
* fix discord webhook reference
* remove webhook references
---------
Co-authored-by: axleiro <83293196+axleiro@users.noreply.github.com>
2023-03-30 22:35:21 -05:00
Illia Bobyr
a1149ecafe
make_slot_entries(): Use unique hashes ( #30627 )
2023-03-30 19:36:30 -07:00
Jeff Biseda
5ada25b4e7
add clarifying comment for duplicate instance detection ( #30895 )
2023-03-30 17:13:41 -07:00
Jeff Washington (jwash)
32780353c7
disk index: move fn data_loc to MultipleSlots ( #30993 )
...
disk index: move fn `data_loc` to `MultipleSlots`
2023-03-30 16:23:57 -07:00
Brooks
399b7ba722
Removes unnecessary Sized bounds in bucket map ( #30990 )
2023-03-30 16:34:59 -04:00
Jeff Washington (jwash)
89f7d4ab9a
Move `data_bucket_ix()` method to `MultipleSlots` ( #30992 )
...
move data_bucket_ix to MultipleSlots
2023-03-30 13:20:10 -07:00
Jeff Washington (jwash)
b5afcbb72f
disk index: move num_slots() to MultipleSlots ( #30991 )
2023-03-30 12:39:15 -07:00
Jeff Washington (jwash)
2672637395
disk index: move fns to MultipleSlots ( #30989 )
2023-03-30 12:00:43 -07:00
Jeff Washington (jwash)
2cafd641fe
disk index: introduce MultipleSlots ( #30988 )
...
* disk index: introduce MultipleSlots
* pr feedback
2023-03-30 11:27:45 -07:00
Pankaj Garg
bc44ac73db
Return error early if program is a tombstone ( #30940 )
2023-03-30 11:16:01 -07:00
Brennan
b35e83376a
Minimize lock on blacklist nodes ( #30987 )
2023-03-30 11:08:43 -07:00
ryleung-solana
721d8cb0ac
Add logging of the number of chunks handled by the quic server ( #30954 )
2023-03-31 01:51:32 +08:00
Brooks
eb47e44c6b
disk bucket: refactor storage get/get_mut fns ( #30985 )
2023-03-30 12:38:35 -04:00
Brennan
7804d9aa92
Eliminate in-out parameter for gossip shutdown function ( #30986 )
2023-03-30 09:25:25 -07:00
Jeff Washington (jwash)
5ae3288a0b
disk index IndexEntry gets <T> ( #30984 )
...
* disk index IndexEntry gets <T>
* remove unused phantom
2023-03-30 09:23:51 -07:00
steviez
cc8e531a5d
Enforce a minimum of 1 on full and incremental snapshot retention ( #30968 )
2023-03-30 10:16:36 -05:00
Jeff Washington (jwash)
e6ca734ac4
disk index: include T on a few structs ( #30983 )
2023-03-30 07:44:50 -07:00
blackghost1987
9f9d6f8a89
Relax `Sized` bound for `Signers` in `Transaction` and `Client` ( #30568 )
...
* relax Sized bound for Signers in Transaction and Client
* also relax Sized bounds in client, runtime, thin-client and tpu-client
* add tests for using non-sized transaction signers
* fix macro for thin_client vs ?Sized
* move tests to transactions, add Sized relaxation to mut macro
* fix clippy warning
* get rid of unnecessary imports
2023-03-30 13:12:48 +00:00
Jeff Washington (jwash)
38e054f4a6
disk bucket: get mut right on get_mut_cell_slice ( #30972 )
2023-03-30 05:19:29 -07:00