Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Sqoop >> mail # dev >> Review Request 12713: SQOOP-1142 Sqoop2: Provide creater and last edited by to metadata structures


Copy link to this message
-
Re: Review Request 12713: SQOOP-1142 Sqoop2: Provide creater and last edited by to metadata structures

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/12713/#review24060
-----------------------------------------------------------
Hi Mengwei,
thank you very much for incorporating my feedback. I do have additional couple of notes:
common/src/main/java/org/apache/sqoop/common/EventContext.java
<https://reviews.apache.org/r/12713/#comment47903>

    This class seems to be strictly related to server component and as a result should not be available in the common module that is shared between client and server. I would suggest to create a new package "org.apache.sqoop.request" for it in module "core".

common/src/main/java/org/apache/sqoop/common/EventContext.java
<https://reviews.apache.org/r/12713/#comment47902>

    I believe that the EventContext do not need to be serialized anywhere and the access to each item should be as fast as possible as it will be done in each request. As a result I would suggest to use a normal properties rather then the Map. I believe that this context do not even need to extend the MutableMapContext class due to it's very specific use case.
    
    Can we also rename the class a bit to more descriptive about the usage? Perhaps HttpEventContext or something similar.
Jarcec

- Jarek Cecho
On July 24, 2013, 5:55 p.m., Mengwei Ding wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/12713/
> -----------------------------------------------------------
>
> (Updated July 24, 2013, 5:55 p.m.)
>
>
> Review request for Sqoop, Abraham Elmahrek, Hari Shreedharan, and Jarek Cecho.
>
>
> Bugs: SQOOP-1142
>     https://issues.apache.org/jira/browse/SQOOP-1142
>
>
> Repository: sqoop-sqoop2
>
>
> Description
> -------
>
> commit ec9fff7a8f45632e25f0138eb1991007a5967b06
> Author: Mengwei Ding <[EMAIL PROTECTED]>
> Date:   Wed Jul 17 10:48:05 2013 -0700
>
>     SQOOP-1142 Sqoop2: Provide creater and last edited by to metadata structures
>
> :100644 100644 b7b0436... e2dc8dc... M client/src/main/java/org/apache/sqoop/client/core/Constants.java
> :100644 100644 32bca71... 08d0a70... M client/src/main/java/org/apache/sqoop/client/shell/ShowConnectionFunction.java
> :100644 100644 590e4e7... 7b8b43e... M client/src/main/java/org/apache/sqoop/client/shell/ShowJobFunction.java
> :100644 100644 cbc956d... 10b3130... M client/src/main/java/org/apache/sqoop/client/utils/SubmissionDisplayer.java
> :100644 100644 5537a8e... d9cc029... M client/src/main/resources/client-resource.properties
> :000000 100644 0000000... 3c5c003... A common/src/main/java/org/apache/sqoop/common/EventContext.java
> :100644 100644 b4e986a... 61cbf7c... M common/src/main/java/org/apache/sqoop/json/ConnectionBean.java
> :100644 100644 a830646... 8baea71... M common/src/main/java/org/apache/sqoop/json/JobBean.java
> :100644 100644 79490f8... 61d6576... M common/src/main/java/org/apache/sqoop/json/SubmissionBean.java
> :100644 100644 98768d6... ea0f71f... M common/src/main/java/org/apache/sqoop/json/util/FormSerialization.java
> :100644 100644 137e71c... 6bbbed5... M common/src/main/java/org/apache/sqoop/model/MAccountableEntity.java
> :100644 100644 dd1d75b... 7aa6356... M common/src/test/java/org/apache/sqoop/json/TestConnectionBean.java
> :100644 100644 3b56171... d87655e... M common/src/test/java/org/apache/sqoop/json/TestSubmissionBean.java
> :100644 100644 4ea42b1... 9d1c622... M common/src/test/java/org/apache/sqoop/model/TestMAccountableEntity.java
> :100644 100644 9f09982... fcef47c... M core/src/main/java/org/apache/sqoop/framework/JobManager.java
> :100644 100644 f717abf... a510a6d... M repository/repository-derby/src/main/java/org/apache/sqoop/repository/derby/DerbyRepositoryHandler.java
> :100644 100644 68cb1c0... 85b09ce... M repository/repository-derby/src/main/java/org/apache/sqoop/repository/derby/DerbySchemaConstants.java