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
I'm creating a pipeline that will read data from kafka topic and ingest/delete it in Opensearch. Everything works fine, except the case when bento is trying to delete a non-existing document. In this case it fails with the error below:
time="2024-11-13T23:04:09Z" level=info msg="Running main config from specified file" bento_version=v1.3.0 path=/bento.yaml service=bento
time="2024-11-13T23:04:09Z" level=info msg="Listening for HTTP requests at: http://0.0.0.0:4195" service=bento
time="2024-11-13T23:04:09Z" level=info msg="Launching a Bento instance, use CTRL+C to close" service=bento
time="2024-11-13T23:04:09Z" level=info msg="Output type stdout is now active" label="" path=root.output.fallback.1 service=bento
time="2024-11-13T23:04:09Z" level=info msg="Output type opensearch is now active" label="" path=root.output.fallback.0.reject_errored service=bento
time="2024-11-13T23:04:09Z" level=info msg="Input type kafka is now active" label=kafka_topic path=root.input service=bento
time="2024-11-13T23:04:09Z" level=debug msg="Starting consumer group" label=kafka_topic path=root.input service=bento
time="2024-11-13T23:04:12Z" level=debug msg="Consuming messages from topic 'ap-test' partition '0'" label=kafka_topic path=root.input service=bento
time="2024-11-13T23:04:13Z" level=debug msg="Successfully dispatched [%!s(uint64=2)] documents in 334ms (%!s(int64=5) docs/sec)" label="" path=root.output.fallback.0.reject_errored service=bento
time="2024-11-13T23:06:51Z" level=debug msg="Successfully dispatched [%!s(uint64=1)] documents in 25ms (%!s(int64=40) docs/sec)" label="" path=root.output.fallback.0.reject_errored service=bento
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x1b11fdc]
goroutine 105 [running]:
github.com/warpstreamlabs/bento/internal/impl/opensearch.(*Output).buildBulkableRequest.func1({_, _}, {{0xc002410420, 0x11}, {0x59a3ca0, 0x6}, {0xc001bbaa28, 0x3}, 0x0, 0x0, ...}, ...)
/go/src/github.com/warpstreamlabs/bento/internal/impl/opensearch/output.go:386 +0x3c
github.com/opensearch-project/opensearch-go/v3/opensearchutil.(*worker).flush(0xc001b89800, {0x665de40?, 0xc00215a960?})
/go/pkg/mod/github.com/opensearch-project/opensearch-go/v3@v3.0.0/opensearchutil/bulk_indexer.go:531 +0x98d
github.com/opensearch-project/opensearch-go/v3/opensearchutil.(*bulkIndexer).Close(0xc002a9e840, {0x665de40, 0xc00215a960})
/go/pkg/mod/github.com/opensearch-project/opensearch-go/v3@v3.0.0/opensearchutil/bulk_indexer.go:237 +0x190
github.com/warpstreamlabs/bento/internal/impl/opensearch.(*Output).WriteBatch(0xc001b21320, {0x665de40, 0xc00215a960}, {0xc0019af010?, 0x1, 0x1})
/go/src/github.com/warpstreamlabs/bento/internal/impl/opensearch/output.go:315 +0x767
github.com/warpstreamlabs/bento/public/service.(*airGapBatchWriter).WriteBatch(0xc0026a0ae0, {0x665de40, 0xc00215a960}, {0xc0019aeff0, 0x1, 0x1})
/go/src/github.com/warpstreamlabs/bento/public/service/output.go:117 +0xc5
github.com/warpstreamlabs/bento/internal/component/output.(*AsyncWriter).latencyMeasuringWrite(0xc000b0ba00, {0x665de40, 0xc00215a960}, {0xc0019aeff0, 0x1, 0x1})
/go/src/github.com/warpstreamlabs/bento/internal/component/output/async_writer.go:81 +0x89
github.com/warpstreamlabs/bento/internal/component/output.(*AsyncWriter).loop.func4()
/go/src/github.com/warpstreamlabs/bento/internal/component/output/async_writer.go:209 +0x38d
created by github.com/warpstreamlabs/bento/internal/component/output.(*AsyncWriter).loop in goroutine 54
/go/src/github.com/warpstreamlabs/bento/internal/component/output/async_writer.go:247 +0x725
The text was updated successfully, but these errors were encountered:
arnitolog
changed the title
Opensearch output fails on delete non-existing document
Opensearch output fails when deleting non-existing document
Nov 13, 2024
I'm creating a pipeline that will read data from kafka topic and ingest/delete it in Opensearch. Everything works fine, except the case when bento is trying to delete a non-existing document. In this case it fails with the error below:
the config is the following:
The text was updated successfully, but these errors were encountered: