|
|
+
Juhani Connolly 2012-11-16, 02:03
+
Jarek Jarcec Cecho 2012-11-16, 02:11
+
Hari Shreedharan 2012-11-15, 01:59
+
Hari Shreedharan 2012-11-16, 09:48
-
Re: Review Request: SQOOP-690. Fix threading issues in SqoopOutputFormatLoadExecutorJarek Cecho 2012-11-16, 17:22
----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/8063/#review13520 ----------------------------------------------------------- Hi Hari, thank you very much for your patch. Couple of nits: 1) Would you mind putting space between "//" in your comments? E.g. "// This is comment" rather than "//This is comment" execution/mapreduce/src/main/java/org/apache/sqoop/job/mr/SqoopOutputFormatLoadExecutor.java <https://reviews.apache.org/r/8063/#comment28983> I'm not sure if this comment is still valid. execution/mapreduce/src/main/java/org/apache/sqoop/job/mr/SqoopOutputFormatLoadExecutor.java <https://reviews.apache.org/r/8063/#comment28984> I believe that the comment is no longer valid right as we're not using "yield". execution/mapreduce/src/main/java/org/apache/sqoop/job/mr/SqoopOutputFormatLoadExecutor.java <https://reviews.apache.org/r/8063/#comment28986> Typo in world "inerrupt". execution/mapreduce/src/main/java/org/apache/sqoop/job/mr/SqoopOutputFormatLoadExecutor.java <https://reviews.apache.org/r/8063/#comment28987> Rhetorical question. Can it happen that filled.acquire will throw InterruptedException exception when writerFinished = false? Because if so we might consider putting this code into loop or call acquireUninterruptibly instead. execution/mapreduce/src/main/java/org/apache/sqoop/job/mr/SqoopOutputFormatLoadExecutor.java <https://reviews.apache.org/r/8063/#comment28985> I would suggest to log the exception in addition to storing it for later usage. Jarcec - Jarek Cecho On Nov. 16, 2012, 9:48 a.m., Hari Shreedharan wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/8063/ > ----------------------------------------------------------- > > (Updated Nov. 16, 2012, 9:48 a.m.) > > > Review request for Sqoop. > > > Description > ------- > > Improved thread handling in SqoopOutputFormatLoadExecutor. Removed the synchronized blocks and wait/notify. > > > This addresses bug SQOOP-690. > https://issues.apache.org/jira/browse/SQOOP-690 > > > Diffs > ----- > > execution/mapreduce/src/main/java/org/apache/sqoop/job/io/Data.java 41fceb8 > execution/mapreduce/src/main/java/org/apache/sqoop/job/mr/SqoopOutputFormatLoadExecutor.java 0d636ae > > Diff: https://reviews.apache.org/r/8063/diff/ > > > Testing > ------- > > Ran unit tests, and on a real cluster. > > > Thanks, > > Hari Shreedharan > > +
Hari Shreedharan 2012-11-16, 18:15
+
Hari Shreedharan 2012-11-16, 18:15
+
Jarek Cecho 2012-11-16, 20:09
|