liorregev commented on issue #2082: URL: https://github.com/apache/incubator-uniffle/issues/2082#issuecomment-2462141627
I've been running into the same issue. After searching around online I found [this](https://github.com/classgraph/classgraph/blob/latest/src/main/java/nonapi/io/github/classgraph/utils/FileUtils.java#L680). And while it seems like a dirty hack, that project is wide-spread enough to hopefully catch this sort of thing. I replaced [RssUtils.java:426](https://github.com/apache/incubator-uniffle/blob/master/common/src/main/java/org/apache/uniffle/common/util/RssUtils.java#L425) with the following, and it works: `try { PlatformDependent.freeDirectBuffer(byteBuffer); } catch (Throwable e) { Throwable cause = e.getCause(); if (!(cause instanceof IllegalArgumentException)) { throw e; } // Buffer is duplicate or slice }` Not sure how to check for memory leaks right now though. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
