flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bjlovegithub <...@git.apache.org>
Subject [GitHub] flink issue #2629: [FLINK-4391] Provide support for asynchronous operations ...
Date Mon, 07 Nov 2016 07:35:04 GMT
Github user bjlovegithub commented on the issue:

    Maybe this is a solution. We will not think about changing the type of `checkpointLock`,
which is an `Object` ans quite efficient, and not change the order of  `broadcastBarriers`
and `operator.snapshotState()`. By placing **pause** `EmitterThread` codes in `StreamTask.performCheckpoint()`,
like this:  
    `	private boolean performCheckpoint(CheckpointMetaData checkpointMetaData) throws Exception
    		LOG.debug("Starting checkpoint {} on task {}", checkpointMetaData.getCheckpointId(),
    		synchronized (lock) {
    			if (isRunning) {
    				// stop working threads first.
    				for (StreamOperator operator : operatorChain.getAllOperators()) {
    					if (operator instanceof AsyncWaitOperator) {
    				// broadcast barriers after snapshot operators' states.
    						checkpointMetaData.getCheckpointId(), checkpointMetaData.getTimestamp()
    				return true;
    			} else {
    				return false;

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.

View raw message