luxun
luxun copied to clipboard
IndexOutOfBoundsException while combining async producer and SimpleConsumer
Steps:
- 10K send by a producer with props.put("producer.type", "async");
- try to consume by index simpleConsumer1.consume("test-topic", index, 1024); in bounded while loop
- after the the first iteration, it failed with: Exception in thread "main" java.lang.IndexOutOfBoundsException at com.leansoft.luxun.common.exception.ErrorMapper.toException(ErrorMapper.java:34) at com.leansoft.luxun.consumer.SimpleConsumer.consume(SimpleConsumer.java:86)