Skip to content

[FLINK-6007] Allow key removal from within the watermark callback.#3514

Closed
kl0u wants to merge 1 commit intoapache:masterfrom
kl0u:watermark-callback-fix
Closed

[FLINK-6007] Allow key removal from within the watermark callback.#3514
kl0u wants to merge 1 commit intoapache:masterfrom
kl0u:watermark-callback-fix

Conversation

@kl0u
Copy link
Contributor

@kl0u kl0u commented Mar 10, 2017

When deleting a key from the InternalWatermarkCallbackService, the deleted key is put into a separate set, and the actual deletion happens after the iteration over all keys has finished. To avoid
checkpointing the deletion set, the actual cleanup also happens upon checkpointing.

R @aljoscha

Copy link
Contributor

@aljoscha aljoscha left a comment

Choose a reason for hiding this comment

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

This looks good! 👍

Please go ahead and merge.

/**
* An array of sets of keys keeping the keys "to delete" split
* by the key-group they belong to. Each key-group has one set.
* <p>
Copy link
Contributor

Choose a reason for hiding this comment

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

IMHO, the formatting on paragraphs should be:

Some text bla bla black

<p>Other Text sdfasfaf

on the other hand, we don't have a style guide on that and no checkstyle for checking it .... 😉

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed this.

@kl0u kl0u force-pushed the watermark-callback-fix branch from d3a1b6e to e54fc3b Compare March 13, 2017 12:37
@kl0u
Copy link
Contributor Author

kl0u commented Mar 13, 2017

Thanks for the review @aljoscha . Waiting for travis and then merging.

When deleting a key from the InternalWatermarkCallbackService, the
deleted key is put into a separate set, and the actual deletion
happens after the iteration over all keys has finished. To avoid
checkpointing the deletion set, the actual cleanup also happens
upon checkpointing.
@kl0u kl0u force-pushed the watermark-callback-fix branch from e54fc3b to 14c1941 Compare March 13, 2017 16:29
@kl0u
Copy link
Contributor Author

kl0u commented Mar 13, 2017

Merged at 14c1941

@kl0u kl0u closed this Mar 13, 2017
@kl0u kl0u deleted the watermark-callback-fix branch March 15, 2017 19:27
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.

3 participants