You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nogakr opened this issue
Dec 1, 2024
· 4 comments
· May be fixed by #16781
Assignees
Labels
bugSomething isn't workingSearchSearch query, autocomplete ...etcv2.19.0Issues and PRs related to version 2.19.0v3.0.0Issues and PRs related to version 3.0.0
Originally report by the user on the forum. I’m using opensearch java client 2.18. The operation itself (create pit) is successful, so I’m not sure what the warning means.
2024-11-26 11:37:18 [2024-11-26T09:37:18,135][WARN ][o.o.a.s.TransportSearchAction] [690236449b57] onPhaseStart listener [org.opensearch.action.search.SearchRequestStats@2d3574f7] failed
2024-11-26 11:37:18 java.lang.IllegalArgumentException: No enum constant org.opensearch.action.search.SearchPhaseName.CREATE_PIT
2024-11-26 11:37:18 at java.base/java.lang.Enum.valueOf(Enum.java:293) ~[?:?]
2024-11-26 11:37:18 at org.opensearch.action.search.SearchPhaseName.valueOf(SearchPhaseName.java:18) ~[opensearch-2.18.0.jar:2.18.0]
2024-11-26 11:37:18 at org.opensearch.action.search.SearchPhase.getSearchPhaseName(SearchPhase.java:77) ~[opensearch-2.18.0.jar:2.18.0]
2024-11-26 11:37:18 at org.opensearch.action.search.SearchRequestStats.onPhaseStart(SearchRequestStats.java:76) ~[opensearch-2.18.0.jar:2.18.0]
2024-11-26 11:37:18 at org.opensearch.action.search.SearchRequestOperationsListener$CompositeListener.onPhaseStart(SearchRequestOperationsListener.java:87) ~[opensearch-2.18.0.jar:2.18.0]
2024-11-26 11:37:18 at org.opensearch.action.search.AbstractSearchAsyncAction.onPhaseStart(AbstractSearchAsyncAction.java:465) ~[opensearch-2.18.0.jar:2.18.0]
2024-11-26 11:37:18 at org.opensearch.action.search.AbstractSearchAsyncAction.executePhase(AbstractSearchAsyncAction.java:480) ~[opensearch-2.18.0.jar:2.18.0]
2024-11-26 11:37:18 at org.opensearch.action.search.AbstractSearchAsyncAction.executeNextPhase(AbstractSearchAsyncAction.java:448) ~[opensearch-2.18.0.jar:2.18.0]
2024-11-26 11:37:18 at org.opensearch.action.search.AbstractSearchAsyncAction.onPhaseDone(AbstractSearchAsyncAction.java:815) ~[opensearch-2.18.0.jar:2.18.0]
2024-11-26 11:37:18 at org.opensearch.action.search.AbstractSearchAsyncAction.successfulShardExecution(AbstractSearchAsyncAction.java:663) ~[opensearch-2.18.0.jar:2.18.0]
2024-11-26 11:37:18 at org.opensearch.action.search.AbstractSearchAsyncAction.onShardResultConsumed(AbstractSearchAsyncAction.java:650) ~[opensearch-2.18.0.jar:2.18.0]
2024-11-26 11:37:18 at org.opensearch.action.search.AbstractSearchAsyncAction.lambda$onShardResult$9(AbstractSearchAsyncAction.java:628) ~[opensearch-2.18.0.jar:2.18.0]
2024-11-26 11:37:18 at org.opensearch.action.search.ArraySearchPhaseResults.consumeResult(ArraySearchPhaseResults.java:61) ~[opensearch-2.18.0.jar:2.18.0]
2024-11-26 11:37:18 at org.opensearch.action.search.AbstractSearchAsyncAction.onShardResult(AbstractSearchAsyncAction.java:628) ~[opensearch-2.18.0.jar:2.18.0]
2024-11-26 11:37:18 at org.opensearch.action.search.AbstractSearchAsyncAction$1.innerOnResponse(AbstractSearchAsyncAction.java:303) ~[opensearch-2.18.0.jar:2.18.0]
2024-11-26 11:37:18 at org.opensearch.action.search.SearchActionListener.onResponse(SearchActionListener.java:59) ~[opensearch-2.18.0.jar:2.18.0]
2024-11-26 11:37:18 at org.opensearch.action.search.SearchActionListener.onResponse(SearchActionListener.java:44) ~[opensearch-2.18.0.jar:2.18.0]
2024-11-26 11:37:18 at org.opensearch.action.search.CreatePitController$1.lambda$executeOnShardTarget$0(CreatePitController.java:147) ~[opensearch-2.18.0.jar:2.18.0]
2024-11-26 11:37:18 at org.opensearch.core.action.ActionListener$1.onResponse(ActionListener.java:82) ~[opensearch-core-2.18.0.jar:2.18.0]
2024-11-26 11:37:18 at org.opensearch.action.ActionListenerResponseHandler.handleResponse(ActionListenerResponseHandler.java:70) ~[opensearch-2.18.0.jar:2.18.0]
2024-11-26 11:37:18 at org.opensearch.transport.TransportService$9.handleResponse(TransportService.java:1735) ~[opensearch-2.18.0.jar:2.18.0]
2024-11-26 11:37:18 at org.opensearch.transport.TransportService$ContextRestoreResponseHandler.handleResponse(TransportService.java:1517) ~[opensearch-2.18.0.jar:2.18.0]
2024-11-26 11:37:18 at org.opensearch.transport.TransportService$DirectResponseChannel.processResponse(TransportService.java:1600) ~[opensearch-2.18.0.jar:2.18.0]
2024-11-26 11:37:18 at org.opensearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:1580) ~[opensearch-2.18.0.jar:2.18.0]
2024-11-26 11:37:18 at org.opensearch.transport.TaskTransportChannel.sendRes
Related component
Search
To Reproduce
I was able to reproduce it easily by issuing an index operation against index that does not exists:
» WARN ][o.o.t.LoggingTaskListener] [yamlRestTest-0] 24796 failed with exception
» org.opensearch.index.IndexNotFoundException: no such index [test_index]
» at org.opensearch.cluster.metadata.IndexNameExpressionResolver$WildcardExpressionResolver.indexNotFoundException(IndexNameExpressionResolver.java:1067) ~[opensearch-3.0.0-SNAPSHOT.ja
r:3.0.0-SNAPSHOT]
» at org.opensearch.cluster.metadata.IndexNameExpressionResolver$WildcardExpressionResolver.innerResolve(IndexNameExpressionResolver.java:1004) ~[opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SN
APSHOT]
» at org.opensearch.cluster.metadata.IndexNameExpressionResolver$WildcardExpressionResolver.resolve(IndexNameExpressionResolver.java:960) ~[opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT
]
» at org.opensearch.cluster.metadata.IndexNameExpressionResolver.concreteIndices(IndexNameExpressionResolver.java:252) ~[opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.cluster.metadata.IndexNameExpressionResolver.concreteIndexNames(IndexNameExpressionResolver.java:232) ~[opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.cluster.metadata.IndexNameExpressionResolver.concreteIndexNames(IndexNameExpressionResolver.java:112) ~[opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.action.support.broadcast.node.TransportBroadcastByNodeAction.resolveConcreteIndexNames(TransportBroadcastByNodeAction.java:268) ~[opensearch-3.0.0-SNAPSHOT.jar:3.0.
0-SNAPSHOT]
» at org.opensearch.action.support.broadcast.node.TransportBroadcastByNodeAction$AsyncAction.<init>(TransportBroadcastByNodeAction.java:305) ~[opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPS
HOT]
» at org.opensearch.action.support.broadcast.node.TransportBroadcastByNodeAction.doExecute(TransportBroadcastByNodeAction.java:273) ~[opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.action.support.broadcast.node.TransportBroadcastByNodeAction.doExecute(TransportBroadcastByNodeAction.java:92) ~[opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:220) ~[opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.action.support.TransportAction.execute(TransportAction.java:190) ~[opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.action.support.TransportAction.execute(TransportAction.java:150) ~[opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.client.node.NodeClient.executeLocally(NodeClient.java:124) ~[opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.rest.action.admin.indices.RestForceMergeAction.prepareRequest(RestForceMergeAction.java:93) ~[opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:109) ~[opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.rest.RestController.dispatchRequest(RestController.java:381) ~[opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.rest.RestController.tryAllHandlers(RestController.java:467) ~[opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.rest.RestController.dispatchRequest(RestController.java:287) ~[opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:397) ~[opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
WARN ][o.o.a.s.TransportSearchAction] [yamlRestTest-0] onPhaseStart listener [org.opensearch.action.search.SearchRequestStats@1caa44e2] failed
» java.lang.IllegalArgumentException: No enum constant org.opensearch.action.search.SearchPhaseName.CREATE_PIT
» at java.base/java.lang.Enum.valueOf(Enum.java:293) ~[?:?]
» at org.opensearch.action.search.SearchPhaseName.valueOf(SearchPhaseName.java:18) ~[opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.action.search.SearchPhase.getSearchPhaseName(SearchPhase.java:77) ~[opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.action.search.SearchRequestStats.onPhaseStart(SearchRequestStats.java:76) ~[opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.action.search.SearchRequestOperationsListener$CompositeListener.onPhaseStart(SearchRequestOperationsListener.java:87) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.action.search.AbstractSearchAsyncAction.onPhaseStart(AbstractSearchAsyncAction.java:465) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.action.search.AbstractSearchAsyncAction.executePhase(AbstractSearchAsyncAction.java:480) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.action.search.AbstractSearchAsyncAction.start(AbstractSearchAsyncAction.java:235) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.action.search.TransportSearchAction.executeSearch(TransportSearchAction.java:1112) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.action.search.TransportSearchAction.executeLocalSearch(TransportSearchAction.java:877) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.action.search.TransportSearchAction.lambda$buildRewriteListener$5(TransportSearchAction.java:517) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.core.action.ActionListener$1.onResponse(ActionListener.java:82) [opensearch-core-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.index.query.Rewriteable.rewriteAndFetch(Rewriteable.java:140) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.index.query.Rewriteable.rewriteAndFetch(Rewriteable.java:105) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.action.search.TransportSearchAction.lambda$executeRequest$1(TransportSearchAction.java:476) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.core.action.ActionListener$1.onResponse(ActionListener.java:82) [opensearch-core-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.search.pipeline.Pipeline.transformRequest(Pipeline.java:125) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.search.pipeline.PipelinedRequest.transformRequest(PipelinedRequest.java:34) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.action.search.TransportSearchAction.executeRequest(TransportSearchAction.java:483) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.action.search.TransportSearchAction.executeRequest(TransportSearchAction.java:345) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.action.search.CreatePitController.executeCreatePit(CreatePitController.java:127) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.action.search.CreatePitController.executeCreatePit(CreatePitController.java:109) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.action.search.TransportCreatePitAction.doExecute(TransportCreatePitAction.java:76) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.action.search.TransportCreatePitAction.doExecute(TransportCreatePitAction.java:35) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:220) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.action.support.TransportAction.execute(TransportAction.java:190) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.action.support.TransportAction.execute(TransportAction.java:109) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.client.node.NodeClient.executeLocally(NodeClient.java:112) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.client.node.NodeClient.doExecute(NodeClient.java:99) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.client.support.AbstractClient.execute(AbstractClient.java:486) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.client.support.AbstractClient.createPit(AbstractClient.java:642) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.rest.action.search.RestCreatePitAction.lambda$prepareRequest$0(RestCreatePitAction.java:49) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:128) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.rest.RestController.dispatchRequest(RestController.java:381) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
» at org.opensearch.rest.RestController.tryAllHandlers(RestController.java:467) [opensearch-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
```
### Expected behavior
There should be no exception
### Additional Details
**Plugins**
Please list all plugins currently enabled.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Host/Environment (please complete the following information):**
- OS: [e.g. iOS]
- Version [e.g. 22]
**Additional context**
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
bugSomething isn't workingSearchSearch query, autocomplete ...etcv2.19.0Issues and PRs related to version 2.19.0v3.0.0Issues and PRs related to version 3.0.0
Describe the bug
Originally report by the user on the forum. I’m using opensearch java client 2.18. The operation itself (create pit) is successful, so I’m not sure what the warning means.
Related component
Search
To Reproduce
I was able to reproduce it easily by issuing an index operation against index that does not exists:
The text was updated successfully, but these errors were encountered: