[TACHYON-123] throw exceptions rather than close connection

There may be more cases that should be fixed, and this doesn't solve the problem if there are network issues, but I rather move those to a different PR.
With the PR the time out shouldn't matter any more, it's there to protect
us if this happens again.
On Aug 30, 2014 12:53 AM, "Haoyuan Li" <notifications@github.com> wrote:

> In core/src/test/java/tachyon/master/MasterClientTest.java:
>
> > @@ -49,4 +54,13 @@ public void openCloseTest() throws FileAlreadyExistException, InvalidPathExcepti
> >      Assert.assertTrue(masterClient.isConnected());
> >      Assert.assertTrue(masterClient.getFileStatus(-1, "/file") != null);
> >    }
> > +
> > +  @Test(timeout = 3000, expected = FileNotFoundException.class)
>
> Got it from the JIRA.
>
> So, with this PR, this timeout is not necessary, right?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/amplab/tachyon/pull/404/files#r16928632>.
>