10 Commits

Author SHA1 Message Date
Janmejay Singh
6983bd3414 Make elapsed-time dependent dynstats tests run with relaxed time constraints as they sometimes fail on arm & hppa (and sometimes on other slow envs too) 2017-11-26 23:56:42 +05:30
PascalWithopf
bd8a1b8136 freeBSD: disable tests that are not working
FreeBSD is not able to run all tests, therefore all tests that can't be run will be disabled.
2017-10-27 12:18:59 +02:00
Janmejay Singh
da8c0b9e92 Double impstats flush-interval because 1-flush-per-second does not give the test enough tolerance on slow machines. 2017-04-20 12:26:55 +05:30
Janmejay Singh
5f071af97f Fixed dyn-stats unused-metric-ttl bug which was was expected to garbage-collect accumulators that were unused for time-period >= ttl, but used to wipe all accumulators. This worked from memory-footprint and metric-life point-of-view, but used to reset accumulators even when they were configured to not be reset. Now it maintains survivor(shadow) table which keeps the accumulator value around from ttl up-to (2 * ttl) and reclaims it only if no dyn_inc call resurrects it by the end of this period. This allows us to resurrect surviving counters if they are used within ttl duration. This keeps a counter alive up-to (2 * ttl) in the worst case(late eviction) and ttl(timely eviction) in the best case. 2016-04-14 21:03:35 +05:30
Janmejay Singh
7a96794b12 made some changes to dyn-stats tests to make it more resillient to timing-problems (prevents bad-timing introduced occasional failures) 2015-11-17 17:48:59 +05:30
Janmejay Singh
d94abbf49f created a control to bump stats counter for batch-operations in one shot + some asthetic space->tab conversion 2015-11-17 16:16:24 +05:30
Janmejay Singh
0daa59c2fd check behavior of dyn-stats provided meta-counters 2015-11-17 15:09:33 +05:30
Janmejay Singh
33cb11db57 dynstats reset-of-accumulated-dyn-metric-names and more-metrics-than-expected flows fixed and tested 2015-11-16 16:43:51 +05:30
Janmejay Singh
e24c175cae - fixed vg-tests to actually check exit code
- fixed and excercised reset dyn-metrics-table flow (where dynamic-metric names are discarded. this excercises unusedMetricLife timer expiry.)
2015-11-13 20:59:07 +05:30
Janmejay Singh
6da7aeb975 - dynstats basic-test first-cut
- vg-test caught a minor issue in impstats (fixed)
- placeholder created for other dynstats tests
- a new assertion in diag.sh which allows extracting a particular column and expecting sum-up to match given value
- imdiag supports injecting litteral messages now (test can send a fully formed syslog message through imdiag, its a backward compatible change in protocol, allows for richer things to be build while being fully backward compatible)
2015-11-13 17:45:07 +05:30