Uh oh!
There was an error while loading. Please reload this page.
HBASE-13798 TestFromClientSide* don't close the Table - #193
Conversation
Apache-HBase
commented
Apr 26, 2019
💔 -1 overall
This message was automatically generated. |
busbey
commented
Apr 26, 2019
Well the unit tests hopefully are just a bad CI host. Let me go relaunch those. |
Apache-HBase
commented
Apr 26, 2019
💔 -1 overall
This message was automatically generated. |
busbey
commented
Apr 26, 2019
much more reasonable! @anmolnar can you clean up the checkstyle complaints? looks like mostly improper line length handling. |
busbey
left a comment
There was a problem hiding this comment.
ugh. TestFromClientSide.testNull should be several tests instead of mixing up all of those "should/should not throw" conditions. Not your problem here, but filing a follow-on jira to make note of the need would be good.
Uh oh!
There was an error while loading. Please reload this page.
anmolnar
commented
Apr 30, 2019
@busbey Agreed. Similarly it would be nice to split |
Apache-HBase
commented
Apr 30, 2019
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
Apr 30, 2019
💔 -1 overall
This message was automatically generated. |
anmolnar
commented
May 6, 2019
Rebased on latest master. I expect lots of checkstyle warnings again, so probably still not ready to commit. |
Apache-HBase
commented
May 6, 2019
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
May 7, 2019
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
May 8, 2019
💔 -1 overall
This message was automatically generated. |
anmolnar
commented
May 8, 2019
@busbey@petersomogyi |
HorizonNet
commented
May 8, 2019
@anmolnar The build only shows newly introduced violations. Let's wait for the latest build if they got resolved. |
Apache-HBase
commented
May 8, 2019
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
May 10, 2019
💔 -1 overall
This message was automatically generated. |
anmolnar
commented
May 10, 2019
@petersomogyi Looks like we have a green build finally? |
petersomogyi
commented
May 11, 2019
The latest verification looks good. I'm retriggering it once more. |
Apache-HBase
commented
May 11, 2019
💔 -1 overall
This message was automatically generated. |
Apache-HBase
commented
May 13, 2019
💔 -1 overall
This message was automatically generated. |
I refactored test cases
TestFromClientSideandTestFromClientSide3to use try-with-resources for classes which are auto-closeable: Table, Scanner, etc.TestFromClientSide
Refactored all individual tests to close closeable resources properly. Doing this in setUp/tearDown methods is not beneficial, because most tests create their tables with custom parameters.
TestFromClientSide3
Initialisation of tables are pretty much the same in these tests, so I ended up writing setUp/tearDown methods. For tests which need custom initialisation I delete the created table first and let them create custom one instead.