> On May 12, 2015, 3:26 p.m., abdelhakim deneche wrote:
> > exec/jdbc/src/main/java/org/apache/drill/jdbc/DrillConnectionImpl.java, 
> > line 101
> > <https://reviews.apache.org/r/34071/diff/1/?file=955966#file955966line101>
> >
> >     this will alter the user exception's message. Sometimes this will 
> > clutter the original error message making it less useful to the user

I wanted to keep the "Failure in starting embedded Drillbit" text in both cases 
(whether the caught exception is a UserExcption or some other exception) for 
giving context for the lower-level error (to report what failed to be 
accomplished (starting Drill) because of the binding or other failure) and for 
consistency for usability.


> On May 12, 2015, 3:26 p.m., abdelhakim deneche wrote:
> > exec/java-exec/src/main/java/org/apache/drill/exec/rpc/BasicServer.java, 
> > line 204
> > <https://reviews.apache.org/r/34071/diff/1/?file=955965#file955965line204>
> >
> >     build() already logs user exceptions at INFO level. Are you sure you 
> > want to log the same exception twice ?

No, I guess we don't need that.

Removed logging call.


- Daniel


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


On May 12, 2015, 5:59 a.m., Daniel Barclay wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/34071/
> -----------------------------------------------------------
> 
> (Updated May 12, 2015, 5:59 a.m.)
> 
> 
> Review request for drill, abdelhakim deneche, Mehant Baid, and Parth Chandra.
> 
> 
> Bugs: DRILL-3034
>     https://issues.apache.org/jira/browse/DRILL-3034
> 
> 
> Repository: drill-git
> 
> 
> Description
> -------
> 
> Applied UserException to can't-bind-to-port error.  [BasicServer]
> Added specific handling of UserException (above case or other) in 
> SQLException wrapping.  [DrillConnectionImpl]
> 
> 
> Diffs
> -----
> 
>   exec/java-exec/src/main/java/org/apache/drill/exec/rpc/BasicServer.java 
> a148436 
>   exec/jdbc/src/main/java/org/apache/drill/jdbc/DrillConnectionImpl.java 
> 30279e6 
> 
> Diff: https://reviews.apache.org/r/34071/diff/
> 
> 
> Testing
> -------
> 
> Manually tested in SQLLine and debugger.
> 
> Ran regular tests; no new failures.
> 
> 
> Thanks,
> 
> Daniel Barclay
> 
>

Reply via email to