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

[FLINK-11167][runtime] Optimize RocksDBListState#Put by removing the clear before put operation when input is not empty #7421

Merged

Conversation

klion26
Copy link
Member

@klion26 klion26 commented Jan 7, 2019

What is the purpose of the change

This pull request adjusts the clear's position in function updateInternal, so when the input values is not empty, we do not need to call the clear operation.

Verifying this change

This change is already covered by existing tests.

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

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

Documentation

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

@klion26 klion26 closed this Jan 8, 2019
@klion26 klion26 reopened this Jan 8, 2019
@klion26
Copy link
Member Author

klion26 commented Jan 8, 2019

Seems the failed tests are relevant, I'll dig into it.

@tzulitai
Copy link
Contributor

tzulitai commented Jan 8, 2019

Hi @klion26, the failing test is actually caused by this: https://issues.apache.org/jira/browse/FLINK-11280.

It shouldn't be relevant to your changes here, but I suggest to rebase again after we have a fix for FLINK-11280 in just to be safe.

@klion26
Copy link
Member Author

klion26 commented Jan 8, 2019

@tzulitai thank you for your quick reply. I'll rebase it after the problem have been fixed.

@tzulitai
Copy link
Contributor

tzulitai commented Jan 8, 2019

FLINK-11280 is fixed and merged to master now.

@klion26 klion26 force-pushed the FLINK-11167_OptimizeRocksDBListStatePut branch from 1148f26 to 45d7ce5 Compare January 9, 2019 01:13
@klion26
Copy link
Member Author

klion26 commented Jan 9, 2019

@tzulitai thank you for the feedback, I've rebased master and retriggered Travis again.

@klion26 klion26 closed this Jan 9, 2019
@klion26 klion26 reopened this Jan 9, 2019
@klion26
Copy link
Member Author

klion26 commented Feb 22, 2019

hi, @tzulitai can you help to review this pr please

Copy link
Contributor

@StefanRRichter StefanRRichter left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Merging.

@StefanRRichter StefanRRichter merged commit 03faeb9 into apache:master Apr 29, 2019
tianchen92 pushed a commit to tianchen92/flink that referenced this pull request May 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants