GiraffaFS / giraffa

Giraffa FileSystem (Slack: giraffa-fs.slack.com)
https://giraffa.ci.cloudbees.com
Apache License 2.0
17 stars 6 forks source link

NamespaceAgent can fail operations when RegionServer dies #153

Closed pjeli closed 9 years ago

pjeli commented 9 years ago

This was discovered from working on issue #132; specifically the unit test from there, post issue #122, revealed that a GiraffaClient fails to makes calls after a RegionServer has been killed.

This is mainly due to the change in HBase client code. GiraffaClient has been changed to use Connection and Table interfaces in place of HTable. However, it appears that this change has in turn made the client rely on a particular RegionServer.

Seems we need to always grab a new Table whenever we need to make a call rather than rely on the same Table every time.

pjeli commented 9 years ago

This issue needs to be resolved before we can do issue #132.

shvachko commented 9 years ago

Would be good for Milan to look at this as he was doing the exception handling.

milandesai commented 9 years ago

Looks good, +1

shvachko commented 9 years ago

The unit tests are failing with this fix. Looks like you are catching some exceptions that don't need to be switched over, or switching goes too long. As the result some services are not quitting when one test ends, and that makes subsequent tests fail.

shvachko commented 9 years ago

I merged Plamen's patch into current trunk, which has Milan's ExceptionInterceptor and all tests seems to be passing, see in the branch. Will try it with TestLease from #132

shvachko commented 9 years ago

Tests for issue #132 are passing. Will commit this now.

shvachko commented 9 years ago

Committed. Thank you Plamen.