Skip to content

Commit

Permalink
BookKeeper 4.2.2 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankelly committed Oct 2, 2013
2 parents 44c9b1d + aecf2d2 commit 16c7a1c
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 8 deletions.
8 changes: 7 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
Release 4.2.2 - 2013-09-10
Release 4.2.2 - 2013-10-02

Backward compatible changes:

BUGFIXES:

BOOKKEEPER-635: jenkins build should highlight which lines of the patch cause raw analysis errors (ivank via sijie)

BOOKKEEPER-684: ZK logging is oververbose, can cause oom in tests (ivank via fpj)

bookkeeper-server:

BOOKKEEPER-559: Fix occasional failure in AuditorBookieTest (ivank)
Expand Down Expand Up @@ -82,6 +84,8 @@ Release 4.2.2 - 2013-09-10

BOOKKEEPER-627: LedgerDirsMonitor is missing thread name (rakeshr via ivank)

BOOKKEEPER-685: Race in compaction algorithm from BOOKKEEPER-664 (ivank)

hedwig-server:

BOOKKEEPER-579: TestSubAfterCloseSub was put in a wrong package (sijie via ivank)
Expand All @@ -90,6 +94,8 @@ Release 4.2.2 - 2013-09-10

BOOKKEEPER-607: Filtered Messages Require ACK from Client Causes User Being Throttled Incorrectly Forever (sijie via ivank)

BOOKKEEPER-683: TestSubAfterCloseSub fails on 4.2 (jiannan via ivank)

hedwig-client:

BOOKKEEPER-598: Fails to compile - RESUBSCRIBE_EXCEPTION conflict (Matthew Farrellee via ivank)
Expand Down
1 change: 1 addition & 0 deletions bookkeeper-benchmark/src/test/resources/log4j.properties
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ log4j.rootLogger=INFO, CONSOLE

# Example with rolling log file and tracing
#log4j.rootLogger=TRACE, CONSOLE, ROLLINGFILE, TRACEFILE
log4j.logger.org.apache.zookeeper=ERROR

#
# Log INFO level and above messages to the console
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ static interface EntryLogScanner {
*/
static interface EntryLogListener {
/**
* Rotate a new entry log to write.
* Callback when entry log is flushed.
*/
public void onRotateEntryLog();
public void onEntryLogFlushed();
}

/**
Expand Down Expand Up @@ -350,7 +350,7 @@ synchronized void flush() throws IOException {
}
somethingWritten = false;
for (EntryLogListener listener: listeners) {
listener.onRotateEntryLog();
listener.onEntryLogFlushed();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ public void process(final long ledgerId, long offset, ByteBuffer entry)
long entryId = entry.getLong();
entry.rewind();

flushed.set(false);
long newoffset = entryLogger.addEntry(ledgerId, entry);
flushed.set(false);
offsets.add(new Offset(ledgerId, entryId, newoffset));
}
}
Expand All @@ -141,7 +141,7 @@ public void process(final long ledgerId, long offset, ByteBuffer entry)
Object flushLock = new Object();

@Override
public void onRotateEntryLog() {
public void onEntryLogFlushed() {
synchronized (flushLock) {
flushed.set(true);
flushLock.notifyAll();
Expand All @@ -151,10 +151,14 @@ public void onRotateEntryLog() {
synchronized private void waitEntrylogFlushed() throws IOException {
try {
synchronized (flushLock) {
while (!flushed.get() && running) {
while (!flushed.get()
&& entryLogger.isFlushRequired()
&& running) {
flushLock.wait(1000);
}
if (!flushed.get() && !running) {
if (!flushed.get()
&& entryLogger.isFlushRequired()
&& !running) {
throw new IOException("Shutdown before flushed");
}
}
Expand Down
1 change: 1 addition & 0 deletions bookkeeper-server/src/test/resources/log4j.properties
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ log4j.rootLogger=INFO, CONSOLE

# Example with rolling log file and tracing
#log4j.rootLogger=TRACE, CONSOLE, ROLLINGFILE, TRACEFILE
log4j.logger.org.apache.zookeeper=ERROR

#
# Log INFO level and above messages to the console
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,12 @@ public void run() {
/**
* {@link https://issues.apache.org/jira/browse/BOOKKEEPER-507}
*/
/* TODO: Add this test case back after BOOKKEEPER-37 is fixed
@Test(timeout=15000)
public void testSubAfterCloseSubForSimpleClient() throws Exception {
runSubAfterCloseSubTest(false);
}
*/

/**
* {@link https://issues.apache.org/jira/browse/BOOKKEEPER-507}
Expand Down
1 change: 1 addition & 0 deletions hedwig-server/src/test/resources/log4j.properties
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ log4j.rootLogger=INFO, CONSOLE

# Example with rolling log file and tracing
#log4j.rootLogger=TRACE, CONSOLE, ROLLINGFILE, TRACEFILE
log4j.logger.org.apache.zookeeper=ERROR

#
# Log INFO level and above messages to the console
Expand Down

0 comments on commit 16c7a1c

Please sign in to comment.