eolivelli commented on a change in pull request #266: Issue 265: Add
persistable bookie status
URL: https://github.com/apache/bookkeeper/pull/266#discussion_r128502522
##########
File path:
bookkeeper-server/src/test/java/org/apache/bookkeeper/bookie/BookieInitializationTest.java
##########
@@ -265,17 +275,23 @@ public void testDuplicateBookieServerStartup() throws
Exception {
new String[] { tmpDir.getPath() });
BookieServer bs1 = new BookieServer(conf);
bs1.start();
-
+ BookieServer bs2 = null;
// starting bk server with same conf
try {
- BookieServer bs2 = new BookieServer(conf);
+ bs2 = new BookieServer(conf);
bs2.start();
fail("Should throw BindException, as the bk server is already
running!");
} catch (BindException e) {
- // Ok
+ Assert.assertTrue("BKServer allowed duplicate startups!",
+ e.getMessage().contains("Address already in use"));
Review comment:
this line of code was dropped in 4.4, because e.getMessage().contains
depends on the language of the SO, in Italian for instance it says 'Indirizzo
gi? in uso' and the test cannot be run on Italian machines
see https://issues.apache.org/jira/browse/BOOKKEEPER-904
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services