Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEST: Jetty 12.0.16 RC #24351

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class TaskManagerConfig
private Duration clientTimeout = new Duration(2, TimeUnit.MINUTES);
private Duration infoMaxAge = new Duration(15, TimeUnit.MINUTES);

private Duration statusRefreshMaxWait = new Duration(1, TimeUnit.SECONDS);
private Duration statusRefreshMaxWait = new Duration(3, TimeUnit.SECONDS);
private Duration infoUpdateInterval = new Duration(3, TimeUnit.SECONDS);
private Duration taskTerminationTimeout = new Duration(1, TimeUnit.MINUTES);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
public class InternalCommunicationConfig
{
private String sharedSecret;
private boolean http2Enabled;
private boolean http2Enabled = true;
private boolean httpsRequired;
private String keyStorePath;
private String keyStorePassword;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,21 +350,13 @@ protected void setup(Binder binder)

// exchange client
binder.bind(DirectExchangeClientSupplier.class).to(DirectExchangeClientFactory.class).in(Scopes.SINGLETON);

InternalCommunicationConfig internalCommunicationConfig = buildConfigObject(InternalCommunicationConfig.class);

install(internalHttpClientModule("exchange", ForExchange.class)
.withConfigDefaults(config -> {
config.setIdleTimeout(new Duration(30, SECONDS));
config.setRequestTimeout(new Duration(10, SECONDS));
config.setMaxConnectionsPerServer(64);
config.setMaxContentLength(DataSize.of(32, MEGABYTE));
config.setMaxRequestsQueuedPerDestination(65536);
if (internalCommunicationConfig.isHttp2Enabled()) {
config.setMaxConnectionsPerServer(64);
}
else {
config.setMaxConnectionsPerServer(250);
}
}).build());

configBinder(binder).bindConfig(DirectExchangeClientConfig.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void testDefaults()
.setThreadPerDriverSchedulerEnabled(true)
.setInitialSplitsPerNode(Runtime.getRuntime().availableProcessors() * 2)
.setSplitConcurrencyAdjustmentInterval(new Duration(100, TimeUnit.MILLISECONDS))
.setStatusRefreshMaxWait(new Duration(1, TimeUnit.SECONDS))
.setStatusRefreshMaxWait(new Duration(3, TimeUnit.SECONDS))
.setInfoUpdateInterval(new Duration(3, TimeUnit.SECONDS))
.setTaskTerminationTimeout(new Duration(1, TimeUnit.MINUTES))
.setPerOperatorCpuTimerEnabled(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void testDefaults()
{
assertRecordedDefaults(recordDefaults(InternalCommunicationConfig.class)
.setSharedSecret(null)
.setHttp2Enabled(false)
.setHttp2Enabled(true)
.setHttpsRequired(false)
.setKeyStorePath(null)
.setKeyStorePassword(null)
Expand All @@ -50,7 +50,7 @@ public void testExplicitPropertyMappings()

Map<String, String> properties = ImmutableMap.<String, String>builder()
.put("internal-communication.shared-secret", "secret")
.put("internal-communication.http2.enabled", "true")
.put("internal-communication.http2.enabled", "false")
.put("internal-communication.https.required", "true")
.put("internal-communication.https.keystore.path", keystoreFile.toString())
.put("internal-communication.https.keystore.key", "key-key")
Expand All @@ -61,7 +61,7 @@ public void testExplicitPropertyMappings()

InternalCommunicationConfig expected = new InternalCommunicationConfig()
.setSharedSecret("secret")
.setHttp2Enabled(true)
.setHttp2Enabled(false)
.setHttpsRequired(true)
.setKeyStorePath(keystoreFile.toString())
.setKeyStorePassword("key-key")
Expand Down
24 changes: 24 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@
<dep.google.http.client.version>1.45.1</dep.google.http.client.version>
<dep.httpcore5.version>5.3.1</dep.httpcore5.version>
<dep.iceberg.version>1.7.0</dep.iceberg.version>
<dep.jetty.version>12.0.16-SNAPSHOT</dep.jetty.version>
<dep.jna.version>5.15.0</dep.jna.version>
<dep.joda.version>2.12.7</dep.joda.version>
<dep.jsonwebtoken.version>0.12.6</dep.jsonwebtoken.version>
Expand Down Expand Up @@ -284,6 +285,22 @@
<scope>import</scope>
</dependency>

<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-bom</artifactId>
<version>${dep.jetty.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>

<dependency>
<groupId>org.eclipse.jetty.ee10</groupId>
<artifactId>jetty-ee10-bom</artifactId>
<version>${dep.jetty.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>

<dependency>
<groupId>org.jdbi</groupId>
<artifactId>jdbi3-bom</artifactId>
Expand Down Expand Up @@ -2410,6 +2427,13 @@
</dependencies>
</dependencyManagement>

<repositories>
<repository>
<id>jetty-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/jetty-snapshots</url>
</repository>
</repositories>

<build>
<pluginManagement>
<plugins>
Expand Down
Loading