MINOR: Bump io.netty:netty-bom from 4.2.17.Final to 4.2.19.Final (#1365) Bumps [io.netty:netty-bom](https://github.com/netty/netty) from 4.2.17.Final to 4.2.19.Final. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/netty/netty/releases">io.netty:netty-bom's releases</a>.</em></p> <blockquote> <h2>netty-4.2.19.Final</h2> <h2>Security</h2> <p><strong>Note that <a href="https://netty.io/news/2026/09/09/4-1-EOL-announcement.html">Netty 4.1 will be End-of-Life on July 1st, 2027</a>.</strong></p> <p>We strongly recommend upgrading to this version to get the following security fixes:</p> <ul> <li><a href="https://github.com/netty/netty/security/advisories/GHSA-frq3-7pw6-36cg">CVE-2026-XXXXX</a> : parser desync in <code>io.netty:netty-codec-haproxy</code></li> <li><a href="https://github.com/netty/netty/security/advisories/GHSA-6g26-xhvx-g5w3">CVE-2026-XXXXX</a> : improper CRLF neutralization (request/response smuggling) in <code>io.netty:netty-codec-http</code></li> <li><a href="https://github.com/netty/netty/security/advisories/GHSA-x9f7-rg73-4rp6">CVE-2026-XXXXX</a> : origin validation error in <code>io.netty:netty-codec-http</code></li> <li><a href="https://github.com/netty/netty/security/advisories/GHSA-2p3h-phr9-jf38">CVE-2026-XXXXX</a> : unbounded resource consumption in <code>io.netty:netty-codec-http2</code></li> <li><a href="https://github.com/netty/netty/security/advisories/GHSA-vwgc-hvc9-2j59">CVE-2026-XXXXX</a> : request/response smuggling in <code>io.netty:netty-codec-http</code></li> <li><a href="https://github.com/netty/netty/security/advisories/GHSA-m3w2-2657-46g8">CVE-2026-XXXXX</a> : time-of-check/time-of-use error in <code>io.netty:netty-handler-ssl-ocsp</code></li> <li><a href="https://github.com/netty/netty/security/advisories/GHSA-jp47-57pp-4qpp">CVE-2026-XXXXX</a> : SNI routing bypass in <code>io.netty:netty-handler</code></li> <li><a href="https://github.com/netty/netty/security/advisories/GHSA-35qr-v9mm-35c5">CVE-2026-XXXXX</a> : unbounded resource consumption in <code>io.netty:netty-codec-xml</code></li> <li><a href="https://github.com/netty/netty/security/advisories/GHSA-5h6f-wp3f-6hmv">CVE-2026-XXXXX</a> : unbounded resource consumption in <code>io.netty:netty-codec-base</code></li> <li><a href="https://github.com/netty/netty/security/advisories/GHSA-x436-m93c-g2q9">CVE-2026-XXXXX</a> : unbounded resource consumption in <code>io.netty:netty-codec-http</code></li> <li><a href="https://github.com/netty/netty/security/advisories/GHSA-c7hc-m259-xhcr">CVE-2026-XXXXX</a> : input misinterpretation in <code>io.netty:netty-codec-socks</code></li> <li><a href="https://github.com/netty/netty/security/advisories/GHSA-268p-9r42-7qp4">CVE-2026-XXXXX</a> : improper access control in <code>io.netty:netty-handler</code></li> <li><a href="https://github.com/netty/netty/security/advisories/GHSA-3h79-3wcf-5whr">CVE-2026-XXXXX</a> : unbounded resource consumption in <code>io.netty:netty-codec-dns</code></li> <li><a href="https://github.com/netty/netty/security/advisories/GHSA-25w5-4jgp-m94q">CVE-2026-XXXXX</a> : unbounded resource consumption in <code>io.netty:netty-codec-http3</code></li> <li><a href="https://github.com/netty/netty/security/advisories/GHSA-x2j7-6j3j-5vwj">CVE-2026-XXXXX</a> : use-after-free in <code>io.netty:netty-transport-classes-io_uring</code></li> <li><a href="https://github.com/netty/netty/security/advisories/GHSA-79q2-mhf4-2j6j">CVE-2026-XXXXX</a> : memory leak in <code>io.netty:netty-transport-native-io_uring</code></li> </ul> <p>Note that due to overwhelming strain on the CVE infrastructure, we have not gotten a single CVE number assigned to these reports in time for our release. The advisories will be published without.</p> <p>Specific changes worth calling out:</p> <p><strong>Validation in <code>FileUpload.setContentType</code>.</strong> Previously, the <code>FileUpload.setContentType</code> methods did not validate their inputs. They now throw an <code>IllegaalArgumentException</code> if the given string is not formatted as a plausible MIME content type.</p> <h2>What's Changed</h2> <ul> <li>perf: Use LinkedHashSet to deduplicate search domains by <a href="https://github.com/JunggiKim"><code>@JunggiKim</code></a> in <a href="https://redirect.github.com/netty/netty/pull/17400">netty/netty#17400</a></li> <li>Handle non-positive skip lengths in ByteBufInputStream by <a href="https://github.com/cuishuang"><code>@cuishuang</code></a> in <a href="https://redirect.github.com/netty/netty/pull/17388">netty/netty#17388</a></li> <li>Avoid double promise allocation in SslHandler.wrap() by <a href="https://github.com/doom369"><code>@doom369</code></a> in <a href="https://redirect.github.com/netty/netty/pull/17382">netty/netty#17382</a></li> <li>Socket: Add half-closure tests to SocketHalfClosedTest by <a href="https://github.com/rajan-github"><code>@rajan-github</code></a> in <a href="https://redirect.github.com/netty/netty/pull/17394">netty/netty#17394</a></li> <li>HttpUtil.getCharset() must accept whitespace before the next Content-Type parameter by <a href="https://github.com/hunseonglee"><code>@hunseonglee</code></a> in <a href="https://redirect.github.com/netty/netty/pull/17386">netty/netty#17386</a></li> <li>codec-dns: Add SMIMEA, CDS, CDNSKEY, OPENPGPKEY, CSYNC, ZONEMD records by <a href="https://github.com/hyperxpro"><code>@hyperxpro</code></a> in <a href="https://redirect.github.com/netty/netty/pull/17373">netty/netty#17373</a></li> <li>transport: Avoid io_uring completion callback allocation by <a href="https://github.com/massiccio"><code>@massiccio</code></a> in <a href="https://redirect.github.com/netty/netty/pull/17457">netty/netty#17457</a></li> <li>QUIC: Ensure writable events reflect stream capacity by <a href="https://github.com/yawkat"><code>@yawkat</code></a> in <a href="https://redirect.github.com/netty/netty/pull/17431">netty/netty#17431</a></li> <li>OcspServerCertificateValidatorTest: Fix possible leak in test by <a href="https://github.com/normanmaurer"><code>@normanmaurer</code></a> in <a href="https://redirect.github.com/netty/netty/pull/17469">netty/netty#17469</a></li> <li>Use github to download cmake and also remove tar file after unpacking by <a href="https://github.com/normanmaurer"><code>@normanmaurer</code></a> in <a href="https://redirect.github.com/netty/netty/pull/17482">netty/netty#17482</a></li> <li>build: Upgrade GitHub Actions to fix Node.js 20 deprecation warnings by <a href="https://github.com/normanmaurer"><code>@normanmaurer</code></a> in <a href="https://redirect.github.com/netty/netty/pull/17484">netty/netty#17484</a></li> <li>HttpUtil.getMimeType() must not include whitespace before the next Content-Type parameter by <a href="https://github.com/ohchanKyu"><code>@ohchanKyu</code></a> in <a href="https://redirect.github.com/netty/netty/pull/17456">netty/netty#17456</a></li> <li>Fix buffer leak when recvmmsg returns single UDP_GRO batch by <a href="https://github.com/octa-one"><code>@octa-one</code></a> in <a href="https://redirect.github.com/netty/netty/pull/17493">netty/netty#17493</a></li> <li>Guard ChunkedWriteHandler.doFlush() against re-entrant invocation from user code by <a href="https://github.com/fudianchn"><code>@fudianchn</code></a> in <a href="https://redirect.github.com/netty/netty/pull/17438">netty/netty#17438</a></li> <li>Add regression test for close() cascade reentering flush() by <a href="https://github.com/normanmaurer"><code>@normanmaurer</code></a> in <a href="https://redirect.github.com/netty/netty/pull/17497">netty/netty#17497</a></li> <li>Fix UDP_GRO segment size is lost when reading with recvmmsg by <a href="https://github.com/octa-one"><code>@octa-one</code></a> in <a href="https://redirect.github.com/netty/netty/pull/17492">netty/netty#17492</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/netty/netty/commit/64cc10f38ea5f5bd7eae48507817c66680d0afdc"><code>64cc10f</code></a> [maven-release-plugin] prepare release netty-4.2.19.Final</li> <li><a href="https://github.com/netty/netty/commit/e863e6965c44ec4d7a84e3edfec032b0dbd0fe75"><code>e863e69</code></a> Fix io_uring domain socket fd leak on multi-fd SCM_RIGHTS messages</li> <li><a href="https://github.com/netty/netty/commit/d82c6c34d38bbfaf3600ec61a608985e5e15bfb1"><code>d82c6c3</code></a> Fix IP allow-list bypass from ruleType-blind dedup in IpSubnetFilter</li> <li><a href="https://github.com/netty/netty/commit/bccc62a8c349119dded45df67f6688c3ae5d33b0"><code>bccc62a</code></a> Bound domain-name decode buffer to avoid quadratic allocation</li> <li><a href="https://github.com/netty/netty/commit/6b02cd33b27dcf02adc31df32a59b7e4ecdf2697"><code>6b02cd3</code></a> Fix wrong nextBid computation in IoUringBufferRing for RECVSEND_BUNDLE</li> <li><a href="https://github.com/netty/netty/commit/ef3a3e1d532f97a81bce4d6f34b570153796c6da"><code>ef3a3e1</code></a> Fix sign-extension bug in SocksInitRequestDecoder NMETHODS field</li> <li><a href="https://github.com/netty/netty/commit/4cacdf08e48b36bb95af960d8adb94ce4923c1a1"><code>4cacdf0</code></a> Fix quadratic CPU usage in XmlFrameDecoder when an element is never balanced</li> <li><a href="https://github.com/netty/netty/commit/20f3aaebd87b45569f59c3af9a7ef2a2f290379b"><code>20f3aae</code></a> Fail closed on zero-length handshake records in SslClientHelloHandler</li> <li><a href="https://github.com/netty/netty/commit/c3f7088e9b4b24e65a454ff6765c6fb8f3fc5df4"><code>c3f7088</code></a> Netty OcspServerCertificateValidator still delivers buffered data from a revo...</li> <li><a href="https://github.com/netty/netty/commit/4029f071642e20ad6a290198eaca1832d183fa5e"><code>4029f07</code></a> Correctly handle multiple Content-Length</li> <li>Additional commits viewable in <a href="https://github.com/netty/netty/compare/netty-4.2.17.Final...netty-4.2.19.Final">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
The following guides explain the fundamental data structures used in the Java implementation of Apache Arrow.
Generated javadoc documentation is available here.
Refer to Building Apache Arrow for documentation of environment setup and build instructions.
Arrow uses Google's Flatbuffers to transport metadata. The java version of the library requires the generated flatbuffer classes can only be used with the same version that generated them. Arrow packages a version of the arrow-vector module that shades flatbuffers and arrow-format into a single JAR. Using the classifier “shade-format-flatbuffers” in your pom.xml will make use of this JAR, you can then exclude/resolve the original dependency to a version of your choosing.
$ flatc --version flatc version 25.1.24 $ grep "dep.fbs.version" pom.xml <dep.fbs.version>25.1.24</dep.fbs.version>
cd $ARROW_HOME # remove the existing files rm -rf format/src # regenerate from the .fbs files flatc --java -o format/src/main/java arrow-format/*.fbs # prepend license header mvn spotless:apply -pl :arrow-format
There are several system/environmental variables that users can configure. These trade off safety (they turn off checking) for speed. Typically they are only used in production settings after the code has been thoroughly tested without using them.
Bounds Checking for memory accesses: Bounds checking is on by default. You can disable it by setting either the system property(arrow.enable_unsafe_memory_access) or the environmental variable (ARROW_ENABLE_UNSAFE_MEMORY_ACCESS) to true. When both the system property and the environmental variable are set, the system property takes precedence.
null checking for gets: ValueVector get methods (not getObject) methods by default verify the slot is not null. You can disable it by setting either the system property(arrow.enable_null_check_for_get) or the environmental variable (ARROW_ENABLE_NULL_CHECK_FOR_GET) to false. When both the system property and the environmental variable are set, the system property takes precedence.
-Dio.netty.tryReflectionSetAccessible=true should be set. This fixes java.lang.UnsupportedOperationException: sun.misc.Unsafe or java.nio.DirectByteBuffer.(long, int) not available. thrown by Netty.StructVector enable -Darrow.struct.conflict.policy=CONFLICT_APPEND. Duplicate fields are ignored (CONFLICT_REPLACE) by default and overwritten. To support different policies for conflicting or duplicate fields set this JVM flag or use the correct static constructor methods for StructVectors.Arrow Java follows the Google Java Style Guide with the following differences:
NoFinalizer, OverloadMethodsDeclarationOrder, and VariableDeclarationUsageDistance due to the existing code base. These rules should be followed when possible.Refer to checkstyle.xml for rule specifics.
When running tests, Arrow Java uses the Logback logger with SLF4J. By default, it uses the logback.xml present in the corresponding module's src/test/resources directory, which has the default log level set to INFO. Arrow Java can be built with an alternate logback configuration file using the following command run in the project root directory:
mvn -Dlogback.configurationFile=file:<path-of-logback-file>
See Logback Configuration for more details.
Integration tests which require more time or more memory can be run by activating the integration-tests profile. This activates the Maven Failsafe plugin and any class prefixed with IT will be run during the testing phase. The integration tests currently require a larger amount of memory (>4GB) and time to complete. To activate the profile:
mvn -Pintegration-tests <rest of mvn arguments>