You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow consumeFirstStringMessageFrom to be called multiple times (#61)
In v0.5.0 you were able to call consumeFirstStringMessageFrom multiple
times, with each invocation causing the next message in a topic to be
consumed. In v0.10.0 this was no longer the case: the first invocation
works fine, but subsequent invocations would result in exceptions as the
first invocation would cause *all* messages to be committed even though
only the first one is returned, leaving no messages remaining to be
consumed by subsequent calls. This regression was likely introduced by
commit a906743.
This commit fixes this by disabling auto-commit by default and simply
committing only the message that consumeFirstStringMessageFrom returns.
* Consumes the first message available in a given topic, deserializing it as a String.
219
219
*
220
+
* Only the messsage that is returned is committed if config.autoCommit is false. If config.autoCommit is true then all messages that were polled will be committed.
221
+
*
220
222
* @paramtopic the topic to consume a message from
221
223
* @paramconfig an implicit [[EmbeddedKafkaConfig]]
222
224
* @paramdeserializer an implicit [[org.apache.kafka.common.serialization.Deserializer]] for the type [[T]]
0 commit comments