> On April 23, 2015, 6:22 p.m., Xuefu Zhang wrote: > > spark-client/src/main/java/org/apache/hive/spark/client/rpc/RpcServer.java, > > line 176 > > <https://reviews.apache.org/r/33422/diff/2/?file=939013#file939013line176> > > > > I'm wondering if cinfo can be null here. After the contains() check > > above, things might have changed. So, cinfo is not guaranteed to be not > > null. > > Marcelo Vanzin wrote: > Yeah, that was my suggestion above. Don't use `containsKey`, instead just > remove and check for null.
Yes, that's correct. I ignored that case as well.. - Chao ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/33422/#review81361 ----------------------------------------------------------- On April 23, 2015, 6:54 p.m., Chao Sun wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/33422/ > ----------------------------------------------------------- > > (Updated April 23, 2015, 6:54 p.m.) > > > Review request for hive and Marcelo Vanzin. > > > Bugs: HIVE-10434 > https://issues.apache.org/jira/browse/HIVE-10434 > > > Repository: hive-git > > > Description > ------- > > This patch cancels the connection from HS2 to remote process once the latter > has failed and exited with error code, to > avoid potential long timeout. > It add a new public method cancelClient to the RpcServer class - not sure > whether there's an easier way to do this.. > > > Diffs > ----- > > > spark-client/src/main/java/org/apache/hive/spark/client/SparkClientImpl.java > 71e432d > spark-client/src/main/java/org/apache/hive/spark/client/rpc/RpcServer.java > 32d4c46 > > Diff: https://reviews.apache.org/r/33422/diff/ > > > Testing > ------- > > Tested on my own cluster, and it worked. > > > Thanks, > > Chao Sun > >