Apologies. Taking note for future. shall I delete this post? On Friday, 27 October 2017 14:16:30 UTC+5:30, Konrad Malawski wrote: > > Please report in one space at the same time. > This was already reported on the issue tracker by yourself. > > This is to avoid wasting cycles and time. Thanks. > > -- > Cheers, > Konrad 'ktoso <http://kto.so>' Malawski > Akka <http://akka.io/> @ Lightbend <http://lightbend.com/> > > On October 27, 2017 at 17:34:02, MK G ([email protected] <javascript:>) > wrote: > > Timer of GroupedWithin does not seem to be working. In this example, I am > not getting any messages even after expiry of duration (10 seconds) even > though 7 items are available in Kafka. If I produce 3 more items, then I am > getting the entire desired batch (10 items). Please see the snippet below. > > > akka & akka streams Version = "2.4.19" > > akka-stream-kafka Version = "0.17" > > > Am I missing anything? Thank you. > > > val consumerSettings: ConsumerSettings[Array[Byte], String] = > ConsumerSettings(ActorSystemContainer.system, new ByteArrayDeserializer, new > StringDeserializer) > .withBootstrapServers(rsbProps.serverUrl) > .withGroupId(rsbProps.groupId) > .withProperty(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG, "earliest") > > Consumer.committableSource(consumerSettings, Subscriptions.topics("topic-1")) > .groupedWithin(10, 10.seconds) > .mapAsync(1) { group => > val msgs = group.toList.map(_.record.value()) > saveToDB(msgs ) > } > .map(group => group.foldLeft(CommittableOffsetBatch.empty) { (batch, elem) > => > batch.updated(elem.committableOffset) > }) > .mapAsync(3)(_.commitScaladsl()) > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To post to this group, send email to [email protected] > <javascript:>. > Visit this group at https://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > >
-- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
