Skip to content

Commit

Permalink
feat: transfer 修复索引切割问题 --story=119179630 (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiandongx authored Aug 14, 2024
1 parent a52ca63 commit 6004c92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/transfer/elasticsearch/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func (b *BulkHandler) Flush(ctx context.Context, results []interface{}) (count i

// 处理跨时间间隔
if index != lastIndex && lastIndex != "" {
cnt, err := b.flush(ctx, index, records)
cnt, err := b.flush(ctx, lastIndex, records)
records = records[:0]
count += cnt
errs.Add(err)
Expand Down
2 changes: 1 addition & 1 deletion pkg/transfer/template/etl/flat_batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (p *FlatBatchHandler) Process(d define.Payload, outputChan chan<- define.Pa
err := d.To(&originMap)
if err != nil {
p.CounterFails.Inc()
logging.Errorf("%v convert payload %#v error %v", p, d, err)
logging.MinuteErrorfSampling(p.String(), "%v convert payload %#v error %v", p, d, err)
return
}

Expand Down

0 comments on commit 6004c92

Please sign in to comment.