This is an automated email from the ASF dual-hosted git repository.

yong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new 78c0ca567 remove unnessary exception catch (#3169)
78c0ca567 is described below

commit 78c0ca5672e6226ca1eff12bd9112d0ed366828e
Author: Hang Chen <[email protected]>
AuthorDate: Wed Apr 13 09:47:20 2022 +0800

    remove unnessary exception catch (#3169)
    
    ### Motivation
    When read Lac from ledger, we won't throw NoEntryException, remove this 
exception catch.
    
    
    ### Changes
    Remove the NoEntryException catch in ReadLac operation.
---
 .../src/main/java/org/apache/bookkeeper/proto/ReadLacProcessorV3.java  | 3 ---
 1 file changed, 3 deletions(-)

diff --git 
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/ReadLacProcessorV3.java
 
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/ReadLacProcessorV3.java
index 97c79f1bc..582ee2cf5 100644
--- 
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/ReadLacProcessorV3.java
+++ 
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/ReadLacProcessorV3.java
@@ -94,9 +94,6 @@ class ReadLacProcessorV3 extends PacketProcessorBaseV3 
implements Runnable {
         } catch (Bookie.NoLedgerException e) {
             status = StatusCode.ENOLEDGER;
             logger.debug("No ledger found while trying to read last entry: 
{}", ledgerId, e);
-        } catch (Bookie.NoEntryException e) {
-            status = StatusCode.ENOENTRY;
-            logger.warn("No Entry found while trying to read last entry: {}", 
ledgerId, e);
         } catch (BookieException.DataUnknownException e) {
             status = StatusCode.EUNKNOWNLEDGERSTATE;
             logger.error("Ledger in an unknown state while trying to read last 
entry: {}", ledgerId, e);

Reply via email to