Skip to content

Commit

Permalink
#9408: handle review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Ludovic Orban <[email protected]>
  • Loading branch information
lorban committed Feb 24, 2023
1 parent bbbeed7 commit 7e8b577
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ public static void prepareStaticFiles() throws IOException

makeStaticFile(staticBase.resolve("test-1m.dat"), MB);
makeStaticFile(staticBase.resolve("test-1g.dat"), GB);
// The reason for testing 4GB and 10GB were because of various filesystem handling bugs
// we had in our code (the 2GB threshold and the 8GB threshold in various FileSystem APIs).
// makeStaticFile(staticBase.resolve("test-4g.dat"), 4 * GB);
// makeStaticFile(staticBase.resolve("test-10g.dat"), 10 * GB);

Expand Down Expand Up @@ -603,10 +605,9 @@ protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws S
IO.copy(inputStream, byteCounting);
out.printf("part[%s].inputStream.length=%d%n", part.getName(), byteCounting.getCount());
}
catch (Throwable e)
catch (Throwable x)
{
resp.setStatus(500);
e.printStackTrace(out);
throw new AssertionError(x);
}
});
}
Expand Down

0 comments on commit 7e8b577

Please sign in to comment.