prioritizedOperatorSubtaskStates.getPrioritizedManagedKeyedState());
protected OperatorStateBackend operatorStateBackend( String operatorIdentifierText, PrioritizedOperatorSubtaskState prioritizedOperatorSubtaskStates, CloseableRegistry backendCloseableRegistry) throws Exception { String logDescription = "operator state backend for " + operatorIdentifierText; BackendRestorerProcedure<OperatorStateBackend, OperatorStateHandle> backendRestorer = new BackendRestorerProcedure<>( () -> stateBackend.createOperatorStateBackend(environment, operatorIdentifierText), backendCloseableRegistry, logDescription); return backendRestorer.createAndRestore( prioritizedOperatorSubtaskStates.getPrioritizedManagedOperatorState()); }
prioritizedOperatorSubtaskStates.getPrioritizedRawKeyedState().iterator()); streamTaskCloseableRegistry.registerCloseable(rawKeyedStateInputs); prioritizedOperatorSubtaskStates.getPrioritizedRawOperatorState().iterator()); streamTaskCloseableRegistry.registerCloseable(rawOperatorStateInputs); prioritizedOperatorSubtaskStates.isRestored(), operatorStateBackend, keyedStatedBackend,
/** * Returns the raw keyed state from the job manager, which represents the ground truth about what this state * should represent. This is the alternative with lowest priority. */ @Nonnull public StateObjectCollection<KeyedStateHandle> getJobManagerRawKeyedState() { return lastElement(prioritizedRawKeyedState); }
return PrioritizedOperatorSubtaskState.emptyNotRestored(); return PrioritizedOperatorSubtaskState.emptyNotRestored();
(ref, alt) -> ref.getStateNameToPartitionOffsets().equals(alt.getStateNameToPartitionOffsets()); return new PrioritizedOperatorSubtaskState( resolvePrioritizedAlternatives( jobManagerState.getManagedKeyedState(),
/** * Returns the managed keyed state from the job manager, which represents the ground truth about what this state * should represent. This is the alternative with lowest priority. */ @Nonnull public StateObjectCollection<KeyedStateHandle> getJobManagerManagedKeyedState() { return lastElement(prioritizedManagedKeyedState); }
return PrioritizedOperatorSubtaskState.emptyNotRestored(); return PrioritizedOperatorSubtaskState.emptyNotRestored();
(ref, alt) -> ref.getStateNameToPartitionOffsets().equals(alt.getStateNameToPartitionOffsets()); return new PrioritizedOperatorSubtaskState( resolvePrioritizedAlternatives( jobManagerState.getManagedKeyedState(),
prioritizedOperatorSubtaskStates.getPrioritizedRawKeyedState().iterator()); streamTaskCloseableRegistry.registerCloseable(rawKeyedStateInputs); prioritizedOperatorSubtaskStates.getPrioritizedRawOperatorState().iterator()); streamTaskCloseableRegistry.registerCloseable(rawOperatorStateInputs); prioritizedOperatorSubtaskStates.isRestored(), operatorStateBackend, keyedStatedBackend,
/** * Returns the managed operator state from the job manager, which represents the ground truth about what this state * should represent. This is the alternative with lowest priority. */ @Nonnull public StateObjectCollection<OperatorStateHandle> getJobManagerManagedOperatorState() { return lastElement(prioritizedManagedOperatorState); }
return PrioritizedOperatorSubtaskState.emptyNotRestored(); return PrioritizedOperatorSubtaskState.emptyNotRestored();
(ref, alt) -> ref.getStateNameToPartitionOffsets().equals(alt.getStateNameToPartitionOffsets()); return new PrioritizedOperatorSubtaskState( resolvePrioritizedAlternatives( jobManagerState.getManagedKeyedState(),
protected OperatorStateBackend operatorStateBackend( String operatorIdentifierText, PrioritizedOperatorSubtaskState prioritizedOperatorSubtaskStates, CloseableRegistry backendCloseableRegistry) throws Exception { String logDescription = "operator state backend for " + operatorIdentifierText; BackendRestorerProcedure<OperatorStateBackend, OperatorStateHandle> backendRestorer = new BackendRestorerProcedure<>( () -> stateBackend.createOperatorStateBackend(environment, operatorIdentifierText), backendCloseableRegistry, logDescription); return backendRestorer.createAndRestore( prioritizedOperatorSubtaskStates.getPrioritizedManagedOperatorState()); }
prioritizedOperatorSubtaskStates.getPrioritizedManagedKeyedState());
prioritizedOperatorSubtaskStates.getPrioritizedRawKeyedState().iterator()); streamTaskCloseableRegistry.registerCloseable(rawKeyedStateInputs); prioritizedOperatorSubtaskStates.getPrioritizedRawOperatorState().iterator()); streamTaskCloseableRegistry.registerCloseable(rawOperatorStateInputs); prioritizedOperatorSubtaskStates.isRestored(), operatorStateBackend, keyedStatedBackend,
/** * Returns the raw keyed state from the job manager, which represents the ground truth about what this state * should represent. This is the alternative with lowest priority. */ @Nonnull public StateObjectCollection<KeyedStateHandle> getJobManagerRawKeyedState() { return lastElement(prioritizedRawKeyedState); }
protected OperatorStateBackend operatorStateBackend( String operatorIdentifierText, PrioritizedOperatorSubtaskState prioritizedOperatorSubtaskStates, CloseableRegistry backendCloseableRegistry) throws Exception { String logDescription = "operator state backend for " + operatorIdentifierText; BackendRestorerProcedure<OperatorStateBackend, OperatorStateHandle> backendRestorer = new BackendRestorerProcedure<>( () -> stateBackend.createOperatorStateBackend(environment, operatorIdentifierText), backendCloseableRegistry, logDescription); return backendRestorer.createAndRestore( prioritizedOperatorSubtaskStates.getPrioritizedManagedOperatorState()); }
prioritizedOperatorSubtaskStates.getPrioritizedManagedKeyedState());
/** * Returns the managed operator state from the job manager, which represents the ground truth about what this state * should represent. This is the alternative with lowest priority. */ @Nonnull public StateObjectCollection<OperatorStateHandle> getJobManagerManagedOperatorState() { return lastElement(prioritizedManagedOperatorState); }