Closed Bug 736488 Opened 13 years ago Closed 12 years ago

Test and fix middleware code for ElasticSearch

Categories

(Socorro Graveyard :: Middleware, defect, P1)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: adrian, Assigned: adrian)

References

Details

The code for ElasticSearch in the middleware is getting old and hasn't been testing in a while. It needs tests and bug fixes for search and report/list code.
Commits pushed to master at https://github.com/mozilla/socorro https://github.com/mozilla/socorro/commit/f0094cbabeee39815a0ab46178dd10394c3f071b Fixes bug 736488 - Fixed bugs in middleware code for ElasticSearch. https://github.com/mozilla/socorro/commit/ce3bfd37eb4b4b30c848c3b4dad35d1d001c431e Merge pull request #454 from AdrianGaudebert/736488-test-fix-middleware-elasticsearch Fixes bug 736488 - Fixed bugs in middleware code for ElasticSearch.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Testing search with ElasticSearch --------------------------------- 1. Go to advanced search 2. Run a search with one of those parameters: * product = Firefox * product = Thunderbird * versions = All * versions = one single version * versions = two or three different versions * OS = none (which means, all) * OS = Linux * OS = Windows and Mac * Period = 1 week before now * Period = 1 day before now * Period = 1 hour before any date in the previous week * Signature = contains js * Signature = starts_with ns * Signature = exactly nsGenericElement::UnbindFromTree(bool, bool) (implies product = Firefox) * Crash reason = SIGSEGV * Build id = 20120319031122 * Build id = 20120319031122+20120317031150 * Report process = Browser * Report process = Plugin * Report process = Content (product = Fennec) * Report type = Crash * Report type = Hang 3. For each search, add to the URL '&force_api_impl=elasticsearch' to run that same query with ElasticSearch 4. Compare results of the two search (PostgreSQL and ElasticSearch) and verify they are identical
Commit pushed to stage at https://github.com/mozilla/socorro https://github.com/mozilla/socorro/commit/f0d0c2e41c1e2c77b4cd308427d37776872d1033 Fixes bug 736488 - Fixed bugs in middleware code for ElasticSearch.
Moving to 4 because we cannot QA this yet.
Target Milestone: 3 → 4
Commit pushed to v3-branch at https://github.com/mozilla/socorro https://github.com/mozilla/socorro/commit/f0d0c2e41c1e2c77b4cd308427d37776872d1033 Fixes bug 736488 - Fixed bugs in middleware code for ElasticSearch.
Target Milestone: 4 → 5
Target Milestone: 5 → 6
Target Milestone: 6 → 7
Target Milestone: 7 → 8
Whiteboard: [qa-]
Whiteboard: [qa-]
Target Milestone: 8 → 9
Target Milestone: 9 → 10
Target Milestone: 10 → 11
Target Milestone: 11 → 13
Target Milestone: 13 → 15
Target Milestone: 18 → 19
Target Milestone: 19 → 21
Moving to future until we have a viable test environment.
Depends on: 779512
Target Milestone: 21 → Future
Priority: -- → P2
Depends on: 859843
Priority: P2 → P1
Blocks: 651279
Target Milestone: Future → 46
QA can now begin! On stage, it won't work with Firefox because we lack some of the data in HBase and thus elasticsearch, but it should work just fine for all other products. For example, FennecAndroid has quite a bit of data and could be a good product to use for testing. Note that what you add at the end of the search url is now ``&_force_api_impl=elasticsearch`` (there is an underscore at the beginning of the parameter). One good way to verify that data comes from elasticsearch is to have a search that returns more than 1,000 results with postgres, and run it with elasticsearch: if it shows exactly 1,000 results, then that's elasticsearch, if it shows more then it can only come from postgres (and if it shows less than 1,000 there is no obvious way of saying but looking into the logs).
Nudging to resolved since this feature is ready for [qa+]
Status: REOPENED → RESOLVED
Closed: 13 years ago12 years ago
Resolution: --- → FIXED
The bug above is non-existent, it was a problem with dates. However, while investigating I found a different bug with socorro-crashstats sending OS short names instead of full values, and fixed it: https://github.com/mozilla/socorro/pull/1247
Target Milestone: 46 → 47
Commits pushed to master at https://github.com/mozilla/socorro https://github.com/mozilla/socorro/commit/411da20c2f2190f709bd8dfe8998b80494c1ecef Fixes bug 736488 - Accept short os names in search with elasticsearch. https://github.com/mozilla/socorro/commit/2a1267264510286d10633cea77e758c09c5817de Merge pull request #1247 from AdrianGaudebert/736488-os-short Fixes bug 736488 - Accept short os names in search with elasticsearch.
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
QA verified on stage -- automation is passing as well as exploratory testing surrounding the steps-to-test in comment 2
Status: RESOLVED → VERIFIED
Target Milestone: 47 → 48
Product: Socorro → Socorro Graveyard
You need to log in before you can comment on or make changes to this bug.