Commit graph

393 commits

Author SHA1 Message Date
Samir Patel
5ef218977f
Merge branch 'master' into lattice-fix 2021-06-04 10:16:46 -05:00
nagamocha3000
a904d9e68e Delete ids allocated for index if any present 2021-06-04 14:34:48 +03:00
Samir Patel
883fa9ac0b replace sleep with after in select 2021-06-01 21:24:08 -05:00
Samir Patel
15ef157779 remove comment 2021-06-01 20:50:55 -05:00
Samir Patel
2e08b15620 remove lastupdate log to console 2021-06-01 20:48:44 -05:00
Samir Patel
041ae01da1 poll places in usage calculation to check for closing 2021-06-01 20:46:44 -05:00
Samir Patel
a9079815b2 remove prints 2021-06-01 14:45:52 -05:00
Samir Patel
6a8bf3acd6 stops calculation on server close 2021-06-01 14:34:51 -05:00
Samir Patel
660c6d10ca rename locks and remove prints 2021-06-01 10:47:10 -05:00
Samir Patel
017d012d51 change lock order 2021-06-01 10:47:10 -05:00
Samir Patel
20b721ad9d add wait group 2021-06-01 10:47:10 -05:00
Samir Patel
81413c4f0a Remove recalculation on new index 2021-06-01 10:47:10 -05:00
Samir Patel
a5ae6c15fc add locks 2021-06-01 10:47:10 -05:00
Samir Patel
fcdefe8bb6 add ability to reset cache 2021-06-01 10:47:10 -05:00
Samir Patel
a7620012fa adjust locking 2021-06-01 10:47:10 -05:00
Samir Patel
4b7e0e9194 move where cache updates lastUpdated val 2021-06-01 10:47:10 -05:00
Samir Patel
abcd90b60a remove print statements 2021-06-01 10:47:10 -05:00
Samir Patel
53b0e98bb1 add while loop to wait for holder to populate 2021-06-01 10:47:09 -05:00
Samir Patel
5cbf828588 adjust timing 2021-06-01 10:47:09 -05:00
Samir Patel
8824dddc3a add debug statements 2021-06-01 10:47:09 -05:00
Samir Patel
a0ba9327f7 play with timing 2021-06-01 10:47:09 -05:00
Samir Patel
dbdd3c4998 see if this is the only test failing 2021-06-01 10:47:09 -05:00
Samir Patel
fd58fe1a7d test stuff 2021-06-01 10:47:09 -05:00
Samir Patel
63300db1bd try test with usage always blocking on calc 2021-06-01 10:47:09 -05:00
Samir Patel
108da005b7 test stuff 2021-06-01 10:47:09 -05:00
Samir Patel
7799d7c680 Add sleep to wait for holder to load 2021-06-01 10:47:09 -05:00
Samir Patel
f6d7d1af39 move requestNodes() out of refresh loop 2021-06-01 10:47:09 -05:00
Samir Patel
0b083da126 debugging test 2021-06-01 10:47:09 -05:00
Samir Patel
1e5df36fb7 change to not calculate node usage periodically 2021-06-01 10:47:09 -05:00
Samir Patel
1385cf61eb attempt to address missing node uri issue 2021-06-01 10:47:09 -05:00
Samir Patel
21e5cda7e0 Add lock to node usage 2021-06-01 10:47:09 -05:00
Samir Patel
14533d88a1 add read lock 2021-06-01 10:47:09 -05:00
Samir Patel
7d56414557 change err response to info messages 2021-06-01 10:47:09 -05:00
Samir Patel
42067237f7 simplify if statement in calcUsage() 2021-06-01 10:47:09 -05:00
Samir Patel
e8b9fa0482 update comments and rename nodeUsage() 2021-06-01 10:47:09 -05:00
Samir Patel
f5cc179893 change flag from interval to duration 2021-06-01 10:47:09 -05:00
Samir Patel
0ef16ce634 fix calculation for nodes 2021-06-01 10:47:09 -05:00
Samir Patel
ff6b3fed97 remove initCache 2021-06-01 10:47:09 -05:00
Samir Patel
431db4c1a3 add 'lastUpdated' in http response 2021-06-01 10:47:09 -05:00
Samir Patel
9beb3f0b3a rename flag and add default value for flag 2021-06-01 10:47:09 -05:00
Samir Patel
cd47a381f2 use flag value as refresh value 2021-06-01 10:47:09 -05:00
Samir Patel
b02188fd15 update usage cache periodically 2021-06-01 10:47:09 -05:00
Samir Patel
be10927ca7 set lastUpdated after cache calculation 2021-06-01 10:47:08 -05:00
Samir Patel
20f8479f41 add time based cache 2021-06-01 10:47:08 -05:00
Samir Patel
d71da09db2 add cache update on time 2021-06-01 10:47:08 -05:00
Samir Patel
c812cca58e add cache 2021-06-01 10:47:08 -05:00
Todd Gruben
35672c53ce added node partition endpoint;cluster aware key restore 2021-05-28 09:27:42 -05:00
Nia Weiss
a8f7ec4a12
execute like queries on the primary's key translation database
This works around an issue where unreplicated keys will not be matched everywhere.
This also avoids the cost of creating millions of bolt read transactions and allocating strings.
2021-05-27 14:45:10 -04:00
Alan Bernstein
45dd6dd6bc Remove leftovers from lattice submodule 2021-05-26 10:04:46 -05:00
Todd Gruben
ff86f82ef2 applied ben's suggestions 2021-05-23 10:27:50 -05:00