GitHub user sebbASF opened an issue:

    https://github.com/apache/incubator-ponymail/issues/164

    Bug: mailinglists index should be created by setup.lua or made truly 
optional

    The mailinglists index is currently optionally created.
    However preferences.lua unconditionally fetches it using a sorted query.
    This causes entries such as the following to be reported to the 
elasticsearch log:
    
    ```
    [2016-09-28 14:59:49,564][DEBUG][action.search            ] [Blind Justice] 
[ponymail][2], node[UBWB5UZBSXO-xIayu6sJtw], [P], v[8], s[STARTED], 
a[id=rKfcUa6SQk-v_QaHoYb_Hw]: Failed to execute 
[org.elasticsearch.action.search.SearchRequest@49991da6]
    RemoteTransportException[[Blind 
Justice][127.0.0.1:9300][indices:data/read/search[phase/query]]]; nested: 
SearchParseException[failed to parse search source 
[{"size":9999,"query":{"query_string":{"query":"*","lowercase_expanded_terms":true,"analyze_wildcard":false}},"sort":[{"name":{"order":"desc"}}]}]];
 nested: SearchParseException[No mapping found for [name] in order to sort on];
    Caused by: SearchParseException[failed to parse search source 
[{"size":9999,"query":{"query_string":{"query":"*","lowercase_expanded_terms":true,"analyze_wildcard":false}},"sort":[{"name":{"order":"desc"}}]}]];
 nested: SearchParseException[No mapping found for [name] in order to sort on];
        at 
org.elasticsearch.search.SearchService.parseSource(SearchService.java:873)
        at 
org.elasticsearch.search.SearchService.createContext(SearchService.java:668)
        at 
org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:633)
        at 
org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:377)
        at 
org.elasticsearch.search.action.SearchServiceTransportAction$SearchQueryTransportHandler.messageReceived(SearchServiceTransportAction.java:368)
        at 
org.elasticsearch.search.action.SearchServiceTransportAction$SearchQueryTransportHandler.messageReceived(SearchServiceTransportAction.java:365)
        at 
org.elasticsearch.transport.TransportRequestHandler.messageReceived(TransportRequestHandler.java:33)
        at 
org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:77)
        at 
org.elasticsearch.transport.TransportService$4.doRun(TransportService.java:376)
        at 
org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
    Caused by: SearchParseException[No mapping found for [name] in order to 
sort on]
        at 
org.elasticsearch.search.sort.SortParseElement.addSortField(SortParseElement.java:213)
        at 
org.elasticsearch.search.sort.SortParseElement.addCompoundSortField(SortParseElement.java:187)
        at 
org.elasticsearch.search.sort.SortParseElement.parse(SortParseElement.java:85)
        at 
org.elasticsearch.search.SearchService.parseSource(SearchService.java:856)
        ... 12 more
    ```
    
    Whilst these could presumably be suppressed by disabling the Debug logs, it 
makes the logs harder to read.
    


----

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to