Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] No enum constant org.opensearch.action.search.SearchPhaseName.CREATE_PIT #16750

Open
nogakr opened this issue Dec 1, 2024 · 4 comments · May be fixed by #16781
Open

[BUG] No enum constant org.opensearch.action.search.SearchPhaseName.CREATE_PIT #16750

nogakr opened this issue Dec 1, 2024 · 4 comments · May be fixed by #16781
Assignees
Labels
bug Something isn't working Search Search query, autocomplete ...etc v2.19.0 Issues and PRs related to version 2.19.0 v3.0.0 Issues and PRs related to version 3.0.0

Comments

@nogakr
Copy link

nogakr commented Dec 1, 2024

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.

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.
@nogakr nogakr added bug Something isn't working untriaged labels Dec 1, 2024
@github-actions github-actions bot added the Search Search query, autocomplete ...etc label Dec 1, 2024
@reta reta added v3.0.0 Issues and PRs related to version 3.0.0 v2.19.0 Issues and PRs related to version 2.19.0 labels Dec 2, 2024
@reta
Copy link
Collaborator

reta commented Dec 2, 2024

@buddharajusahil could you please take a look? introduced by #8386

@msfroh
Copy link
Collaborator

msfroh commented Dec 2, 2024

@sgup432 -- could you take a look? You got #8386 over the line.

@jainankitk
Copy link
Collaborator

@sgup432 -- could you take a look? You got #8386 over the line.

@peteralfonsi / @dzane17 - Can you help with this issue while @sgup432's on leave?

@peteralfonsi
Copy link
Contributor

Sure, I can take this one.

@peteralfonsi peteralfonsi self-assigned this Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Search Search query, autocomplete ...etc v2.19.0 Issues and PRs related to version 2.19.0 v3.0.0 Issues and PRs related to version 3.0.0
Projects
Status: 🆕 New
Development

Successfully merging a pull request may close this issue.

6 participants