Class PipelinedApproximateSubpartition
java.lang.Object
org.apache.flink.runtime.io.network.partition.ResultSubpartition
org.apache.flink.runtime.io.network.partition.PipelinedSubpartition
org.apache.flink.runtime.io.network.partition.PipelinedApproximateSubpartition
- All Implemented Interfaces:
ChannelStateHolder
A pipelined in-memory only subpartition, which allows to reconnect after failure. Only one view
is allowed at a time to read teh subpartition.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.flink.runtime.io.network.partition.ResultSubpartition
ResultSubpartition.BufferAndBacklog -
Field Summary
Fields inherited from class org.apache.flink.runtime.io.network.partition.ResultSubpartition
ADD_BUFFER_ERROR_CODE, parent, subpartitionInfo -
Method Summary
Modifier and TypeMethodDescriptioncreateReadView(BufferAvailabilityListener availabilityListener) To simply the view releasing threading model,releaseView()is called only before creating a new view.booleanMethods inherited from class org.apache.flink.runtime.io.network.partition.PipelinedSubpartition
abortCheckpoint, acknowledgeAllDataProcessed, add, alignedBarrierTimeout, bufferSize, finish, flush, getAvailabilityAndBacklog, getBuffersInBacklogUnsafe, getChannelStateCheckpointId, getNumberOfQueuedBuffers, getTotalNumberOfBuffersUnsafe, getTotalNumberOfBytesUnsafe, isReleased, release, setChannelStateWriter, toString, unsynchronizedGetNumberOfQueuedBuffersMethods inherited from class org.apache.flink.runtime.io.network.partition.ResultSubpartition
add, getSubPartitionIndex, getSubpartitionInfo, onConsumedSubpartition
-
Method Details
-
createReadView
To simply the view releasing threading model,releaseView()is called only before creating a new view.There is still one corner case when a downstream task fails continuously in a short period of time then multiple netty worker threads can createReadView at the same time. TODO: This problem will be solved in FLINK-19774
- Overrides:
createReadViewin classPipelinedSubpartition
-
isSupportChannelStateRecover
public boolean isSupportChannelStateRecover()- Overrides:
isSupportChannelStateRecoverin classPipelinedSubpartition
-