Page MenuHomePhabricator

The streaming updater consumer should stop accumulating patches if it cannot handle them
Closed, ResolvedPublic

Description

The KafkaStreamConsumer should stop accumulation of patches if it is going to fail.

java.lang.IllegalArgumentException: Cannot accumulate data for entity: Q16994300
        at org.wikidata.query.rdf.updater.consumer.PatchAccumulator.accumulate(PatchAccumulator.java:104)
        at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
        at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
        at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1384)
        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
        at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
        at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:485)
        at org.wikidata.query.rdf.updater.consumer.KafkaStreamConsumer.poll(KafkaStreamConsumer.java:131)
        at org.wikidata.query.rdf.updater.consumer.StreamingUpdaterConsumer.lambda$run$0(StreamingUpdaterConsumer.java:46)
        at org.wikidata.query.rdf.common.TimerCounter.time(TimerCounter.java:51)
        at org.wikidata.query.rdf.updater.consumer.StreamingUpdaterConsumer.run(StreamingUpdaterConsumer.java:46)
        at org.wikidata.query.rdf.updater.consumer.StreamingUpdate.main(StreamingUpdate.java:49)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 637505 had a related patch set uploaded (by DCausse; owner: DCausse):
[wikidata/query/rdf@master] Respect PatchAccumulator.canAccumulate()

https://gerrit.wikimedia.org/r/637505

dcausse renamed this task from The streaming updater consumer should stop accumulating patches if it cannot handle to The streaming updater consumer should stop accumulating patches if it cannot handle them.Oct 29 2020, 3:14 PM

Change 637505 merged by jenkins-bot:
[wikidata/query/rdf@master] Respect PatchAccumulator.canAccumulate()

https://gerrit.wikimedia.org/r/637505