flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tillrohrmann <...@git.apache.org>
Subject [GitHub] flink pull request #2608: [FLINK-4512] [FLIP-10] Add option to persist perio...
Date Tue, 11 Oct 2016 14:16:21 GMT
Github user tillrohrmann commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2608#discussion_r82787864
  
    --- Diff: flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/savepoint/SavepointLoader.java
---
    @@ -48,13 +48,12 @@
     	public static CompletedCheckpoint loadAndValidateSavepoint(
     			JobID jobId,
     			Map<JobVertexID, ExecutionJobVertex> tasks,
    -			SavepointStore savepointStore,
     			String savepointPath) throws Exception {
     
     		// (1) load the savepoint
    -		Savepoint savepoint = savepointStore.loadSavepoint(savepointPath);
    +		Savepoint savepoint = SavepointStore.loadSavepoint(savepointPath);
     		final Map<JobVertexID, TaskState> taskStates = new HashMap<>(savepoint.getTaskStates().size());
    -		
    +
     		// (2) validate it (parallelism, etc)
     		for (TaskState taskState : savepoint.getTaskStates()) {
     			ExecutionJobVertex executionJobVertex = tasks.get(taskState.getJobVertexID());
    --- End diff --
    
    Just a question for line 74. Shouldn't this be `taskState.getMaxParallelism()` and `executionJobVertex.getParallelism()`?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message