Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a restart when producer's send reaches max queue #59

Open
SahilKang opened this issue Apr 17, 2020 · 0 comments
Open

Provide a restart when producer's send reaches max queue #59

SahilKang opened this issue Apr 17, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@SahilKang
Copy link
Owner

Something like this signals a partition-error from the producer's send method:

(ql:quickload '(cl-rdkafka babel))

(let ((producer (make-instance
                 'kf:producer
                 :conf '("bootstrap.servers" "127.0.0.1:9092")
                 :serde #'babel:string-to-octets)))
  (loop
     repeat 500000
     do (kf:send producer "test-topic" "test-message"))
  (kf:flush producer))

The signaled condition looks something like:

Encountered error CL-RDKAFKA/LOW-LEVEL:RD-KAFKA-RESP-ERR--QUEUE-FULL for `test-topic:-1`: "Local: Queue full"

This is one of the expected errors that may occur from the rd_kafka_produce function and a restart should be provided in this case to recover.

@SahilKang SahilKang added the enhancement New feature or request label Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant