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

[issue-265] Reader side: Implement watermark with Pravega (for master branch aka. Flink 1.9) #279

Merged
merged 1 commit into from
Oct 10, 2019

Conversation

crazyzhou
Copy link
Contributor

@crazyzhou crazyzhou commented Oct 10, 2019

Change log description

Purpose of the change
Same as the pull request #274 for r0.6-flink1.7, the master branch require only merging PRs rather than cherry-picking, I create this PR for the master branch.

What the code does
Same as PR #274 , modified only

  • Change ClosureCleaner.clean(obj, bool) which is removed since Flink 1.8 into ClosureCleaner.clean(obj, ExecutionConfig.ClosureCleanerLevel.RECURSIVE, bool)
  • Change TableValidationUtil which is removed since Flink 1.9 into TableSourceValidation

@crazyzhou crazyzhou changed the title [issue-265] Reader side: Implement watermark with Pravega (for master branch) [issue-265] Reader side: Implement watermark with Pravega (for master branch aka. Flink 1.9) Oct 10, 2019
* Implement reader with watermark
* fix Table API
* Use SerializedValue to fix the serialization error, add a basic test
* Add check for watermark, Fix test
* Bump pravega version to dceb098
* use bigger heap
* Produce better messages if test fails
* Added comment to LowerBoundAssigner

Signed-off-by: Brian Zhou <[email protected]>
@codecov
Copy link

codecov bot commented Oct 10, 2019

Codecov Report

Merging #279 into master will increase coverage by 0.07%.
The diff coverage is 86.58%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #279      +/-   ##
============================================
+ Coverage     84.44%   84.52%   +0.07%     
- Complexity      322      337      +15     
============================================
  Files            34       35       +1     
  Lines          1466     1544      +78     
  Branches        156      168      +12     
============================================
+ Hits           1238     1305      +67     
- Misses          122      129       +7     
- Partials        106      110       +4
Impacted Files Coverage Δ Complexity Δ
...connectors/flink/FlinkPravegaTableFactoryBase.java 88.97% <100%> (+0.26%) 11 <0> (+1) ⬆️
...nnectors/flink/AbstractStreamingReaderBuilder.java 96.72% <100%> (+0.05%) 17 <0> (ø) ⬇️
.../connectors/flink/FlinkPravegaJsonTableSource.java 100% <100%> (ø) 4 <0> (ø) ⬇️
...connectors/flink/util/ConnectorConfigurations.java 69.36% <100%> (+1.44%) 24 <1> (+2) ⬆️
...connectors/flink/watermark/LowerBoundAssigner.java 66.66% <66.66%> (ø) 3 <3> (?)
...main/java/io/pravega/connectors/flink/Pravega.java 84.68% <71.42%> (-1.92%) 18 <0> (+1)
...o/pravega/connectors/flink/FlinkPravegaReader.java 83.14% <90%> (+2.37%) 30 <3> (+8) ⬆️

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 fc5085c...279e958. Read the comment docs.

Copy link
Contributor

@maddisondavid maddisondavid left a comment

Choose a reason for hiding this comment

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

LGTM

@maddisondavid maddisondavid merged commit cc2012f into master Oct 10, 2019
@maddisondavid maddisondavid deleted the feature-watermark branch October 10, 2019 09:41
* @param assignerWithTimeWindows the timestamp and watermark assigner.
* @return TableSourceReaderBuilder instance.
*/
// TODO: Due to the serialization validation for `connectorProperties`, only `public` `static-inner/outer` class implements
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Refer to #281

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants