Closed Bug 803070 Opened 12 years ago Closed 11 years ago

TestFilterMobileCompat.test_mobile_no_flash failure

Categories

(Marketplace Graveyard :: Code Quality, defect, P3)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED
2013-06-27

People

(Reporter: tarek, Assigned: robhudson)

References

Details

(Whiteboard: p=1)

$ python manage.py test mkt.search.tests.test_views:TestFilterMobileCompat.test_mobile_no_flash --settings=settings_local_mkt -s ====================================================================== FAIL: test_mobile_no_flash (mkt.search.tests.test_views.TestFilterMobileCompat) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/marketplace/zamboni/apps/amo/tests/__init__.py", line 166, in wrapper return f(self, *args, **kw) File "/home/marketplace/zamboni/mkt/search/tests/test_views.py", line 554, in test_mobile_no_flash eq_(r.status_code, 200) AssertionError: 503 != 200 -------------------- >> begin captured logging << -------------------- elasticutils: ERROR: {'filter': {'and': [{'term': {'price': 0}}, {'in': {'premium_type': (0, 3, 4)}}, {'term': {'uses_flash': False}}, {'in': {'premium_type': (0, 3, 4)}}, {'term': {'device': 2}}]}, 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}, {'bool': {'should': [{'text': {'summary': {'query': u'basta', 'boost': 0.80000000000000004, 'type': 'phrase'}}}, {'fuzzy': {'app_slug': {'boost': 2, 'prefix_length': 4, 'value': u'basta'}}}, {'text': {'name_english': {'query': u'basta', 'boost': 2.5, 'analyzer': 'english'}}}, {'prefix': {'app_slug': {'boost': 1.5, 'value': u'basta'}}}, {'text': {'app_slug': {'query': u'basta', 'boost': 4, 'type': 'phrase'}}}, {'text': {'authors': {'query': u'basta', 'boost': 4, 'type': 'phrase'}}}, {'text': {'summary_english': {'query': u'basta', 'boost': 0.59999999999999998, 'analyzer': 'english', 'type': 'phrase'}}}, {'fuzzy': {'name': {'boost': 2, 'prefix_length': 4, 'value': u'basta'}}}, {'prefix': {'slug': {'boost': 1.5, 'value': u'basta'}}}, {'fuzzy': {'authors': {'boost': 2, 'prefix_length': 4, 'value': u'basta'}}}, {'text': {'slug': {'query': u'basta', 'boost': 4, 'type': 'phrase'}}}, {'text': {'description_english': {'query': u'basta', 'boost': 0.10000000000000001, 'analyzer': 'english', 'type': 'phrase'}}}, {'fuzzy': {'slug': {'boost': 2, 'prefix_length': 4, 'value': u'basta'}}}, {'text': {'name': {'query': u'basta', 'boost': 4, 'type': 'phrase'}}}, {'prefix': {'name': {'boost': 1.5, 'value': u'basta'}}}, {'text': {'description': {'query': u'basta', 'boost': 0.29999999999999999, 'type': 'phrase'}}}, {'prefix': {'authors': {'boost': 1.5, 'value': u'basta'}}}]}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 0, 'fields': ['id']} --------------------- >> end captured logging << --------------------- on ES side: [2012-10-18 12:17:14,275][DEBUG][action.search.type ] [Sleek] [test_amo][1], node[iNyM2eQPS_-OkWK6IDMllQ], [P], s[STARTED]: Failed to execute [org.elasticsearch.action.search.SearchRequest@5923ec42] org.elasticsearch.search.query.QueryPhaseExecutionException: [test_amo][1]: query[filtered(+status:[4 TO 4] +is_disabled:F +type:[11 TO 11] +(summary:"basta"^0.8 app_slug:basta~0.5^2.0 name_english:basta^2.5 app_slug:basta*^1.5 app_slug:"basta"^4.0 authors:"basta"^4.0 summary_english:"basta"^0.6 name:basta~0.5^2.0 slug:basta*^1.5 authors:basta~0.5^2.0 slug:"basta"^4.0 description_english:"basta"^0.1 slug:basta~0.5^2.0 name:"basta"^4.0 name:basta*^1.5 description:"basta"^0.3 authors:basta*^1.5))->cache(_type:addons)],from[0],size[0]: Query Failed [Failed to execute main query] at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:182) at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:234) at org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:140) at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:80) at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:205) at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:192) at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.java:178) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.NullPointerException at org.apache.lucene.search.MultiTermQuery.rewrite(MultiTermQuery.java:312) at org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:371) at org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:371) at org.apache.lucene.search.FilteredQuery.rewrite(FilteredQuery.java:219) at org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:592) at org.elasticsearch.search.internal.ContextIndexSearcher.rewrite(ContextIndexSearcher.java:119) at org.apache.lucene.search.Searcher.createNormalizedWeight(Searcher.java:167) at org.apache.lucene.search.IndexSearcher.createNormalizedWeight(IndexSearcher.java:664) at org.elasticsearch.search.internal.ContextIndexSearcher.createNormalizedWeight(ContextIndexSearcher.java:133) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:342) at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:330) at org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:178) ... 9 more
Blocks: 793997
No longer blocks: 785414
Component: General → Code Quality
Blocks: 764826
Priority: -- → P3
Whiteboard: p=1
Assignee: nobody → robhudson.mozbugs
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2013-06-27
You need to log in before you can comment on or make changes to this bug.