You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by Parth Chandra <pc...@maprtech.com> on 2015/05/06 02:18:10 UTC

Re: Review Request 33683: DRILL-2887: Fix bad applications of JdbcTest.connect(...).

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

Ship it!


Minor comment. Otherwise looks good.


exec/jdbc/src/test/java/org/apache/drill/jdbc/test/Drill2128GetColumnsDataTypeNotTypeCodeIntBugsTest.java
<https://reviews.apache.org/r/33683/#comment133377>

    (minor) Why not use the same pattern as the other tests that use Driver.connect(...).


- Parth Chandra


On April 29, 2015, 8:50 p.m., Daniel Barclay wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/33683/
> -----------------------------------------------------------
> 
> (Updated April 29, 2015, 8:50 p.m.)
> 
> 
> Review request for drill, Hanifi Gunes and Parth Chandra.
> 
> 
> Bugs: DRILL-2887
>     https://issues.apache.org/jira/browse/DRILL-2887
> 
> 
> Repository: drill-git
> 
> 
> Description
> -------
> 
> - Removed use of Jdbc.connect() from:
>   -- Drill2128GetColumnsDataTypeNotTypeCodeIntBugsTest
>   -- Drill2489CallsAfterCloseThrowExceptionsTest
> - Added (manual) test for use of auto-resetting connection.  [JdbcTest]
> - Documented need to avoid Jdbc.connect() in above and similar tests.
> - Add "document" TODO for JdbcTest.
> 
> 
> Diffs
> -----
> 
>   exec/jdbc/src/test/java/org/apache/drill/jdbc/ConnectionTransactionMethodsTest.java dd92c9b 
>   exec/jdbc/src/test/java/org/apache/drill/jdbc/DatabaseMetaDataGetColumnsTest.java 0f3d838 
>   exec/jdbc/src/test/java/org/apache/drill/jdbc/DatabaseMetaDataTest.java 8b885a4 
>   exec/jdbc/src/test/java/org/apache/drill/jdbc/JdbcTest.java e486898 
>   exec/jdbc/src/test/java/org/apache/drill/jdbc/ResultSetGetMethodConversionsTest.java eced72b 
>   exec/jdbc/src/test/java/org/apache/drill/jdbc/test/Bug1735ConnectionCloseTest.java 78a8af2 
>   exec/jdbc/src/test/java/org/apache/drill/jdbc/test/Drill2128GetColumnsDataTypeNotTypeCodeIntBugsTest.java 38c6d46 
>   exec/jdbc/src/test/java/org/apache/drill/jdbc/test/Drill2463GetNullsFailedWithAssertionsBugTest.java 1d1361a 
>   exec/jdbc/src/test/java/org/apache/drill/jdbc/test/Drill2489CallsAfterCloseThrowExceptionsTest.java 3282945 
> 
> Diff: https://reviews.apache.org/r/33683/diff/
> 
> 
> Testing
> -------
> 
> Ran regular tests; no new failures.
> 
> 
> Thanks,
> 
> Daniel Barclay
> 
>


Re: Review Request 33683: DRILL-2887: Fix bad applications of JdbcTest.connect(...).

Posted by Daniel Barclay <db...@maprtech.com>.

> On May 6, 2015, 12:18 a.m., Parth Chandra wrote:
> > exec/jdbc/src/test/java/org/apache/drill/jdbc/test/Drill2128GetColumnsDataTypeNotTypeCodeIntBugsTest.java, line 57
> > <https://reviews.apache.org/r/33683/diff/1/?file=945392#file945392line57>
> >
> >     (minor) Why not use the same pattern as the other tests that use Driver.connect(...).

Roger.  (I'll try to revisit that, determine which pattern should be used, and clean others up.)


- Daniel


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


On April 29, 2015, 8:50 p.m., Daniel Barclay wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/33683/
> -----------------------------------------------------------
> 
> (Updated April 29, 2015, 8:50 p.m.)
> 
> 
> Review request for drill, Hanifi Gunes and Parth Chandra.
> 
> 
> Bugs: DRILL-2887
>     https://issues.apache.org/jira/browse/DRILL-2887
> 
> 
> Repository: drill-git
> 
> 
> Description
> -------
> 
> - Removed use of Jdbc.connect() from:
>   -- Drill2128GetColumnsDataTypeNotTypeCodeIntBugsTest
>   -- Drill2489CallsAfterCloseThrowExceptionsTest
> - Added (manual) test for use of auto-resetting connection.  [JdbcTest]
> - Documented need to avoid Jdbc.connect() in above and similar tests.
> - Add "document" TODO for JdbcTest.
> 
> 
> Diffs
> -----
> 
>   exec/jdbc/src/test/java/org/apache/drill/jdbc/ConnectionTransactionMethodsTest.java dd92c9b 
>   exec/jdbc/src/test/java/org/apache/drill/jdbc/DatabaseMetaDataGetColumnsTest.java 0f3d838 
>   exec/jdbc/src/test/java/org/apache/drill/jdbc/DatabaseMetaDataTest.java 8b885a4 
>   exec/jdbc/src/test/java/org/apache/drill/jdbc/JdbcTest.java e486898 
>   exec/jdbc/src/test/java/org/apache/drill/jdbc/ResultSetGetMethodConversionsTest.java eced72b 
>   exec/jdbc/src/test/java/org/apache/drill/jdbc/test/Bug1735ConnectionCloseTest.java 78a8af2 
>   exec/jdbc/src/test/java/org/apache/drill/jdbc/test/Drill2128GetColumnsDataTypeNotTypeCodeIntBugsTest.java 38c6d46 
>   exec/jdbc/src/test/java/org/apache/drill/jdbc/test/Drill2463GetNullsFailedWithAssertionsBugTest.java 1d1361a 
>   exec/jdbc/src/test/java/org/apache/drill/jdbc/test/Drill2489CallsAfterCloseThrowExceptionsTest.java 3282945 
> 
> Diff: https://reviews.apache.org/r/33683/diff/
> 
> 
> Testing
> -------
> 
> Ran regular tests; no new failures.
> 
> 
> Thanks,
> 
> Daniel Barclay
> 
>