LogsSuite.TestPruneLogsBySize intermittent failure count of pruned entries is not as expected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Invalid
|
Medium
|
Unassigned |
Bug Description
02:25:38 FAIL: logs_test.go:226: LogsSuite.
02:25:38
02:25:38 [LOG] 0:00.046 DEBUG juju.state mongodb initialised
02:25:38 [LOG] 0:00.047 INFO juju.state running state anonymously; using unique client id
02:25:38 [LOG] 0:00.047 INFO juju.state starting standard state workers
02:25:38 [LOG] 0:00.048 INFO juju.state creating cloud image metadata storage
02:25:38 [LOG] 0:00.048 INFO juju.state started state for model-15f2ada7-
02:25:38 [LOG] 0:00.049 DEBUG juju.state.presence using $bit operations with Mongo 3.2.15
02:25:38 [LOG] 0:00.051 INFO juju.state initializing controller model 15f2ada7-
02:25:38 [LOG] 0:00.332 INFO juju.state running state anonymously; using unique client id
02:25:38 [LOG] 0:00.332 INFO juju.state starting standard state workers
02:25:38 [LOG] 0:00.333 INFO juju.state creating cloud image metadata storage
02:25:38 [LOG] 0:00.333 INFO juju.state started state for model-4947d7af-
02:25:38 [LOG] 0:00.335 DEBUG juju.state.presence using $bit operations with Mongo 3.2.15
02:25:38 [LOG] 0:08.199 INFO juju.state running state anonymously; using unique client id
02:25:38 [LOG] 0:08.199 INFO juju.state starting standard state workers
02:25:38 [LOG] 0:08.199 INFO juju.state creating cloud image metadata storage
02:25:38 [LOG] 0:08.199 INFO juju.state started state for model-87ed6f10-
02:25:38 [LOG] 0:08.201 DEBUG juju.state.presence using $bit operations with Mongo 3.2.15
02:25:38 [LOG] 0:19.244 DEBUG test pruned 2469 logs for model 87ed6f10-
02:25:38 [LOG] 0:19.244 DEBUG test pruned 394 logs for model 4947d7af-
02:25:38 logs_test.go:254:
02:25:38 c.Check(msg, gc.Equals, "pruning complete after 0s, pruned 3243 entries from 2 models, logs db now 1 MB")
02:25:38 ... obtained string = "pruning complete after 0s, pruned 2863 entries from 2 models, logs db now 1 MB"
02:25:38 ... expected string = "pruning complete after 0s, pruned 3243 entries from 2 models, logs db now 1 MB"
02:25:38
02:25:38 [LOG] 0:19.261 DEBUG juju.state closed state without error
02:25:38 [LOG] 0:19.262 DEBUG juju.state closed state without error
02:25:38 [LOG] 0:19.270 DEBUG juju.state closed state without error
http://
Since this failure was reported, we have made a lot changes in the area, including removing this test in favor of a more efficient one.