[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.
If file not find happens, this test never exists.  The time out is used to
fail the test if that happens.
On Aug 30, 2014 12:32 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)
>
> What infi loop?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/amplab/tachyon/pull/404/files#r16928486>.
>