sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "GuangSheng (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SQOOP-1269) when update connection info,give more error info if validate failed
Date Tue, 21 Jan 2014 08:55:19 GMT

    [ https://issues.apache.org/jira/browse/SQOOP-1269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13877339#comment-13877339
] 

GuangSheng commented on SQOOP-1269:
-----------------------------------

JsonBean org.apache.sqoop.handler.ConnectionRequestHandler.createUpdateConnection(RequestContext
ctx, boolean update){
........
   
 // If we're good enough let's perform the action
    if(finalStatus.canProceed()) {
      if(update) {
        AuditLoggerManager.getInstance()
            .logAuditEvent(ctx.getUserName(), ctx.getRequest().getRemoteAddr(),
            "update", "connection", String.valueOf(connection.getPersistenceId()));

        connection.setLastUpdateUser(username);
        RepositoryManager.getInstance().getRepository().updateConnection(connection);
      } else {
        connection.setCreationUser(username);
        connection.setLastUpdateUser(username);
        RepositoryManager.getInstance().getRepository().createConnection(connection);
        outputBean.setId(connection.getPersistenceId());

        AuditLoggerManager.getInstance()
            .logAuditEvent(ctx.getUserName(), ctx.getRequest().getRemoteAddr(),
            "create", "connection", String.valueOf(connection.getPersistenceId()));
      }
    }
............
}

can get a error log info or throw a exception? when finalStatus can't proceed

> when update connection info,give more error info if validate failed
> -------------------------------------------------------------------
>
>                 Key: SQOOP-1269
>                 URL: https://issues.apache.org/jira/browse/SQOOP-1269
>             Project: Sqoop
>          Issue Type: Improvement
>          Components: sqoop2-server
>    Affects Versions: 1.99.2
>            Reporter: GuangSheng
>            Priority: Minor
>




--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message