When a Kafka batch doesn't contain data in all partitions, subsequent ingestions will fail

Chiusa
#819 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Una pull request collegata è già stata integrata.

  • #821 di @yruslan — integrata

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
kafka, scala, spark

Direzione di ricerca

The error text 'Cannot compare Kafka offsets with different number of partitions' is the place to start: search the repository for it to find where the offset maps from two batches are compared. Reproduce by running two consecutive ingestions where the second batch has no data for some partitions, then check how the stored offset map is read back. Done means the second ingestion succeeds with a partition gap and an existing test or a new one covers that case.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

Describe the bug

When a Kafka batch doesn't contain data in all partitions, subsequent ingestions will fail:

Caused by java.lang.IllegalArgumentException: Cannot compare Kafka offsets with different 
number of partitions: 9 and 6 
({"0":1623,"1":1541,"2":1815,"3":1273,"4":1422,"5":1562,"6":1373,"7":1458,"8":1436} 
vs 
{"0":1702,"1":1733,"2":1945,"4":1637,"5":1681,"7":1597}).

Code and/or configuration snippet that caused the issue

--

Expected behavior

Kafka ingestion should work in presence of gaps in partition for a given batch.

Context

  • Pramen/pramen-py version: 1.14.9
Lingua principale
Scala
Stelle
33
Fork
5
Merge medio
4h 46m
PR unite (30g)
7

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AbsaOSS/pramen

Tutte le issue di AbsaOSS/pramen

Issue simili

Altre issue su Scala

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.