You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by Nguyen Truong <ng...@gmail.com> on 2018/08/09 13:32:55 UTC

Review Request 68278: Add LOG message for git hash

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68278/
-----------------------------------------------------------

Review request for Sqoop.


Bugs: SQOOP-3359
    https://issues.apache.org/jira/browse/SQOOP-3359


Repository: sqoop-trunk


Description
-------

I added a log message for the git hash of the running Sqoop in the debug level.


Diffs
-----

  src/java/org/apache/sqoop/Sqoop.java 08ff82ca22cb2fcdffeb29661951d091a70c5bb9 


Diff: https://reviews.apache.org/r/68278/diff/1/


Testing
-------


Thanks,

Nguyen Truong


Re: Review Request 68278: Add LOG message for git hash

Posted by Fero Szabo via Review Board <no...@reviews.apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68278/#review207025
-----------------------------------------------------------




src/java/org/apache/sqoop/Sqoop.java
Lines 95 (patched)
<https://reviews.apache.org/r/68278/#comment290185>

    You could extract SqoopVersion into a local variable and reuse it.


- Fero Szabo


On Aug. 9, 2018, 1:32 p.m., Nguyen Truong wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/68278/
> -----------------------------------------------------------
> 
> (Updated Aug. 9, 2018, 1:32 p.m.)
> 
> 
> Review request for Sqoop.
> 
> 
> Bugs: SQOOP-3359
>     https://issues.apache.org/jira/browse/SQOOP-3359
> 
> 
> Repository: sqoop-trunk
> 
> 
> Description
> -------
> 
> I added a log message for the git hash of the running Sqoop in the debug level.
> 
> 
> Diffs
> -----
> 
>   src/java/org/apache/sqoop/Sqoop.java 08ff82ca22cb2fcdffeb29661951d091a70c5bb9 
> 
> 
> Diff: https://reviews.apache.org/r/68278/diff/1/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Nguyen Truong
> 
>


Re: Review Request 68278: Add LOG message for git hash

Posted by Boglarka Egyed <bo...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68278/#review207067
-----------------------------------------------------------


Ship it!




Very good idea to include these in the logs! :)

Thanks,
Bogi

- Boglarka Egyed


On Aug. 9, 2018, 8 p.m., Nguyen Truong wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/68278/
> -----------------------------------------------------------
> 
> (Updated Aug. 9, 2018, 8 p.m.)
> 
> 
> Review request for Sqoop.
> 
> 
> Bugs: SQOOP-3359
>     https://issues.apache.org/jira/browse/SQOOP-3359
> 
> 
> Repository: sqoop-trunk
> 
> 
> Description
> -------
> 
> I added a log message for the git hash of the running Sqoop in the debug level.
> 
> 
> Diffs
> -----
> 
>   src/java/org/apache/sqoop/Sqoop.java 08ff82ca22cb2fcdffeb29661951d091a70c5bb9 
> 
> 
> Diff: https://reviews.apache.org/r/68278/diff/3/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Nguyen Truong
> 
>


Re: Review Request 68278: Add LOG message for git hash

Posted by Nguyen Truong <ng...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68278/
-----------------------------------------------------------

(Updated Aug. 9, 2018, 8 p.m.)


Review request for Sqoop.


Bugs: SQOOP-3359
    https://issues.apache.org/jira/browse/SQOOP-3359


Repository: sqoop-trunk


Description
-------

I added a log message for the git hash of the running Sqoop in the debug level.


Diffs (updated)
-----

  src/java/org/apache/sqoop/Sqoop.java 08ff82ca22cb2fcdffeb29661951d091a70c5bb9 


Diff: https://reviews.apache.org/r/68278/diff/3/

Changes: https://reviews.apache.org/r/68278/diff/2-3/


Testing
-------


Thanks,

Nguyen Truong


Re: Review Request 68278: Add LOG message for git hash

Posted by Nguyen Truong <ng...@gmail.com>.

> On Aug. 9, 2018, 2:02 p.m., Szabolcs Vasas wrote:
> > src/java/org/apache/sqoop/Sqoop.java
> > Lines 95 (patched)
> > <https://reviews.apache.org/r/68278/diff/2/?file=2070783#file2070783line95>
> >
> >     I have just realized that VERSION and GIT_HASH are static final members of SqoopVersion so the best practice is to access them via class reference:
> >     SqoopVersion.VERSION
> >     SqoopVersion.GIT_HASH

Hi Szabolcs,

Yes, you're right. I will fix it. Thank you for the suggestion.

Best,
Nguyen


- Nguyen


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68278/#review207030
-----------------------------------------------------------


On Aug. 9, 2018, 1:53 p.m., Nguyen Truong wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/68278/
> -----------------------------------------------------------
> 
> (Updated Aug. 9, 2018, 1:53 p.m.)
> 
> 
> Review request for Sqoop.
> 
> 
> Bugs: SQOOP-3359
>     https://issues.apache.org/jira/browse/SQOOP-3359
> 
> 
> Repository: sqoop-trunk
> 
> 
> Description
> -------
> 
> I added a log message for the git hash of the running Sqoop in the debug level.
> 
> 
> Diffs
> -----
> 
>   src/java/org/apache/sqoop/Sqoop.java 08ff82ca22cb2fcdffeb29661951d091a70c5bb9 
> 
> 
> Diff: https://reviews.apache.org/r/68278/diff/2/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Nguyen Truong
> 
>


Re: Review Request 68278: Add LOG message for git hash

Posted by Szabolcs Vasas <va...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68278/#review207030
-----------------------------------------------------------



Hi Nguyen,

Thank you for submitting this patch, it is a nice little improvement for debugging.
I have left a minor comment, please take a look.

Szabolcs


src/java/org/apache/sqoop/Sqoop.java
Lines 95 (patched)
<https://reviews.apache.org/r/68278/#comment290190>

    I have just realized that VERSION and GIT_HASH are static final members of SqoopVersion so the best practice is to access them via class reference:
    SqoopVersion.VERSION
    SqoopVersion.GIT_HASH


- Szabolcs Vasas


On Aug. 9, 2018, 1:53 p.m., Nguyen Truong wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/68278/
> -----------------------------------------------------------
> 
> (Updated Aug. 9, 2018, 1:53 p.m.)
> 
> 
> Review request for Sqoop.
> 
> 
> Bugs: SQOOP-3359
>     https://issues.apache.org/jira/browse/SQOOP-3359
> 
> 
> Repository: sqoop-trunk
> 
> 
> Description
> -------
> 
> I added a log message for the git hash of the running Sqoop in the debug level.
> 
> 
> Diffs
> -----
> 
>   src/java/org/apache/sqoop/Sqoop.java 08ff82ca22cb2fcdffeb29661951d091a70c5bb9 
> 
> 
> Diff: https://reviews.apache.org/r/68278/diff/2/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Nguyen Truong
> 
>


Re: Review Request 68278: Add LOG message for git hash

Posted by Nguyen Truong <ng...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/68278/
-----------------------------------------------------------

(Updated Aug. 9, 2018, 1:53 p.m.)


Review request for Sqoop.


Bugs: SQOOP-3359
    https://issues.apache.org/jira/browse/SQOOP-3359


Repository: sqoop-trunk


Description
-------

I added a log message for the git hash of the running Sqoop in the debug level.


Diffs (updated)
-----

  src/java/org/apache/sqoop/Sqoop.java 08ff82ca22cb2fcdffeb29661951d091a70c5bb9 


Diff: https://reviews.apache.org/r/68278/diff/2/

Changes: https://reviews.apache.org/r/68278/diff/1-2/


Testing
-------


Thanks,

Nguyen Truong