Activity log for bug #1590605

Date Who What changed Old value New value Message
2016-06-08 23:38:30 Menno Finlay-Smits bug added bug
2016-06-08 23:42:11 Menno Finlay-Smits description The backend code used for the debug-log API does a sort which may exceed MongoDB's 32MB limit when there's a lot of logs to return. The error is: debug-log handler error: tailer stopped: errmsg: "Sort operation used more than the maximum 33554432 bytes of RAM. Add an index, or specify a smaller limit." The solution is probably to ensure that the sort uses the existing indexes on the logs collection as the limit doesn't apply when indexes are used. The backend code used for the debug-log API does a sort which may exceed MongoDB's 32MB limit when there's a lot of logs to return. The error is: debug-log handler error: tailer stopped: errmsg: "Sort operation used more than the maximum 33554432 bytes of RAM. Add an index, or specify a smaller limit." The solution is probably to ensure that the sort uses the existing indexes on the logs collection as the limit doesn't apply when indexes are used. To reproduce, generate a model with lots of logs: juju bootstrap ... --config logging-config='<root>=TRACE' while true; do juju status ; done # leave this for a while Then ask debug-log to return all the logs: juju debug-log --replay The command will fail and the error above should be in the controller machine's logs.
2016-06-09 14:26:08 Cheryl Jennings juju-core: status New Triaged
2016-06-09 14:26:22 Cheryl Jennings tags debug-log
2016-06-24 14:21:20 Curtis Hovey juju-core: milestone 2.0-beta10 2.0-beta11
2016-07-01 18:07:30 Curtis Hovey juju-core: milestone 2.0-beta11 2.0-beta12
2016-07-05 15:51:00 Cheryl Jennings juju-core: milestone 2.0-beta12 2.0-beta13
2016-07-06 07:29:53 Uros Jovanovic juju-core: importance High Critical
2016-07-06 16:13:21 Cheryl Jennings juju-core: milestone 2.0-beta13 2.0-beta12
2016-07-06 16:24:24 Cheryl Jennings juju-core: assignee Menno Smits (menno.smits)
2016-07-06 16:28:17 Cheryl Jennings juju-core: assignee Menno Smits (menno.smits) Tim Penhey (thumper)
2016-07-12 13:38:27 Cheryl Jennings juju-core: assignee Tim Penhey (thumper) Menno Smits (menno.smits)
2016-07-12 22:27:41 Menno Finlay-Smits juju-core: status Triaged In Progress
2016-07-13 03:11:25 Menno Finlay-Smits juju-core: status In Progress Fix Committed
2016-07-15 19:36:33 Curtis Hovey juju-core: status Fix Committed Fix Released
2016-08-23 00:48:54 Canonical Juju QA Bot affects juju-core juju
2016-08-23 00:48:54 Canonical Juju QA Bot juju: milestone 2.0-beta12
2016-08-23 00:48:56 Canonical Juju QA Bot juju: milestone 2.0-beta12