You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/04/14 04:39:06 UTC

[GitHub] [flink] klion26 opened a new pull request #11722: [FLINK-5763][state backends] Make savepoints self-contained and relocatable

klion26 opened a new pull request #11722: [FLINK-5763][state backends] Make savepoints self-contained and relocatable
URL: https://github.com/apache/flink/pull/11722
 
 
   ## What is the purpose of the change
   
   This pr wants to make savepoint self-contained and relocatable.
   
   ## Brief change log
   
     - Snapshot relative state handle to the file and write the base path in metadata of savepoint
     - Add option to change the base path for all the savepoint operations.
   
   
   ## Verifying this change
   
   - SavepointITCase
   
   ## 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, Kubernetes/Yarn/Mesos, ZooKeeper: (no)
     - The S3 file system connector: (no )
   
   ## Documentation
   
     - Does this pull request introduce a new feature? (yes)
     - If yes, how is the feature documented? (docs)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] StephanEwen commented on issue #11722: [FLINK-5763][state backends] Make savepoints self-contained and relocatable

Posted by GitBox <gi...@apache.org>.
StephanEwen commented on issue #11722: [FLINK-5763][state backends] Make savepoints self-contained and relocatable
URL: https://github.com/apache/flink/pull/11722#issuecomment-614927614
 
 
   I dug a bit through the code to try and understand the design here.
   
   *(A high level description of the approach would really help here. Because the way to use this is not described in the PR, I need to re-engineer what is the intended way of using this (and I am partially guessing).*
   
   It looks like the workflow is the following:
     - The path is split up into a base and a relative path before metadata serialization.
     - Then the savepoint is moved, then the user needs to resume the savepoint and specify the savepoint, plus the new "relocated path".
     - That relocated path is injected during metadata deserialization.
   
   I would be good if the solution would work without needing to specify the "relocate path" at all. It makes it harder to use for users and it also should not be necessary. That means dropping the config option, the CLI parameter, the REST parameter. That "relocate path" is also a bit redundant, because the "pointer" used to locate the savepoint is already that path (or it can be derived from that).
   
   What do you think about the following changes?
   
     - The `RelativeFileStateHandle` extends the `FileStateHandle`, for transparency. It has the full path, but also a the relative part of the path.
     - The `FsCheckpointStreamFactory` directly creates `RelativeFileStateHandle` if the state is created in the exclusive directory. That way we work around the "prefix matching" of the paths when writing the metadata out.
     - During metadata serialization, the only `RelativeFileStateHandle`'s relative part is written.
     - The `MetadataSerializer` takes the "external pointer" as an additional argument in the "deserialize" method.
     - In the "deserialize" method, when encountering a `RelativeFileStateHandle` for the first time, it constructs the base path, using `((FsCompletedCheckpointStorageLocation) (AbstractFsCheckpointStorage.resolveCheckpointPointer(pointer))).exclusiveCheckpointDir()`
     - When it reads a `RelativeFileStateHandle`, it reads only the relative part and constructs the full path from the base path and relative path.
   
     - This solution is slightly tight-coupled to the Fs Storage, but we have an easy way to decouple that in a follow-up step.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11722: [FLINK-5763][state backends] Make savepoints self-contained and relocatable

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11722: [FLINK-5763][state backends] Make savepoints self-contained and relocatable
URL: https://github.com/apache/flink/pull/11722#issuecomment-613227820
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "status" : "FAILURE",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/160153062",
       "triggerID" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7426",
       "triggerID" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "triggerType" : "PUSH"
     }, {
       "hash" : "23462f5a16a9bd7d7a969f052d4a82bf68992233",
       "status" : "PENDING",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/160190680",
       "triggerID" : "23462f5a16a9bd7d7a969f052d4a82bf68992233",
       "triggerType" : "PUSH"
     }, {
       "hash" : "23462f5a16a9bd7d7a969f052d4a82bf68992233",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7455",
       "triggerID" : "23462f5a16a9bd7d7a969f052d4a82bf68992233",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 0923302d1a1a9b672e3d6c24644bc22b476461a0 Travis: [FAILURE](https://travis-ci.com/github/flink-ci/flink/builds/160153062) Azure: [FAILURE](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7426) 
   * 23462f5a16a9bd7d7a969f052d4a82bf68992233 Travis: [PENDING](https://travis-ci.com/github/flink-ci/flink/builds/160190680) Azure: [PENDING](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7455) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11722: [FLINK-5763][state backends] Make savepoints self-contained and relocatable

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11722: [FLINK-5763][state backends] Make savepoints self-contained and relocatable
URL: https://github.com/apache/flink/pull/11722#issuecomment-613227820
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/160153062",
       "triggerID" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7426",
       "triggerID" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "triggerType" : "PUSH"
     }, {
       "hash" : "23462f5a16a9bd7d7a969f052d4a82bf68992233",
       "status" : "SUCCESS",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/160190680",
       "triggerID" : "23462f5a16a9bd7d7a969f052d4a82bf68992233",
       "triggerType" : "PUSH"
     }, {
       "hash" : "23462f5a16a9bd7d7a969f052d4a82bf68992233",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7455",
       "triggerID" : "23462f5a16a9bd7d7a969f052d4a82bf68992233",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 23462f5a16a9bd7d7a969f052d4a82bf68992233 Travis: [SUCCESS](https://travis-ci.com/github/flink-ci/flink/builds/160190680) Azure: [PENDING](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7455) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot commented on issue #11722: [FLINK-5763][state backends] Make savepoints self-contained and relocatable

Posted by GitBox <gi...@apache.org>.
flinkbot commented on issue #11722: [FLINK-5763][state backends] Make savepoints self-contained and relocatable
URL: https://github.com/apache/flink/pull/11722#issuecomment-613222228
 
 
   Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community
   to review your pull request. We will use this comment to track the progress of the review.
   
   
   ## Automated Checks
   Last check on commit 0923302d1a1a9b672e3d6c24644bc22b476461a0 (Tue Apr 14 04:40:56 UTC 2020)
   
   **Warnings:**
    * No documentation files were touched! Remember to keep the Flink docs up to date!
    * **This pull request references an unassigned [Jira ticket](https://issues.apache.org/jira/browse/FLINK-5763).** According to the [code contribution guide](https://flink.apache.org/contributing/contribute-code.html), tickets need to be assigned before starting with the implementation work.
   
   
   <sub>Mention the bot in a comment to re-run the automated checks.</sub>
   ## Review Progress
   
   * ❓ 1. The [description] looks good.
   * ❓ 2. There is [consensus] that the contribution should go into to Flink.
   * ❓ 3. Needs [attention] from.
   * ❓ 4. The change fits into the overall [architecture].
   * ❓ 5. Overall code [quality] is good.
   
   Please see the [Pull Request Review Guide](https://flink.apache.org/contributing/reviewing-prs.html) for a full explanation of the review process.<details>
    The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot approve description` to approve one or more aspects (aspects: `description`, `consensus`, `architecture` and `quality`)
    - `@flinkbot approve all` to approve all aspects
    - `@flinkbot approve-until architecture` to approve everything until `architecture`
    - `@flinkbot attention @username1 [@username2 ..]` to require somebody's attention
    - `@flinkbot disapprove architecture` to remove an approval you gave earlier
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11722: [FLINK-5763][state backends] Make savepoints self-contained and relocatable

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11722: [FLINK-5763][state backends] Make savepoints self-contained and relocatable
URL: https://github.com/apache/flink/pull/11722#issuecomment-613227820
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "status" : "DELETED",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/160153062",
       "triggerID" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "status" : "DELETED",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7426",
       "triggerID" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "triggerType" : "PUSH"
     }, {
       "hash" : "23462f5a16a9bd7d7a969f052d4a82bf68992233",
       "status" : "SUCCESS",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/160190680",
       "triggerID" : "23462f5a16a9bd7d7a969f052d4a82bf68992233",
       "triggerType" : "PUSH"
     }, {
       "hash" : "23462f5a16a9bd7d7a969f052d4a82bf68992233",
       "status" : "SUCCESS",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7455",
       "triggerID" : "23462f5a16a9bd7d7a969f052d4a82bf68992233",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 23462f5a16a9bd7d7a969f052d4a82bf68992233 Travis: [SUCCESS](https://travis-ci.com/github/flink-ci/flink/builds/160190680) Azure: [SUCCESS](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7455) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11722: [FLINK-5763][state backends] Make savepoints self-contained and relocatable

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11722: [FLINK-5763][state backends] Make savepoints self-contained and relocatable
URL: https://github.com/apache/flink/pull/11722#issuecomment-613227820
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "status" : "FAILURE",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/160153062",
       "triggerID" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7426",
       "triggerID" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "triggerType" : "PUSH"
     }, {
       "hash" : "23462f5a16a9bd7d7a969f052d4a82bf68992233",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "23462f5a16a9bd7d7a969f052d4a82bf68992233",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 0923302d1a1a9b672e3d6c24644bc22b476461a0 Travis: [FAILURE](https://travis-ci.com/github/flink-ci/flink/builds/160153062) Azure: [FAILURE](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7426) 
   * 23462f5a16a9bd7d7a969f052d4a82bf68992233 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot commented on issue #11722: [FLINK-5763][state backends] Make savepoints self-contained and relocatable

Posted by GitBox <gi...@apache.org>.
flinkbot commented on issue #11722: [FLINK-5763][state backends] Make savepoints self-contained and relocatable
URL: https://github.com/apache/flink/pull/11722#issuecomment-613227820
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 0923302d1a1a9b672e3d6c24644bc22b476461a0 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11722: [FLINK-5763][state backends] Make savepoints self-contained and relocatable

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11722: [FLINK-5763][state backends] Make savepoints self-contained and relocatable
URL: https://github.com/apache/flink/pull/11722#issuecomment-613227820
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "status" : "FAILURE",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/160153062",
       "triggerID" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "status" : "FAILURE",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7426",
       "triggerID" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 0923302d1a1a9b672e3d6c24644bc22b476461a0 Travis: [FAILURE](https://travis-ci.com/github/flink-ci/flink/builds/160153062) Azure: [FAILURE](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7426) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [flink] flinkbot edited a comment on issue #11722: [FLINK-5763][state backends] Make savepoints self-contained and relocatable

Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on issue #11722: [FLINK-5763][state backends] Make savepoints self-contained and relocatable
URL: https://github.com/apache/flink/pull/11722#issuecomment-613227820
 
 
   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "status" : "PENDING",
       "url" : "https://travis-ci.com/github/flink-ci/flink/builds/160153062",
       "triggerID" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "triggerType" : "PUSH"
     }, {
       "hash" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "status" : "PENDING",
       "url" : "https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7426",
       "triggerID" : "0923302d1a1a9b672e3d6c24644bc22b476461a0",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 0923302d1a1a9b672e3d6c24644bc22b476461a0 Travis: [PENDING](https://travis-ci.com/github/flink-ci/flink/builds/160153062) Azure: [PENDING](https://dev.azure.com/rmetzger/5bd3ef0a-4359-41af-abca-811b04098d2e/_build/results?buildId=7426) 
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run travis` re-run the last Travis build
    - `@flinkbot run azure` re-run the last Azure build
   </details>

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services