Return-Path: X-Original-To: apmail-sqoop-dev-archive@www.apache.org Delivered-To: apmail-sqoop-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 04BA517DC9 for ; Fri, 31 Oct 2014 23:26:34 +0000 (UTC) Received: (qmail 18875 invoked by uid 500); 31 Oct 2014 23:26:33 -0000 Delivered-To: apmail-sqoop-dev-archive@sqoop.apache.org Received: (qmail 18832 invoked by uid 500); 31 Oct 2014 23:26:33 -0000 Mailing-List: contact dev-help@sqoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sqoop.apache.org Delivered-To: mailing list dev@sqoop.apache.org Received: (qmail 18821 invoked by uid 99); 31 Oct 2014 23:26:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Oct 2014 23:26:33 +0000 Date: Fri, 31 Oct 2014 23:26:33 +0000 (UTC) From: "Veena Basavaraj (JIRA)" To: dev@sqoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SQOOP-1638) Notification on Submission. 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/SQOOP-1638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14192732#comment-14192732 ] Veena Basavaraj commented on SQOOP-1638: ---------------------------------------- I see thanks for the info. I would like to document this somewhere it is a call back URL, Since it is not an external api. we can have a way not to expose this to the user I will take this ticket up separately to support this in a better way We dont even log the status in the logs. I dont see any persistence, does status method modify the record? It is more like update Status . > Notification on Submission. > --------------------------- > > Key: SQOOP-1638 > URL: https://issues.apache.org/jira/browse/SQOOP-1638 > Project: Sqoop > Issue Type: Sub-task > Reporter: Veena Basavaraj > Assignee: Veena Basavaraj > Fix For: 2.0.0 > > > What is this really supposed to do? > There was some hacky code to set this URL > {code} > // TODO: This should be outsourced somewhere more suitable than here > if(JobManager.getInstance().getNotificationBaseUrl() == null) { > String url = ctx.getRequest().getRequestURL().toString(); > JobManager.getInstance().setNotificationBaseUrl( > url.split("v1")[0] + "/v1/submission/notification/"); > } > {code} > But all it did was return status > {code} > private JsonBean handleNotification(RequestContext ctx, String sjid) { > LOG.debug("Received notification request for job " + sjid); > JobManager.getInstance().status(Long.parseLong(sjid)); > return JsonBean.EMPTY_BEAN; > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)