This repository was archived by the owner on Mar 27, 2021. It is now read-only.
Commit c6b5a6f
authored
Implement new Bigtable timeout & retry settings (#733)
* heroic-730 Implement new Bigtable timeout & retry settings
Signed-off-by: Peter Kingswell <peterk@spotify.com>
* heroic-733 lowered timeouts, added more block comments.
- passing all tests
- next is to refactor the 5 parameters into a class
Signed-off-by: Peter Kingswell <peterk@spotify.com>
* heroic-733 updated failing unit test
Signed-off-by: Peter Kingswell <peterk@spotify.com>
* heroic-733 attempting refactor connection settings into one class
so that they're not repeated several times over
Signed-off-by: Peter Kingswell <peterk@spotify.com>
* updated timeout settings as agreed with @SergeyR on Slack
* heroic-733 small settings & comment corrections
Signed-off-by: Peter Kingswell <peterk@spotify.com>
* heroic-733 small settings & comment corrections
Signed-off-by: Peter Kingswell <peterk@spotify.com>
* fixed runtime IT error in console & syntax warnings
Signed-off-by: Peter Kingswell <peterk@spotify.com>
* added tagValuesTruncatedSuggestMany to exercise difference between CI
and localhost IT test runs where it works locally but not in CI.
Signed-off-by: Peter Kingswell <peterk@spotify.com>
* fixed checkstyle error.
Signed-off-by: Peter Kingswell <peterk@spotify.com>
* fixed checkstyle error.
Signed-off-by: Peter Kingswell <peterk@spotify.com>
* fixes logging in unit & integration tests.
Signed-off-by: Peter Kingswell <peterk@spotify.com>
* fixes inconsistent tagValuesTruncatedSuggest behaviour
Signed-off-by: Peter Kingswell <peterk@spotify.com>
* made the tests in *SuggestBackend*IT.java deterministic
Signed-off-by: Peter Kingswell <peterk@spotify.com>
* increased time available for deleteSeries() to complete
down the road all tests of this kind (timer-based) will
need redoing as they're lame and brittle.
Signed-off-by: Peter Kingswell <peterk@spotify.com>
* refactored 6 retry & timeout settings into new POD class
which is then added as a field to BigtableBackend, Module etc.
Signed-off-by: Peter Kingswell <peterk@spotify.com>
* reduced cohesion between modules by switching implementations
from MetricsConnectionSettingsModule to MetricsConnectionSettings
Signed-off-by: Peter Kingswell <peterk@spotify.com>
* moved MetricsConnectionSettingsModule to Bigtable module since...
that's where it belongs, basically.
Signed-off-by: Peter Kingswell <peterk@spotify.com>
* *actually* moved MetricsConnectionSettingsModule to Bigtable module
since...that's where it belongs, basically.
Signed-off-by: Peter Kingswell <peterk@spotify.com>
* added {@link ...} javadoc
Signed-off-by: Peter Kingswell <peterk@spotify.com>
* fixed comment
Signed-off-by: Peter Kingswell <peterk@spotify.com>
* implemented review feedback
- removed useless/confusing @JSON annotations
- changed fields from Integer to int
- also fixed code analysis warnings
* Rename .java to .kt
* PR feedback - refactored POD BT Java class to Kotlin
* implemented a workaround for @Inject
not working as documented (seemingly)
* improved comments, removed unnecessary subclass
* io.grpc -> 1.35.0 & bigtable-client-core -> 1.19.0
* increasing heroic system test startup time by 30s
to prevent the intermittent timeouts that are being observed.
* fixed Could not find policy 'pick_first' exception.
- occurred when a timeout happened
- full message: java.lang.IllegalStateException: Could not find policy
'pick_first'. Make sure its implementation is either registered to
LoadBalancerRegistry or included in
META-INF/services/io.grpc.LoadBalancerProvider from your jar files.
* adds integration test for Bigtable timeouts
* report the failing test's actual content
* fix testBackendTimesOutCorrectly assertion
* unit test fix attempt #2
* set Google-default timeout and retry
settings.
tidied up docs too1 parent 2e63167 commit c6b5a6f
37 files changed
Lines changed: 1291 additions & 577 deletions
File tree
- docs/content/_docs
- heroic-component/src/main/java/com/spotify/heroic/metric
- consts
- heroic-core/src
- main/java/com/spotify/heroic
- http/tracing
- metric
- test/java/com/spotify/heroic
- heroic-dist
- src/test
- java/com/spotify/heroic
- analytics/bigtable
- resources
- heroic-elasticsearch-utils
- heroic-test
- src
- main/java/com/spotify/heroic/test
- test/java/com/spotify/heroic/suggest/elasticsearch
- metric
- bigtable
- src
- main/java/com/spotify/heroic
- analytics/bigtable
- metric/bigtable
- test/java/com/spotify/heroic/metric/bigtable
- datastax/src/test/java/com/spotify/heroic/metric/datastax
- memory
- src/test/java/com/spotify/heroic/metric/memory
- rpc/grpc/src/main/java/com/spotify/heroic/rpc/grpc
- suggest/elasticsearch/src/main/java/com/spotify/heroic/suggest/elasticsearch
- system-tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
| 203 | + | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| 316 | + | |
316 | 317 | | |
317 | 318 | | |
318 | 319 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
| 143 | + | |
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
| 151 | + | |
149 | 152 | | |
150 | 153 | | |
151 | 154 | | |
152 | 155 | | |
153 | 156 | | |
154 | 157 | | |
155 | 158 | | |
| 159 | + | |
156 | 160 | | |
157 | 161 | | |
158 | 162 | | |
159 | 163 | | |
160 | 164 | | |
161 | 165 | | |
162 | 166 | | |
| 167 | + | |
163 | 168 | | |
164 | 169 | | |
165 | 170 | | |
166 | 171 | | |
167 | 172 | | |
168 | 173 | | |
169 | 174 | | |
| 175 | + | |
170 | 176 | | |
171 | 177 | | |
172 | 178 | | |
| |||
492 | 498 | | |
493 | 499 | | |
494 | 500 | | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
495 | 534 | | |
496 | 535 | | |
497 | 536 | | |
| |||
542 | 581 | | |
543 | 582 | | |
544 | 583 | | |
545 | | - | |
| 584 | + | |
546 | 585 | | |
547 | 586 | | |
548 | 587 | | |
549 | 588 | | |
550 | 589 | | |
551 | | - | |
| 590 | + | |
552 | 591 | | |
553 | 592 | | |
554 | 593 | | |
555 | | - | |
556 | | - | |
557 | 594 | | |
558 | 595 | | |
559 | 596 | | |
| |||
717 | 754 | | |
718 | 755 | | |
719 | 756 | | |
720 | | - | |
721 | 757 | | |
722 | 758 | | |
723 | 759 | | |
| |||
970 | 1006 | | |
971 | 1007 | | |
972 | 1008 | | |
| 1009 | + | |
973 | 1010 | | |
974 | 1011 | | |
975 | 1012 | | |
| |||
996 | 1033 | | |
997 | 1034 | | |
998 | 1035 | | |
| 1036 | + | |
999 | 1037 | | |
1000 | 1038 | | |
1001 | 1039 | | |
| |||
1033 | 1071 | | |
1034 | 1072 | | |
1035 | 1073 | | |
1036 | | - | |
1037 | 1074 | | |
1038 | 1075 | | |
1039 | 1076 | | |
| |||
Lines changed: 132 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
0 commit comments