Open jiangpengcheng opened 6 years ago
You're absolutely right, it's confusing indeed. I think you'll need to append the _search
in your configuration for it to work as of today.
To fix it properly, the client should append _search
as its not part of the index.
Moreover, we should not return the status code of the logstore to the user like we do here. It should rather be a 502 and hide the details for the user.
cc @dubee
@dubee is this something you can fix?
I'll have a look.
When I use ElasticSearchStore to fetch activation logs, system will report such error, I think it is raised from elasticsearch's
_search
APIThen I checked the code, and found below in
whisk/core/containerpool/logging/ElasticSearchRestClient.scala
:what confused me is that the uri for search in ES should be like
${index_name}/_search
while uri in above codes is notI'm not sure whether this is a bug or meant to be like this(then I must have missed something)
Environment details:
Steps to reproduce the issue:
ansible/group_vars/all
Provide the expected results and outputs:
Provide the actual results and outputs: