Skip to content

Commit

Permalink
Fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
george pogosyan committed Feb 12, 2025
1 parent 739074b commit 43b55be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion e2e/file_es_split/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pipelines:
endpoints:
- http://localhost:9200
fatal_on_failed_insert: true
split_enabled: true
split_batch: true
strict: false
index_format: index_name
retry: 1
Expand Down
2 changes: 1 addition & 1 deletion plugin/output/elasticsearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ After an insert error, fall with a non-zero exit code or not

<br>

**`split_batches`** *`bool`* *`default=false`*
**`split_batch`** *`bool`* *`default=false`*

Enable split big batches

Expand Down
4 changes: 2 additions & 2 deletions plugin/output/elasticsearch/elasticsearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ type Config struct {
// > @3@4@5@6
// >
// > Enable split big batches
SplitBatches bool `json:"split_batches" default:"false"` // *
SplitBatch bool `json:"split_batch" default:"false"` // *

// > @3@4@5@6
// >
Expand Down Expand Up @@ -376,7 +376,7 @@ func (p *Plugin) out(workerData *pipeline.WorkerData, batch *pipeline.Batch) err
var statusCode int
var err error

if p.config.SplitBatches {
if p.config.SplitBatch {
statusCode, err = p.sendSplit(0, eventsCount, data.begin, data.outBuf)
} else {
statusCode, err = p.send(data.outBuf)
Expand Down

0 comments on commit 43b55be

Please sign in to comment.