Return-Path: X-Original-To: apmail-flink-issues-archive@minotaur.apache.org Delivered-To: apmail-flink-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4E52F107E0 for ; Wed, 9 Sep 2015 09:12:46 +0000 (UTC) Received: (qmail 49471 invoked by uid 500); 9 Sep 2015 09:12:46 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 49309 invoked by uid 500); 9 Sep 2015 09:12:46 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 49126 invoked by uid 99); 9 Sep 2015 09:12:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Sep 2015 09:12:46 +0000 Date: Wed, 9 Sep 2015 09:12:46 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-2097) Add support for JobSessions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLINK-2097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14736515#comment-14736515 ] ASF GitHub Bot commented on FLINK-2097: --------------------------------------- Github user mxm commented on the pull request: https://github.com/apache/flink/pull/858#issuecomment-138848287 Of course! The following classes have been refactored in the course of integrating them with the session management: **Client** - Establish connection to JobManager on creation - Refactor run method into `runBlocking` and `runDetached` - Extract helper classes to generate the Plan - Make Optimizer and JobGraph generation methods `static` - Pass `ClassLoader` correctly (do not keep one per Client but rather let it be passed before submission) **CliFrontend** - `runBlocking` and `runDetached` methods by analogy with the Client class **ExecutionEnvironment**, **LocalEnvironment**, **RemoteEnvironment** - modified abstract class to support sessions (timeout and jobID generation) - handle session management via Reapers and ShutdownHooks **PlanExecutor**, **LocalExecutor**, **RemoteExecutor** - modified interface - support session termination - set JobID on Plan **JobManager** - keep ExecutionGraph as long as session has not expired Future issues: - Support for sessions in streaming. Currently streaming jobs are agnostic of sessions. - Representation of sessions in the JobManager web frontend. How do we represent updates to the ExecutionGraph in sessions? - Build features on top of session management (e.g. intermediate results) > Add support for JobSessions > --------------------------- > > Key: FLINK-2097 > URL: https://issues.apache.org/jira/browse/FLINK-2097 > Project: Flink > Issue Type: Sub-task > Components: JobManager > Affects Versions: 0.9 > Reporter: Stephan Ewen > Assignee: Maximilian Michels > Fix For: 0.10 > > > Sessions make sure that the JobManager does not immediately discard a JobGraph after execution, but keeps it around for further operations to be attached to the graph. By keeping the JobGraph around, the cached streams (intermediate data) are also kept, > That is the way of realizing interactive sessions on top of a streaming dataflow abstraction. > ExecutionGraphs should be kept as long as > - no timeout occurred or > - the session has not been explicitly ended -- This message was sent by Atlassian JIRA (v6.3.4#6332)