This is an automated email from the ASF dual-hosted git repository. tabish pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/qpid-protonj2.git
commit 362af83bdea0a03ed4e5be5327e4edb98b3613a0 Author: Timothy Bish <[email protected]> AuthorDate: Thu Feb 12 10:06:46 2026 -0500 PROTON-2918 Better detect abscense of io_uring in checks Add additional detection for io_uring being absent --- .../apache/qpid/protonj2/client/transport/netty4/IOUringSupport.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protonj2-client/src/main/java/org/apache/qpid/protonj2/client/transport/netty4/IOUringSupport.java b/protonj2-client/src/main/java/org/apache/qpid/protonj2/client/transport/netty4/IOUringSupport.java index 9e1d806b..2ea08040 100644 --- a/protonj2-client/src/main/java/org/apache/qpid/protonj2/client/transport/netty4/IOUringSupport.java +++ b/protonj2-client/src/main/java/org/apache/qpid/protonj2/client/transport/netty4/IOUringSupport.java @@ -59,7 +59,7 @@ public final class IOUringSupport { ioHandlerFactory = ioUringHandler.getDeclaredMethod("newFactory"); socketChannelClass = (Class<? extends Channel>) Class.forName("io.netty.channel.uring.IoUringSocketChannel"); available = (boolean) isAvailable.invoke(null); - } catch (Exception e) { + } catch (UnsatisfiedLinkError | Exception e) { LOG.debug("Unable to enable netty io_uring support due to error", e); } @@ -73,7 +73,7 @@ public final class IOUringSupport { constructor = eventLoopGroup.getDeclaredConstructor(int.class, ThreadFactory.class); available = (boolean) isAvailable.invoke(null); incubator = true; - } catch (Exception e) { + } catch (UnsatisfiedLinkError | Exception e) { LOG.debug("Unable to enable netty incubator io_uring support due to error", e); } } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
