Skip to content

[BUG] Bulk API ignores error_trace query parameter #19945

@fdesu

Description

@fdesu

Describe the bug

When an error occurs while calling the Bulk API an error response is being returned as illustrated by the official documentation.

The issue happens when one would want to see the detailed stack_trace on the failed response items and set the error_trace=true (when http.detailed_errors.enabled=true). The items in the resulting response still lack the stack_trace as if the error_trace was false or completely missing from the request. Note, that if the Bulk request fails itself (e.g. an NPE with 500), the stack_trace will be properly included as per the error_trace.

Other endpoints seem to respect the error_trace and include the detailed stack_trace in the response. So I'm not entirely sure it's a bug or a feature to trim the, potentially big, Bulk API response.

Related component

Other

To Reproduce

Call the Bulk API with error_trace=false and second time with error_trace=true with a query that would get an exception.

Expected behavior

The detailed stack_trace field is included in the response as in other endpoints.

Additional Details

Search Endpoint having an error with error_trace=true
{
    "error": {
        "root_cause": [
            {
                "type": "index_not_found_exception",
                "reason": "no such index [qwerty]",
                "index": "qwerty",
                "resource.id": "qwerty",
                "resource.type": "index_or_alias",
                "index_uuid": "_na_",
                "stack_trace": "[qwerty] IndexNotFoundException[no such index [qwerty]]\n\tat org.opensearch.cluster.metadata.IndexNameExpressionResolver$WildcardExpressionResolver.indexNotFoundException(IndexNameExpressionResolver.java:1212)\n\tat org.opensearch.cluster.metadata.IndexNameExpressionResolver$WildcardExpressionResolver.innerResolve(IndexNameExpressionResolver.java:1149)\n\tat org.opensearch.cluster.metadata.IndexNameExpressionResolver$WildcardExpressionResolver.resolve(IndexNameExpressionResolver.java:1099)\n\tat org.opensearch.cluster.metadata.IndexNameExpressionResolver.concreteResolvedIndices(IndexNameExpressionResolver.java:332)\n\tat org.opensearch.cluster.metadata.IndexNameExpressionResolver.concreteResolvedIndices(IndexNameExpressionResolver.java:292)\n\tat org.opensearch.action.search.TransportSearchAction.resolveLocalIndices(TransportSearchAction.java:1033)\n\tat org.opensearch.action.search.TransportSearchAction.executeSearch(TransportSearchAction.java:1073)\n\tat org.opensearch.action.search.TransportSearchAction.executeLocalSearch(TransportSearchAction.java:881)\n\tat org.opensearch.action.search.TransportSearchAction.lambda$buildRewriteListener$0(TransportSearchAction.java:517)\n\tat org.opensearch.core.action.ActionListener$1.onResponse(ActionListener.java:82)\n\tat org.opensearch.index.query.Rewriteable.rewriteAndFetch(Rewriteable.java:140)\n\tat org.opensearch.index.query.Rewriteable.rewriteAndFetch(Rewriteable.java:105)\n\tat org.opensearch.action.search.TransportSearchAction.lambda$executeRequest$0(TransportSearchAction.java:486)\n\tat org.opensearch.core.action.ActionListener$1.onResponse(ActionListener.java:82)\n\tat org.opensearch.search.pipeline.PipelinedRequest.transformRequest(PipelinedRequest.java:73)\n\tat org.opensearch.action.search.TransportSearchAction.executeRequest(TransportSearchAction.java:493)\n\tat org.opensearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:330)\n\tat org.opensearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:140)\n\tat org.opensearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:220)\n\tat org.opensearch.action.support.TransportAction.execute(TransportAction.java:190)\n\tat org.opensearch.action.support.TransportAction.execute(TransportAction.java:109)\n\tat org.opensearch.transport.client.node.NodeClient.executeLocally(NodeClient.java:113)\n\tat org.opensearch.rest.action.RestCancellableNodeClient.doExecute(RestCancellableNodeClient.java:106)\n\tat org.opensearch.transport.client.support.AbstractClient.execute(AbstractClient.java:501)\n\tat org.opensearch.rest.action.search.RestSearchAction.lambda$prepareRequest$3(RestSearchAction.java:170)\n\tat org.opensearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:132)\n\tat org.opensearch.rest.RestController.dispatchRequest(RestController.java:381)\n\tat org.opensearch.rest.RestController.tryAllHandlers(RestController.java:467)\n\tat org.opensearch.rest.RestController.dispatchRequest(RestController.java:287)\n\tat org.opensearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:374)\n\tat org.opensearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:482)\n\tat org.opensearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:357)\n\tat org.opensearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:56)\n\tat org.opensearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:42)\n\tat io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat org.opensearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:72)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:107)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:107)\n\tat io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:120)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:107)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.handler.codec.http.HttpContentDecoder.decode(HttpContentDecoder.java:166)\n\tat io.netty.handler.codec.http.HttpContentDecoder.decode(HttpContentDecoder.java:48)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:91)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:107)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:436)\n\tat io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346)\n\tat io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:318)\n\tat io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:251)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:289)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:107)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1357)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:868)\n\tat io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:796)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:697)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:660)\n\tat io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:998)\n\tat io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n\tat java.base/java.lang.Thread.run(Thread.java:1474)\n"
            }
        ],
        "type": "index_not_found_exception",
        "reason": "no such index [qwerty]",
        "index": "qwerty",
        "resource.id": "qwerty",
        "resource.type": "index_or_alias",
        "index_uuid": "_na_",
        "stack_trace": "[qwerty] IndexNotFoundException[no such index [qwerty]]\n\tat org.opensearch.cluster.metadata.IndexNameExpressionResolver$WildcardExpressionResolver.indexNotFoundException(IndexNameExpressionResolver.java:1212)\n\tat org.opensearch.cluster.metadata.IndexNameExpressionResolver$WildcardExpressionResolver.innerResolve(IndexNameExpressionResolver.java:1149)\n\tat org.opensearch.cluster.metadata.IndexNameExpressionResolver$WildcardExpressionResolver.resolve(IndexNameExpressionResolver.java:1099)\n\tat org.opensearch.cluster.metadata.IndexNameExpressionResolver.concreteResolvedIndices(IndexNameExpressionResolver.java:332)\n\tat org.opensearch.cluster.metadata.IndexNameExpressionResolver.concreteResolvedIndices(IndexNameExpressionResolver.java:292)\n\tat org.opensearch.action.search.TransportSearchAction.resolveLocalIndices(TransportSearchAction.java:1033)\n\tat org.opensearch.action.search.TransportSearchAction.executeSearch(TransportSearchAction.java:1073)\n\tat org.opensearch.action.search.TransportSearchAction.executeLocalSearch(TransportSearchAction.java:881)\n\tat org.opensearch.action.search.TransportSearchAction.lambda$buildRewriteListener$0(TransportSearchAction.java:517)\n\tat org.opensearch.core.action.ActionListener$1.onResponse(ActionListener.java:82)\n\tat org.opensearch.index.query.Rewriteable.rewriteAndFetch(Rewriteable.java:140)\n\tat org.opensearch.index.query.Rewriteable.rewriteAndFetch(Rewriteable.java:105)\n\tat org.opensearch.action.search.TransportSearchAction.lambda$executeRequest$0(TransportSearchAction.java:486)\n\tat org.opensearch.core.action.ActionListener$1.onResponse(ActionListener.java:82)\n\tat org.opensearch.search.pipeline.PipelinedRequest.transformRequest(PipelinedRequest.java:73)\n\tat org.opensearch.action.search.TransportSearchAction.executeRequest(TransportSearchAction.java:493)\n\tat org.opensearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:330)\n\tat org.opensearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:140)\n\tat org.opensearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:220)\n\tat org.opensearch.action.support.TransportAction.execute(TransportAction.java:190)\n\tat org.opensearch.action.support.TransportAction.execute(TransportAction.java:109)\n\tat org.opensearch.transport.client.node.NodeClient.executeLocally(NodeClient.java:113)\n\tat org.opensearch.rest.action.RestCancellableNodeClient.doExecute(RestCancellableNodeClient.java:106)\n\tat org.opensearch.transport.client.support.AbstractClient.execute(AbstractClient.java:501)\n\tat org.opensearch.rest.action.search.RestSearchAction.lambda$prepareRequest$3(RestSearchAction.java:170)\n\tat org.opensearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:132)\n\tat org.opensearch.rest.RestController.dispatchRequest(RestController.java:381)\n\tat org.opensearch.rest.RestController.tryAllHandlers(RestController.java:467)\n\tat org.opensearch.rest.RestController.dispatchRequest(RestController.java:287)\n\tat org.opensearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:374)\n\tat org.opensearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:482)\n\tat org.opensearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:357)\n\tat org.opensearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:56)\n\tat org.opensearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:42)\n\tat io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat org.opensearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:72)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:107)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:107)\n\tat io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:120)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:107)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.handler.codec.http.HttpContentDecoder.decode(HttpContentDecoder.java:166)\n\tat io.netty.handler.codec.http.HttpContentDecoder.decode(HttpContentDecoder.java:48)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:91)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:107)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:436)\n\tat io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346)\n\tat io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:318)\n\tat io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:251)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:289)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:107)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)\n\tat io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1357)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)\n\tat io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:868)\n\tat io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:796)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:697)\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:660)\n\tat io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:998)\n\tat io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)\n\tat java.base/java.lang.Thread.run(Thread.java:1474)\n"
    },
    "status": 404
}
Update Endpoint having an error with error_trace=true
{
    "error": {
        "root_cause": [
            {
                "type": "document_missing_exception",
                "reason": "[9999999999999999999999999999999999]: document missing",
                "index": "movies",
                "shard": "0",
                "index_uuid": "lg0Ji3cYQzybfTolA9rGQw",
                "stack_trace": "[movies/lg0Ji3cYQzybfTolA9rGQw][[movies][0]] DocumentMissingException[[9999999999999999999999999999999999]: document missing]\n\tat org.opensearch.action.update.UpdateHelper.prepareUpsert(UpdateHelper.java:149)\n\tat org.opensearch.action.update.UpdateHelper.prepare(UpdateHelper.java:101)\n\tat org.opensearch.action.update.UpdateHelper.prepare(UpdateHelper.java:91)\n\tat org.opensearch.action.update.TransportUpdateAction.shardOperation(TransportUpdateAction.java:236)\n\tat org.opensearch.action.update.TransportUpdateAction.shardOperation(TransportUpdateAction.java:229)\n\tat org.opensearch.action.update.TransportUpdateAction.shardOperation(TransportUpdateAction.java:95)\n\tat org.opensearch.action.support.single.instance.TransportInstanceSingleOperationAction$ShardTransportHandler$1.doRun(TransportInstanceSingleOperationAction.java:338)\n\tat org.opensearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:975)\n\tat org.opensearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:52)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)\n\tat java.base/java.lang.Thread.run(Thread.java:1474)\n"
            }
        ],
        "type": "document_missing_exception",
        "reason": "[9999999999999999999999999999999999]: document missing",
        "index": "movies",
        "shard": "0",
        "index_uuid": "lg0Ji3cYQzybfTolA9rGQw",
        "stack_trace": "[movies/lg0Ji3cYQzybfTolA9rGQw][[movies][0]] DocumentMissingException[[9999999999999999999999999999999999]: document missing]\n\tat org.opensearch.action.update.UpdateHelper.prepareUpsert(UpdateHelper.java:149)\n\tat org.opensearch.action.update.UpdateHelper.prepare(UpdateHelper.java:101)\n\tat org.opensearch.action.update.UpdateHelper.prepare(UpdateHelper.java:91)\n\tat org.opensearch.action.update.TransportUpdateAction.shardOperation(TransportUpdateAction.java:236)\n\tat org.opensearch.action.update.TransportUpdateAction.shardOperation(TransportUpdateAction.java:229)\n\tat org.opensearch.action.update.TransportUpdateAction.shardOperation(TransportUpdateAction.java:95)\n\tat org.opensearch.action.support.single.instance.TransportInstanceSingleOperationAction$ShardTransportHandler$1.doRun(TransportInstanceSingleOperationAction.java:338)\n\tat org.opensearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:975)\n\tat org.opensearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:52)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)\n\tat java.base/java.lang.Thread.run(Thread.java:1474)\n"
    },
    "status": 404
}
Bulk Endpoint having an error with error_trace=false
{
    "took": 2,
    "errors": true,
    "items": [
        {
            "update": {
                "_index": "movies",
                "_id": "9999999999999999999999999999999999",
                "status": 404,
                "error": {
                    "type": "document_missing_exception",
                    "reason": "[9999999999999999999999999999999999]: document missing",
                    "index": "movies",
                    "shard": "0",
                    "index_uuid": "IlilUpNfTTyqJBAD_rZRFQ"
                }
            }
        }
    ]
}
Bulk Endpoint having an error with error_trace=true
{
    "took": 2,
    "errors": true,
    "items": [
        {
            "update": {
                "_index": "movies",
                "_id": "9999999999999999999999999999999999",
                "status": 404,
                "error": {
                    "type": "document_missing_exception",
                    "reason": "[9999999999999999999999999999999999]: document missing",
                    "index": "movies",
                    "shard": "0",
                    "index_uuid": "IlilUpNfTTyqJBAD_rZRFQ"
                }
            }
        }
    ]
}

Metadata

Metadata

Assignees

Labels

OtherbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions