You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by sihuazhou <gi...@git.apache.org> on 2018/03/05 12:32:56 UTC

[GitHub] flink pull request #5635: [FLINK-8859][state backend] RocksDB backend should...

GitHub user sihuazhou opened a pull request:

    https://github.com/apache/flink/pull/5635

    [FLINK-8859][state backend] RocksDB backend should pass WriteOption to Rocks.put() when restoring

    ## What is the purpose of the change
    
    This PR fixes [FLINK-8859](https://issues.apache.org/jira/browse/FLINK-8859). We should pass `WriteOption` to Rocks.put() when restoring from handle (Both in full & incremental checkpoint). Because of `WriteOption.setDisableWAL(true)`, the performance can be increased by about 2 times.
    
    ## Brief change log
    
      - pass WriteOption to Rocks.put() when restoring
    
    ## Verifying this change
    The changes can be verified 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)
    
    ## Documentation
    
      - Does this pull request introduce a new feature? (no)


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/sihuazhou/flink pass_writeoption_2_put

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/5635.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #5635
    
----
commit 08109cb20d26bd1c8a04455b2fa914807a730a28
Author: sihuazhou <su...@...>
Date:   2018-03-05T12:21:27Z

    Pass the WriteOption to RocksDB.put() when restoring from handle.

----


---

[GitHub] flink pull request #5635: [FLINK-8859][state backend] RocksDB backend should...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/flink/pull/5635


---

[GitHub] flink issue #5635: [FLINK-8859][state backend] RocksDB backend should pass W...

Posted by sihuazhou <gi...@git.apache.org>.
Github user sihuazhou commented on the issue:

    https://github.com/apache/flink/pull/5635
  
    @StefanRRichter Could you please have a look at this? This is a trivial work, but can improve performance a lot (It looks like we forgot it when restoring).


---

[GitHub] flink issue #5635: [FLINK-8859][state backend] RocksDB backend should pass W...

Posted by StefanRRichter <gi...@git.apache.org>.
Github user StefanRRichter commented on the issue:

    https://github.com/apache/flink/pull/5635
  
    LGTM 👍 


---