[ https://issues.apache.org/jira/browse/HBASE-16035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15340665#comment-15340665 ]
Ted Yu commented on HBASE-16035: -------------------------------- {code} Failed tests: TestReplicationKillMasterRSCompressedWithMultipleWAL>TestReplicationKillMasterRS.killOneMasterRS:34->TestReplicationKillRS.loadTableAndKillRS:88 Waited too much time for queueFailover replication. Waited 15112ms. Flaked tests: {code} The above is not related to the patch. > Nested AutoCloseables might not all get closed > ---------------------------------------------- > > Key: HBASE-16035 > URL: https://issues.apache.org/jira/browse/HBASE-16035 > Project: HBase > Issue Type: Bug > Reporter: Sean Mackrory > Attachments: HBASE-16035-v1.patch > > > Subtle problem in HBASE-15891: > {code}try (A myA = new A(new B())){code} > An exception thrown between B starting to open an A finishing initialization > may not result in B being closed. A safer syntax would be: > {code}try(B myB = new B(); A myA = newA(myB)){code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)