Skip to content

Commit ecaea19

Browse files
committed
log
1 parent 67a6ac2 commit ecaea19

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/ldb/EntryLocationIndex.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@ public EntryLocationIndex(ServerConfiguration conf, KeyValueStorageFactory stora
6868

6969
@Override
7070
public void close() throws IOException {
71+
log.info("Closing EntryLocationIndex");
7172
while (!compacting.compareAndSet(false, true)) {
7273
// Wait till the locationsDb stops compacting
74+
log.info("Waiting the locationsDb stops compacting");
7375
try {
7476
Thread.sleep(100);
7577
} catch (InterruptedException e) {
@@ -78,6 +80,7 @@ public void close() throws IOException {
7880
}
7981
}
8082
locationsDb.close();
83+
log.info("Closed EntryLocationIndex");
8184
}
8285

8386
public long getLocation(long ledgerId, long entryId) throws IOException {

0 commit comments

Comments
 (0)