lhotari commented on code in PR #24790:
URL: https://github.com/apache/pulsar/pull/24790#discussion_r2384056715


##########
pulsar-common/src/main/java/org/apache/pulsar/common/util/netty/EventLoopUtil.java:
##########
@@ -96,6 +90,15 @@ public static EventLoopGroup newEventLoopGroup(int nThreads, 
boolean enableBusyW
         }
     }
 
+    private static boolean isIoUringEnabledAndAvailable() {
+        // By default, io_uring will not be enabled, even if available. The 
environment variable will be used:
+        // enable.io_uring=1
+        boolean ioUringEnabled = 
StringUtils.equalsAnyIgnoreCase(System.getProperty(ENABLE_IO_URING), "1", 
"true");
+        // Throw exception if IOUring cannot be used
+        IOUring.ensureAvailability();
+        return ioUringEnabled;

Review Comment:
   The previous solution has been implemented in this way, preserving the 
behavior



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to