log parser should not read entire file into memory
Bug #588288 reported by
Michael Nelson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Medium
|
Michael Nelson |
Bug Description
This is related to bug 139855. Currently when parsing a log file, the entire contents to be parsed is read into memory via readlines() rather than processing each line individually.
Additionally, it would be good to allow a config option to limit the number of lines processed at a time.
Related branches
lp://qastaging/~michael.nelson/launchpad/588288-log-parser-dont-read-entire-file
- Graham Binns (community): Approve (code)
-
Diff: 167 lines (+67/-13)4 files modifiedconfigs/testrunner/launchpad-lazr.conf (+1/-0)
lib/canonical/config/schema-lazr.conf (+4/-0)
lib/lp/services/apachelogparser/base.py (+30/-11)
lib/lp/services/apachelogparser/tests/test_apachelogparser.py (+32/-2)
Changed in launchpad-foundations: | |
milestone: | 10.05 → 10.06 |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad-foundations: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fixed in stable r10942 <http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ stable/ revision/ 10942>