elastic / elastic/logstash

Queue writes should support a Timeout

Open
#8,367 3 comments 1 reaction 0 assignees View on GitHub
discuss enhancement
Dominant language
Java
Stars
14.9k
Forks
3.5k
Avg merge
19h 14m
Merged PRs (30d)
63

Description

Currently the Queue API supports `push` but does not take a timeout. We should consider adding something akin to the Java [BlockingQueue.offer](https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/BlockingQueue.html#offer(E,%20long,%20java.util.concurrent.TimeUnit)) method.

This would be useful for the Logstash HTTP input and other request response protocols. These protocols expect operations to be completed relatively quickly, with the client retrying if necessary. Elasticsearch does this with the 429 response code.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.