Commit Graph

18096 Commits

Author SHA1 Message Date
Greg Fitzgerald
da423b6cf0 Hoist read lock 2018-09-07 13:18:19 -06:00
Greg Fitzgerald
d5f60b68e4 Hoist window write lock 2018-09-07 13:18:19 -06:00
Greg Fitzgerald
78b3a8f7f9 Hoist repair_window() branches
This probably would have been done if repair_window() was unit-tested.
2018-09-07 13:18:19 -06:00
Greg Fitzgerald
d77699c126 Do the easy check first
All functions above operate on immutable values, so this shouldn't
change functionality, but no repair_window() tests to be certain.hI
2018-09-07 13:18:19 -06:00
Greg Fitzgerald
09ba0dae15 Remove redundant clone() 2018-09-07 13:18:19 -06:00
Greg Fitzgerald
a5c7575207 Rewrite find_next_missing, call it clear_slots 2018-09-07 13:18:19 -06:00
Greg Fitzgerald
50f040530b Remove redundant cast 2018-09-07 13:18:19 -06:00
Greg Fitzgerald
7f99c90539 Simplify using early return and Result::ok() 2018-09-07 13:18:19 -06:00
Greg Fitzgerald
d8564b725c Don't reference window to get each slot 2018-09-07 13:18:19 -06:00
Greg Fitzgerald
e4de25442a Hoist write lock
It needed to be passed the lock before, because it contained a
branch where one side didn't require locking. Now that that
defensive programming was hoisted, we can hoist the write lock
as well, leaving a simpler function for unit testing.
2018-09-07 13:18:19 -06:00
Greg Fitzgerald
3b2ea8fd40 Hoist untested branch in window
If there were unit tests for this function, the author would have
written it this way to make their own life easier.
2018-09-07 13:18:19 -06:00
Michael Vines
9a1832ed61 Bump ping timeout 2018-09-07 12:01:43 -07:00
Michael Vines
9e45f1f5e2 Doc fixup 2018-09-07 12:01:43 -07:00
Michael Vines
ee682d5bc3 Move wallet-sanity.sh out of multinode-demo/ 2018-09-07 12:01:43 -07:00
Michael Vines
05decc863f Make set -x more buildkite friendly 2018-09-07 12:01:43 -07:00
Michael Vines
506a81e8cc Assume -y 2018-09-07 12:01:43 -07:00
Michael Vines
dcb30a8489 Delete leader node first 2018-09-07 12:01:43 -07:00
Michael Vines
a2631e89f6 Use consistent style 2018-09-07 12:01:43 -07:00
Michael Vines
ab208ddb77 Clean up arg handling 2018-09-07 12:01:43 -07:00
Michael Vines
09a48d773a Run bench-tps in a tmux 2018-09-07 12:01:43 -07:00
Michael Vines
88298bf321 Add -n option 2018-09-07 12:01:43 -07:00
Michael Vines
d252f7f687 Revert "Default to 10 validators"
This reverts commit ed5fbaef06.
2018-09-07 12:01:43 -07:00
Michael Vines
533ebc17f2 Install multilog automatically on a CI machine 2018-09-07 11:56:23 -07:00
Michael Vines
f4947236dc Keep cargo-target-cache size under 6GB-ish 2018-09-07 11:45:27 -07:00
Michael Vines
e088833b81 s/create/start/ 2018-09-06 21:07:11 -07:00
Michael Vines
53e16f68d9 Improve error handling 2018-09-06 20:57:05 -07:00
Michael Vines
ed5fbaef06 Default to 10 validators 2018-09-06 20:46:49 -07:00
Michael Vines
b1bacf12a6 Add some log sections 2018-09-06 20:38:11 -07:00
Michael Vines
66ff602659 Rewrite ci/testnet-{deploy,sanity}.sh in terms of net/ primitives 2018-09-06 19:54:39 -07:00
Michael Vines
e175c9dea9 Remove ip address hardcode. Fixes #959 2018-09-06 19:54:39 -07:00
Michael Vines
5a57d9b5d9 de-y 2018-09-06 19:54:39 -07:00
Michael Vines
03e87e4169 Add more metrics 2018-09-06 19:54:39 -07:00
Michael Vines
abfff66d53 Retry ssh a couple times before giving up 2018-09-06 19:54:39 -07:00
Michael Vines
31dee553d5 Split start/version reporting 2018-09-06 19:54:39 -07:00
Michael Vines
9ca6a2d25b Configure boot disk size 2018-09-06 19:54:39 -07:00
Michael Vines
a3178c3bc7 Remove unused name tag 2018-09-06 19:54:39 -07:00
Michael Vines
aa07bdfbaa Optionally suppress delete confirmation 2018-09-06 19:54:39 -07:00
Michael Vines
eaef9be710 Clarify -f 2018-09-06 19:54:39 -07:00
Michael Vines
cae345b416 Allow - in prefix 2018-09-06 19:54:39 -07:00
Michael Vines
acb1171422 Add -e option 2018-09-06 19:54:39 -07:00
Greg Fitzgerald
52d8f293b6 Add links to citations
And fix hyphens in quote.
2018-09-06 20:41:05 -06:00
Greg Fitzgerald
636eb8d058 Add Leslie Lamport quote to README 2018-09-06 20:41:05 -06:00
Greg Fitzgerald
0fa27f65bb Use the default Pubkey formatter instead of debug_id() 2018-09-06 16:31:47 -06:00
sakridge
8f94e3f7ae Buffer tokens when switching directions to prevent errors (#1126)
Even if transactions are dropped, accounts will have buffer
of tokens. Should reduce or eliminate AccountNotFound errors seen in the
leader while bench-tps is running.
2018-09-06 14:20:01 -07:00
Pankaj Garg
05460eec0d Open multiple sockets for transaction UDP port (#1128)
* Reuse UDP port and open multiple sockets for transaction address

* Fixed failing crdt tests

* Add tests for reusing UDP ports

* Address review comments

* Updated bench-streamer to use multiple receive sockets

* Fix minimum number of recv sockets for bench-streamer

* Address review comments

Fixes #1132

* Moved bind_to function to nat.rs
2018-09-06 14:13:40 -07:00
Michael Vines
072d0b67e4 Send deploy metrics to the testnet-specific database 2018-09-06 08:30:03 -07:00
Rob Walker
fdc48d521c use USER instead of whoami (#1134)
* use USER instead of whoami

make gcloud_FigureRemoteUsername robust against unsolicited output
   (that I get on login ;) )

validate --prefix argument

* Update gcloud.sh
2018-09-07 00:18:05 +09:00
Michael Vines
6560b0e2cc s/whoami/id -un/ 2018-09-05 14:26:21 -07:00
Michael Vines
ec38dba209 GCE leader nodes can now be provisioned with a static IP address 2018-09-05 14:26:21 -07:00
sakridge
d9e4bce6ad Add drop stats to bench-tps (#1127)
See how many transactions made it through
2018-09-05 11:58:41 -07:00