Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix backward incompatibility in StreamFactoryConsumerProvider #5557

Merged
merged 2 commits into from
Jun 13, 2020

Conversation

mcvsubbu
Copy link
Contributor

@mcvsubbu mcvsubbu commented Jun 12, 2020

PR #5542 introduced a backward incompatibility in this class that
would cause existing stream implementations to break when they use
pinot 0.5.0. This commit re-introduces the deleted method

Issue #5359

Description

Add a description of your PR here.
A good description should include pointers to an issue or design document, etc.

Upgrade Notes

Does this PR prevent a zero down-time upgrade? (Assume upgrade order: Controller, Broker, Server, Minion)

  • Yes (Please label as backward-incompat, and complete the section below on Release Notes)

Does this PR fix a zero-downtime upgrade introduced earlier?

  • Yes (Please label this as backward-incompat, and complete the section below on Release Notes)

Does this PR otherwise need attention when creating release notes? Things to consider:

  • New configuration options
  • Deprecation of configurations
  • Signature changes to public methods/interfaces
  • New plugins added or old plugins removed
  • Yes (Please label this PR as release-notes and complete the section on Release Notes)

Release Notes

If you have tagged this as either backward-incompat or release-notes,
you MUST add text here that you would like to see appear in release notes of the
next release.

If you have a series of commits adding or enabling a feature, then
add this section only in final commit that marks the feature completed.
Refer to earlier release notes to see examples of text

Documentation

If you have introduced a new feature or configuration, please add it to the documentation as well.
See https://docs.pinot.apache.org/developers/developers-and-contributors/update-document

PR apache#5542 introduced a backward incompatibility in this class that
would cause existing stream implementations to break when they use
pinot 0.5.0. This commit re-introduces the deleted method
@mcvsubbu mcvsubbu requested review from npawar and kishoreg June 12, 2020 23:12
@mcvsubbu mcvsubbu added the backward-incompat Referenced by PRs that introduce or fix backward compat issues label Jun 12, 2020
Copy link
Member

@kishoreg kishoreg left a comment

Choose a reason for hiding this comment

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

LGTM

Changed the StreamConsumerFactory to also provide the offset factory.
This is much easier way to keep backward compat and reduces complexity.
@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@7326d4a). Click here to learn what that means.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #5557   +/-   ##
=========================================
  Coverage          ?   66.38%           
=========================================
  Files             ?     1105           
  Lines             ?    56989           
  Branches          ?     8529           
=========================================
  Hits              ?    37830           
  Misses            ?    16377           
  Partials          ?     2782           
Flag Coverage Δ
#integrationtests 45.09% <0.00%> (?)
#unittests 56.87% <0.00%> (?)
Impacted Files Coverage Δ
...inot/spi/stream/StreamConsumerFactoryProvider.java 62.50% <0.00%> (ø)
...ransformer/timeunit/CustomTimeUnitTransformer.java 100.00% <0.00%> (ø)
...ller/api/resources/PinotControllerHealthCheck.java 0.00% <0.00%> (ø)
...java/org/apache/pinot/spi/utils/EqualityUtils.java 75.86% <0.00%> (ø)
...a/org/apache/pinot/spi/data/DateTimeFieldSpec.java 94.59% <0.00%> (ø)
...apache/pinot/common/metrics/ControllerMetrics.java 85.71% <0.00%> (ø)
...apache/pinot/controller/api/upload/ZKOperator.java 76.92% <0.00%> (ø)
.../segment/index/datasource/ImmutableDataSource.java 92.59% <0.00%> (ø)
...java/org/apache/pinot/core/util/FixedIntArray.java 66.66% <0.00%> (ø)
...umnminmaxvalue/ColumnMinMaxValueGeneratorMode.java 100.00% <0.00%> (ø)
... and 1096 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7326d4a...735dd45. Read the comment docs.

@mcvsubbu mcvsubbu merged commit 5e532ec into apache:master Jun 13, 2020
@mcvsubbu mcvsubbu deleted the fix-incompat branch June 13, 2020 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backward-incompat Referenced by PRs that introduce or fix backward compat issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants