Skip to content

Commit

Permalink
Add warning if both aggregation and partition_key are enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
zackwine committed Aug 21, 2020
1 parent 4f9fb87 commit 39d451a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fluent-bit-kinesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ func newKinesisOutput(ctx unsafe.Pointer, pluginID int) (*kinesis.OutputPlugin,
isAggregate = true
}

if isAggregate && partitionKey != "" {
logrus.Errorf("[kinesis %d] WARNING: The options 'aggregation' and 'partition_key' should not be used in simaltaniously", pluginID)
}

var concurrencyInt, concurrencyRetriesInt int
var err error
if concurrency != "" {
Expand Down

0 comments on commit 39d451a

Please sign in to comment.