We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
private void tryToHandle(List<QueueItem<T>> events) { if (logger.isDebugEnabled()) { logger.debug("handling " + events.size() + " events"); } if (events.size() > 0) { try { this.eventHandler.handle(events, underlyingProducer, serializer); } catch (ConnectionRefusedException e) { List<QueueItem<T>> remainedItems = new ArrayList<QueueItem<T>>(events); while (queue.size() > 0) { remainedItems.add(queue.poll()); } if (this.callbackHandler != null) { this.callbackHandler.connectionRefused(e.getMessage(), remainedItems); } } catch (RuntimeException e) { logger.error("Error in handling batch of " + events.size() + " events", e); queue.addAll(events); } } }
java.lang.IllegalStateException: Queue full at java.util.AbstractQueue.add(AbstractQueue.java:98) at java.util.AbstractQueue.addAll(AbstractQueue.java:187) at com.leansoft.luxun.producer.async.ProducerSendThread.tryToHandle(ProducerSendThread.java:163) at com.leansoft.luxun.producer.async.ProducerSendThread.processEvents(ProducerSendThread.java:126) at com.leansoft.luxun.producer.async.ProducerSendThread.run(ProducerSendThread.java:63)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
AsyncProducer.send(...) : throw QueueFullException occurred
-> Still in the message transfer request
java.lang.RuntimeException: org.apache.thrift.transport.TTransportException: java.net.SocketException: Connection reset
Queue full & ProducerSendThread die.
solution
The text was updated successfully, but these errors were encountered: