[Task]: Spark 4 streaming sibling scans of one unbounded source can disagree on a deadline cut batch

Aberta
#40,786 1 comentário 0 reações 1 responsável Ver no GitHub

Mantenedores costumam responder em até 2 dias

@tkaymak já está trabalhando nisso.

Desde 25/10/2026.

Avaliação

Esta issue ainda não foi avaliada.

Descrição

Part of #36841. When one unbounded source PCollection feeds two branches of a single streaming query, for example Flatten of a PCollection with itself, Spark plans one MicroBatchScanExec per branch and does not deduplicate streaming relations, so each micro batch opens two readers for the same split. The sibling scan fix that follows #40766 gives the second scan a detached reader restored from the start mark, never cached and writing no marks. The two scans still agree only when the source yields the same records up to the same cut. With the default configuration (maxBatchDurationMillis 500 ms, no record quota) a batch cut by the deadline can end at different records per sibling, so the detached branch can lose or duplicate the tail of that batch while the next batch continues from the cached reader's mark. Bounded inputs via Create that drain within the deadline are exact. Possible fixes are recording the cached scan's cut (record count or end mark) so siblings replay to it, or a per batch buffer keyed by split and epoch shared by all scans of the key.

Linguagem predominante
Java
Estrelas
8.7k
Forks
4.8k
Merge médio
3d 16h
PRs com merge (30d)
445

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de apache/beam

Todas as issues de apache/beam

Issues semelhantes

Mais issues de Java

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.