MINOR: Bump com.squareup.okhttp3:mockwebserver3 from 5.4.0 to 5.5.0 (#1327) Bumps [com.squareup.okhttp3:mockwebserver3](https://github.com/lysine-dev/okhttp) from 5.4.0 to 5.5.0. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/lysine-dev/okhttp/blob/main/CHANGELOG.md">com.squareup.okhttp3:mockwebserver3's changelog</a>.</em></p> <blockquote> <h2>Version 5.5.0</h2> <p><em>2026-08-16</em></p> <p>This release introduces <strong>opt-in</strong> support for [Encrypted Client Hello (ECH)]. This new feature improves user privacy by encrypting domain names in transit. With regular TLS, your coffee shop’s Wi-Fi router can see that you’re visiting <em>wikipedia.com</em>, but it cannot see which page you’re looking at. With ECH, the router observes only the IP address. This additional privacy is most effective on sites hosted by big CDNs because the IP address doesn’t imply a particular website.</p> <p>This requires ECH support in the platform’s TLS stack. Today this is only Android 17 (API 37, released June 2026). When other TLS stacks add ECH support, we'll integrate them.</p> <p>ECH took a lot of work to implement because the encryption keys are published over DNS in the [HTTPS resource record], and we needed to write new code to fetch these records. This release includes a major update to OkHttp’s DNS API: it now supports multiple resource record types (not just IP addresses!), asynchronous streaming results, and in-memory caching.</p> <p>To opt in, you can use <code>DnsOverHttps</code>:</p> <pre lang="kotlin"><code>// DnsOverHttps itself uses OkHttpClient. Build both clients upon the // same bootstrap client so they share a connection pool and dispatcher. val bootstrapClient = OkHttpClient() <p>// This sample uses Cloudflare's 1.1.1.1 DnsOverHttps service. val client = bootstrapClient.newBuilder() .dns(DnsOverHttps.Builder() .client(bootstrapClient) .url("<a href="https://1.1.1.1/dns-query&quot;.toHttpUrl()">https://1.1.1.1/dns-query&quot;.toHttpUrl()</a>) .build()) .build() </code></pre></p> <p>You could also opt in with our new <code>AndroidDns</code> API. Unfortunately, the privacy benefits of ECH are thwarted because its DNS queries are not encrypted by default.</p> <pre lang="kotlin"><code>// AndroidDns fetches the HTTPS DNS resource records necessary for ECH. val client = OkHttpClient.Builder() .dns(AndroidDns()) .build() </code></pre> <ul> <li>New: OkHttp artifacts are now signed with our [new signing key]. This project and three sibling projects ([Retrofit], [Okio], and [SQLDelight]) recently joined [the Commonhaus Foundation].</li> <li>Fix: MockWebServer’s <code>@StartStop</code> annotation now supports <code>@Nested</code> JUnit 5 tests.</li> <li>Fix: Our default TLS hostname verifier now reject hosts that fail IP canonicalization.</li> <li>Fix: Closing a multipart part's sink no longer closes the entire request body.</li> <li>Fix: Flush HTTP/1 request bodies before detaching the timeout. We had a bug where timeouts</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/lysine-dev/okhttp/commit/a94bdf152084d11acecd44dcd09ffef203f4f0aa"><code>a94bdf1</code></a> Prepare for release 5.5.0.</li> <li><a href="https://github.com/lysine-dev/okhttp/commit/ecc3b05adfe6b2607b8ec251562c2cccf7c1923a"><code>ecc3b05</code></a> Use a fixed size for DoH request body (<a href="https://redirect.github.com/lysine-dev/okhttp/issues/9687">#9687</a>)</li> <li><a href="https://github.com/lysine-dev/okhttp/commit/9926082660dfa6f1cc848c6f465cf5ccb998e415"><code>9926082</code></a> Revert "Use a fixed size for DoH request body" (<a href="https://redirect.github.com/lysine-dev/okhttp/issues/9686">#9686</a>)</li> <li><a href="https://github.com/lysine-dev/okhttp/commit/0070c2e7b4c162ee03abf1c88fd94083e94697f4"><code>0070c2e</code></a> Use a fixed size for DoH request body</li> <li><a href="https://github.com/lysine-dev/okhttp/commit/15764539c69842dad607462f102a2507223dbfe7"><code>1576453</code></a> Order ServiceMetadata records per the spec (<a href="https://redirect.github.com/lysine-dev/okhttp/issues/9683">#9683</a>)</li> <li><a href="https://github.com/lysine-dev/okhttp/commit/fb582e976a9a82d691342a4d57b3c72208ce416c"><code>fb582e9</code></a> Flip wiring of Dns.SYSTEM (<a href="https://redirect.github.com/lysine-dev/okhttp/issues/9682">#9682</a>)</li> <li><a href="https://github.com/lysine-dev/okhttp/commit/4e884abb1a207c321acffb070c476acb4b89fa3f"><code>4e884ab</code></a> retryOnConnectionFailure doesn't impact ECH retries (<a href="https://redirect.github.com/lysine-dev/okhttp/issues/9681">#9681</a>)</li> <li><a href="https://github.com/lysine-dev/okhttp/commit/0433cee8131b63fa2c0634fa2f9b3a01f9a8b1f3"><code>0433cee</code></a> Only one contributing.md doc (<a href="https://redirect.github.com/lysine-dev/okhttp/issues/9678">#9678</a>)</li> <li><a href="https://github.com/lysine-dev/okhttp/commit/a2cf5aa9f8711dabe514871e9dc4a9336a0e403f"><code>a2cf5aa</code></a> Don't recover after an ECH public_name fails to verify (<a href="https://redirect.github.com/lysine-dev/okhttp/issues/9680">#9680</a>)</li> <li><a href="https://github.com/lysine-dev/okhttp/commit/5410de9760bce8719129c3d08eb19e5bace75f6e"><code>5410de9</code></a> Test ECH + HTTP proxy (<a href="https://redirect.github.com/lysine-dev/okhttp/issues/9671">#9671</a>)</li> <li>Additional commits viewable in <a href="https://github.com/lysine-dev/okhttp/compare/parent-5.4.0...parent-5.5.0">compare view</a></li> </ul> </details> <br /> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JB Onofré <jbonofre@apache.org>
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>