[ https://issues.apache.org/jira/browse/HBASE-2104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12800859#action_12800859 ]
Robert Hofstra commented on HBASE-2104: --------------------------------------- Yes, I use an iterator, I made an integration test using the a MiniHBaseCluster, which contains some specific business logic, so I skip some details ... insert values, no do a scan on it ResultScanner scanner = table.getScanner(galleryTableScan); // stop all region servers FullMiniCluster.getMiniHBaseCluster().stopRegionServer(1); FullMiniCluster.getMiniHBaseCluster().stopRegionServer(0); try { for (Result result : scanner) { result.getValue( ... } Assert.fail("Expected an exception"); } catch (Exception ex) { } This test fails, I'am going to add a test to this issue without the specific business logic. I've patch yesterday the code of the ScannerCallable, that rethrows the exception if its not handled by the other exception handling code, it works for all our integrationtests but I don't know if its generic enough for a serious patch. > No exception thrown while during scanning no connection can be made to the > regionserver > --------------------------------------------------------------------------------------- > > Key: HBASE-2104 > URL: https://issues.apache.org/jira/browse/HBASE-2104 > Project: Hadoop HBase > Issue Type: Bug > Components: client > Affects Versions: 0.20.1 > Reporter: Robert Hofstra > > When a regionservers is stopped (shutdown or crash) and on the same moment a > client performs a scan on that regionserver no exception is thrown at client > side nor a reconnect toanother regionsserver is tried. > The ResultScanner.Iterator.hasNext ()just returns false, so the client > assumes that there are no records anymore. > In the ScannerCallable.call I notice that the java.net.ConnectionException is > catched and a empyt Result array is returned. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.