Skip to content

[HUDI-7153] Fixing range overflow with kakfa source and spark partition management#10205

Merged
bvaradar merged 1 commit intoapache:masterfrom
nsivabalan:minKafkaPartitionsNegativeOffsets
Dec 1, 2023
Merged

[HUDI-7153] Fixing range overflow with kakfa source and spark partition management#10205
bvaradar merged 1 commit intoapache:masterfrom
nsivabalan:minKafkaPartitionsNegativeOffsets

Conversation

@nsivabalan
Copy link
Contributor

Change Logs

Fixing range overflow with kakfa source and spark partition management

Impact

Pipeline will not fail with range overflow errors.

Risk level (write none, low medium or high below)

low

Documentation Update

Describe any necessary documentation update if there is any new feature, config, or user-facing change

  • The config description must be updated if new configs are added or the default value of the configs are changed
  • Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the
    ticket number here and follow the instruction to make
    changes to the website.

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

@nsivabalan nsivabalan added priority:critical Production degraded; pipelines stalled release-0.14.1 labels Nov 29, 2023

long toOffset = Math.min(range.untilOffset(), range.fromOffset() + eventsPerPartition);
long toOffset = -1L;
if (range.fromOffset() + eventsPerPartition > range.fromOffset()) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NTR(note to reviewer):
if range.fromOffset() + eventsPerPartition exceeds Long.MAX_VALUE, toOffset will be set to some negative value.

@nsivabalan nsivabalan force-pushed the minKafkaPartitionsNegativeOffsets branch from 576cb7e to 678b3d7 Compare November 29, 2023 04:44
@hudi-bot
Copy link
Collaborator

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

Copy link
Contributor

@bvaradar bvaradar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bvaradar bvaradar merged commit 213c9f8 into apache:master Dec 1, 2023
nsivabalan added a commit to nsivabalan/hudi that referenced this pull request Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:critical Production degraded; pipelines stalled release-0.14.1

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

4 participants