Skip to content

[FLINK-15914][checkpointing][metrics] Miss the barrier alignment metric for the case of two inputs#11019

Merged
zhijiangW merged 1 commit intoapache:release-1.10from
zhijiangW:FLINK-15914
Feb 5, 2020
Merged

[FLINK-15914][checkpointing][metrics] Miss the barrier alignment metric for the case of two inputs#11019
zhijiangW merged 1 commit intoapache:release-1.10from
zhijiangW:FLINK-15914

Conversation

@zhijiangW
Copy link
Copy Markdown
Contributor

What is the purpose of the change

When the StreamTwoInputSelectableProcessor was introduced before, it was missing to add the barrier alignment metric in the constructor. But it does not cause problems then, because only StreamTwoInputProcessor works at that time. After StreamTwoInputProcessor is replaced by StreamTwoInputSelectableProcessor as now, this bug is exposed and we will not see the barrier alignment metric for the case of two inputs.

The solution is to add this metric while constructing the CheckpointBarrierHandler.

Brief change log

  • Add the metric of barrier alignment while constructing the CheckpointBarrierHandler

Verifying this change

Via the job testing.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (yes / no)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
  • The serializers: (yes / no / don't know)
  • The runtime per-record code paths (performance sensitive): (yes / no / don't know)
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (yes / no / don't know)
  • The S3 file system connector: (yes / no / don't know)

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@zhijiangW zhijiangW requested a review from pnowojski February 5, 2020 09:12
@flinkbot
Copy link
Copy Markdown
Collaborator

flinkbot commented Feb 5, 2020

Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community
to review your pull request. We will use this comment to track the progress of the review.

Automated Checks

Last check on commit 012203b (Wed Feb 05 09:14:40 UTC 2020)

Warnings:

  • No documentation files were touched! Remember to keep the Flink docs up to date!

Mention the bot in a comment to re-run the automated checks.

Review Progress

  • ❓ 1. The [description] looks good.
  • ❓ 2. There is [consensus] that the contribution should go into to Flink.
  • ❓ 3. Needs [attention] from.
  • ❓ 4. The change fits into the overall [architecture].
  • ❓ 5. Overall code [quality] is good.

Please see the Pull Request Review Guide for a full explanation of the review process.

Details
The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commands
The @flinkbot bot supports the following commands:

  • @flinkbot approve description to approve one or more aspects (aspects: description, consensus, architecture and quality)
  • @flinkbot approve all to approve all aspects
  • @flinkbot approve-until architecture to approve everything until architecture
  • @flinkbot attention @username1 [@username2 ..] to require somebody's attention
  • @flinkbot disapprove architecture to remove an approval you gave earlier

Copy link
Copy Markdown
Contributor

@pnowojski pnowojski left a comment

Choose a reason for hiding this comment

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

I would be fine with merging it as it is to release 1.10.

For master I would prefer the comments to be addressed and maybe add a test that metric is present? But it would be nice for at leat the production code be the same for 1.10 and master.

@flinkbot
Copy link
Copy Markdown
Collaborator

flinkbot commented Feb 5, 2020

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run travis re-run the last Travis build
  • @flinkbot run azure re-run the last Azure build

@pnowojski
Copy link
Copy Markdown
Contributor

@zhijiangW if you think it's better to have this minimal change for release-1.10 and do the more proper fixes for master +1 from my side.

…ic for the case of two inputs

When the StreamTwoInputSelectableProcessor was introduced before, it was missing to add the barrier alignment metric in the constructor.
But it does not cause problems then, because only StreamTwoInputProcessor works at that time.

After StreamTwoInputProcessor is replaced by StreamTwoInputSelectableProcessor as now, this bug is exposed and we will not see the barrier
alignment metric for the case of two inputs.

The solution is to add this metric while constructing the CheckpointBarrierHandler.
@zhijiangW
Copy link
Copy Markdown
Contributor Author

Thanks for the review @pnowojski . I already submitted the updates.

Copy link
Copy Markdown
Contributor

@pnowojski pnowojski left a comment

Choose a reason for hiding this comment

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

LGTM, let's think about deduplication and test in the master version.

Let's also wait for green travis before merging.

@tillrohrmann
Copy link
Copy Markdown
Contributor

The failing python build should be unrelated. See FLINK-15921. +1 for merging.

@zhijiangW zhijiangW merged commit 72b076c into apache:release-1.10 Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants