mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
Send kafka notification messages in batches when queue_dir is enabled (#18164)
Fixes #18124
This commit is contained in:
@@ -223,7 +223,7 @@ func (target *RedisTarget) send(eventData event.Event) error {
|
||||
}
|
||||
|
||||
// SendFromStore - reads an event from store and sends it to redis.
|
||||
func (target *RedisTarget) SendFromStore(eventKey string) error {
|
||||
func (target *RedisTarget) SendFromStore(key store.Key) error {
|
||||
if err := target.init(); err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -249,7 +249,7 @@ func (target *RedisTarget) SendFromStore(eventKey string) error {
|
||||
target.firstPing = true
|
||||
}
|
||||
|
||||
eventData, eErr := target.store.Get(eventKey)
|
||||
eventData, eErr := target.store.Get(key.Name)
|
||||
if eErr != nil {
|
||||
// The last event key in a successful batch will be sent in the channel atmost once by the replayEvents()
|
||||
// Such events will not exist and would've been already been sent successfully.
|
||||
@@ -267,7 +267,7 @@ func (target *RedisTarget) SendFromStore(eventKey string) error {
|
||||
}
|
||||
|
||||
// Delete the event from store.
|
||||
return target.store.Del(eventKey)
|
||||
return target.store.Del(key.Name)
|
||||
}
|
||||
|
||||
// Close - releases the resources used by the pool.
|
||||
|
||||
Reference in New Issue
Block a user