You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by eo...@apache.org on 2021/07/09 15:43:54 UTC

[bookkeeper] branch master updated: Log a warn before exiting when an illegal access not allowed is done on FileDescriptor#fd (#2749)

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

eolivelli 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 31e8d1b  Log a warn before exiting when an illegal access not allowed is done on FileDescriptor#fd (#2749)
31e8d1b is described below

commit 31e8d1b44ffafd867d0eb2774085e4b1141a7acb
Author: Nicolò Boschi <bo...@gmail.com>
AuthorDate: Fri Jul 9 17:43:47 2021 +0200

    Log a warn before exiting when an illegal access not allowed is done on FileDescriptor#fd (#2749)
---
 .../src/main/java/org/apache/bookkeeper/util/NativeIO.java              | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/util/NativeIO.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/util/NativeIO.java
index 6f0bdf1..9fea0c6 100644
--- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/util/NativeIO.java
+++ b/bookkeeper-server/src/main/java/org/apache/bookkeeper/util/NativeIO.java
@@ -65,8 +65,8 @@ public final class NativeIO {
         } catch (Exception e) {
             // We don't really expect this so throw an assertion to
             // catch this during development
-            assert false;
             LOG.warn("Unable to read {} field from {}", fieldName, cls.getName());
+            assert false;
         }
 
         return field;