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

Merging 7.9.x into 7.9.0 #10674

Closed
wants to merge 52 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
8fbc7d4
[KSQL-12867] | Vedarth Sharma | Fix jsonschema dependency (#10613)
VedarthConfluent Dec 18, 2024
1969178
Merge branch '7.1.x' into 7.2.x by VedarthConfluent
ConfluentSemaphore Dec 18, 2024
6c60eea
Merge branch '7.2.x' into 7.3.x by VedarthConfluent
ConfluentSemaphore Dec 18, 2024
44919a8
Merge branch '7.3.x' into 7.4.x by VedarthConfluent
ConfluentSemaphore Dec 18, 2024
4558a1c
Merge branch '7.4.x' into 7.5.x by VedarthConfluent
ConfluentSemaphore Dec 18, 2024
d99c43c
[KSQL-12867] | Vedarth Sharma | Fix jsonschema dependency (#10619)
VedarthConfluent Dec 20, 2024
f2bbd3b
[KSQL-12867] | Vedarth Sharma | Fix jsonschema dependency (#10620)
VedarthConfluent Dec 20, 2024
8bfe4b5
KSQL-12913: Update vertx to 4.4.8 for 7.1.x
kagarwal06 Oct 1, 2024
f6c26e7
KSQL-12936 | Fix the placement of default port number and capture the…
pbadani Jan 17, 2025
651add7
Merge pull request #10651 from confluentinc/pbadani/KSQL-12936
kagarwal06 Jan 17, 2025
a94190d
KSQL-12913: Comment failing tests for debugging
kagarwal06 Jan 20, 2025
446c627
KSQL-12913: Merge 7.1.x
kagarwal06 Jan 20, 2025
d81c0a8
KSQL-12913: Comment failing tests for debugging
kagarwal06 Jan 20, 2025
b453a57
KSQL-12936 | Fix the placement of default port number and capture the…
pbadani Jan 20, 2025
9af7d93
Merge branch '7.2.x' into 7.3.x by pbadani
semaphore-agent-production[bot] Jan 20, 2025
b0bab37
Merge branch '7.3.x' into 7.4.x by pbadani
semaphore-agent-production[bot] Jan 20, 2025
c41f3b1
KSQL-12936 | Fix the placement of default port number and capture the…
pbadani Jan 20, 2025
702af17
KSQL-12936 | Fix the placement of default port number and capture the…
pbadani Jan 20, 2025
9133971
Merge branch '7.6.x' into 7.7.x by pbadani
semaphore-agent-production[bot] Jan 20, 2025
b147b67
KSQL-12936 | Fix the placement of default port number and capture the…
pbadani Jan 21, 2025
88671ed
Merge branch '7.8.x' into 7.9.x by pbadani
semaphore-agent-production[bot] Jan 21, 2025
6ef7d05
KSQL-12936 | Fix compilation error in the test. (#10661)
pbadani Jan 21, 2025
1356ea7
KSQL-12913: Fix and uncomment failing tests
kagarwal06 Jan 22, 2025
90d5e47
KSQL-12913: nit
kagarwal06 Jan 22, 2025
9c0edb4
KSQL-12913: nit
kagarwal06 Jan 22, 2025
313fd1d
KSQL-12913: debug
kagarwal06 Jan 22, 2025
be80395
KSQL-12913: debug
kagarwal06 Jan 24, 2025
be99923
KSQL-12913: Ignore tests
kagarwal06 Jan 24, 2025
4af11ea
Merge pull request #10648 from confluentinc/krish-KSQL-12913
kagarwal06 Jan 25, 2025
8fcad7f
remove jetty pin / outdated comment
janjwerner-confluent Jan 28, 2025
d1d386f
Merge pull request #10666 from confluentinc/update_jetty_71x
janjwerner-confluent Jan 28, 2025
83bec0c
Merge branch '7.1.x' into 7.2.x by hrishabhg (using strategy ours)
semaphore-agent-production[bot] Jan 29, 2025
78053cd
Merge branch '7.2.x' into 7.3.x by hrishabhg (using strategy ours)
semaphore-agent-production[bot] Jan 29, 2025
0aa3aca
Merge branch '7.3.x' into 7.4.x by hrishabhg (using strategy ours)
semaphore-agent-production[bot] Jan 29, 2025
4b2d089
Merge branch '7.4.x' into 7.5.x by hrishabhg (using strategy ours)
semaphore-agent-production[bot] Jan 29, 2025
bdda516
Merge branch '7.5.x' into 7.6.x by hrishabhg (using strategy ours)
semaphore-agent-production[bot] Jan 29, 2025
df67319
Merge branch '7.6.x' into 7.7.x by hrishabhg (using strategy ours)
semaphore-agent-production[bot] Jan 29, 2025
e68552c
Merge branch '7.7.x' into 7.8.x by hrishabhg (using strategy ours)
semaphore-agent-production[bot] Jan 29, 2025
2aec847
Merge branch '7.8.x' into 7.9.x by hrishabhg (using strategy ours)
semaphore-agent-production[bot] Jan 29, 2025
72727fc
CVE Fix: Unpinned Jetty Version (#10671)
hrishabhg Jan 29, 2025
afebe33
Merge branch '7.2.x' into 7.3.x by hrishabhg
semaphore-agent-production[bot] Jan 29, 2025
d3a5775
Merge branch '7.3.x' into 7.4.x by hrishabhg
semaphore-agent-production[bot] Jan 29, 2025
39d47db
CVE Fix: Unpinned Jetty Version (#10671) (#10672)
semaphore-agent-production[bot] Jan 29, 2025
9d5e256
Merge branch '7.5.x' into 7.6.x by hrishabhg
semaphore-agent-production[bot] Jan 29, 2025
662c41b
Merge branch '7.6.x' into 7.7.x by hrishabhg
semaphore-agent-production[bot] Jan 29, 2025
ef4fd08
Merge branch '7.7.x' into 7.8.x by hrishabhg
semaphore-agent-production[bot] Jan 29, 2025
4a029ad
Merge branch '7.8.x' into 7.9.x by hrishabhg
semaphore-agent-production[bot] Jan 29, 2025
865cace
Merge branch '7.4.x' into 7.5.x by hrishabhg (using strategy ours)
semaphore-agent-production[bot] Jan 29, 2025
0330a5b
Merge branch '7.5.x' into 7.6.x by hrishabhg (using strategy ours)
semaphore-agent-production[bot] Jan 29, 2025
1b40102
Merge branch '7.6.x' into 7.7.x by hrishabhg (using strategy ours)
semaphore-agent-production[bot] Jan 29, 2025
b6ca3fa
Merge branch '7.7.x' into 7.8.x by hrishabhg (using strategy ours)
semaphore-agent-production[bot] Jan 29, 2025
c8d1fcb
Merge branch '7.8.x' into 7.9.x by hrishabhg (using strategy ours)
semaphore-agent-production[bot] Jan 29, 2025
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
1 change: 1 addition & 0 deletions PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ _Describe the testing strategy. Unit and integration tests are expected for any
- [ ] Ensure docs are updated if necessary. (eg. if a user visible feature is being added or changed).
- [ ] Ensure relevant issues are linked (description should include text like "Fixes #<issue number>")
- [ ] Do these changes have compatibility implications for rollback? If so, ensure that the ksql [command version](https://github.com/confluentinc/ksql/blob/master/ksqldb-rest-app/src/main/java/io/confluent/ksql/rest/server/computation/Command.java#L41) is bumped.

8 changes: 4 additions & 4 deletions ksqldb-rest-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,12 @@
</dependency>

<dependency>
<!-- one.ducking is a fork of com.kjetland -->
<!-- schema-registry is dependent on one.duckling:mbknor-jackson-jsonschema-java8 -->
<!-- io.yokota is a fork of com.kjetland -->
<!-- schema-registry is dependent on io.yokota:mbknor-jackson-jsonschema-java8 -->
<!-- hence all the downstream projects had to use that one only -->
<groupId>one.duckling</groupId>
<groupId>io.yokota</groupId>
<artifactId>mbknor-jackson-jsonschema-java8</artifactId>
<version>1.0.39.1</version>
<version>1.0.39.2</version>
<scope>test</scope>
<exclusions>
<exclusion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ public KsqlTarget target(final URI server, final Map<String, String> additionalH
final HttpClient client = isUriTls ? httpTlsClient : httpNonTlsClient;
return new KsqlTarget(client,
socketAddressFactory.apply(server.getPort(), server.getHost()), localProperties,
authHeader, server.getHost(), additionalHeaders, RequestOptions.DEFAULT_TIMEOUT);
authHeader, server.getHost(), server.getPath(), additionalHeaders,
RequestOptions.DEFAULT_TIMEOUT);
}

public KsqlTarget targetHttp2(final URI server) {
Expand All @@ -139,7 +140,8 @@ public KsqlTarget targetHttp2(final URI server) {
() -> new IllegalStateException("Must provide http2 options to use targetHttp2"));
return new KsqlTarget(client,
socketAddressFactory.apply(server.getPort(), server.getHost()), localProperties,
authHeader, server.getHost(), Collections.emptyMap(), RequestOptions.DEFAULT_TIMEOUT);
authHeader, server.getHost(), server.getPath(), Collections.emptyMap(),
RequestOptions.DEFAULT_TIMEOUT);
}

@VisibleForTesting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,12 @@ private static URI parseUri(final String serverAddress) {
try {
final URL url = new URL(serverAddress);
if (url.getPort() == -1) {
return new URL(serverAddress.concat(":") + url.getDefaultPort()).toURI();
return new URL(
url.getProtocol(),
url.getHost(),
url.getDefaultPort(),
url.getFile()
).toURI();
}
return url.toURI();
} catch (final Exception e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public final class KsqlTarget {
private final LocalProperties localProperties;
private final Optional<String> authHeader;
private final String host;
private final String subPath;
private final Map<String, String> additionalHeaders;
private final long timeout;

Expand All @@ -98,13 +99,15 @@ public final class KsqlTarget {
* @param localProperties Properties sent with ksql requests
* @param authHeader Optional auth headers
* @param host The hostname to use for the request, used to set the host header of the request
* @param subPath Optional path that can be provided with server name
*/
KsqlTarget(
final HttpClient httpClient,
final SocketAddress socketAddress,
final LocalProperties localProperties,
final Optional<String> authHeader,
final String host,
final String subPath,
final Map<String, String> additionalHeaders,
final long timeout
) {
Expand All @@ -113,25 +116,26 @@ public final class KsqlTarget {
this.localProperties = requireNonNull(localProperties, "localProperties");
this.authHeader = requireNonNull(authHeader, "authHeader");
this.host = host;
this.subPath = subPath.replaceAll("/\\z", "");
this.additionalHeaders = requireNonNull(additionalHeaders, "additionalHeaders");
this.timeout = timeout;
}

public KsqlTarget authorizationHeader(final String authHeader) {
return new KsqlTarget(httpClient, socketAddress, localProperties,
Optional.of(authHeader), host, additionalHeaders, timeout);
Optional.of(authHeader), host, subPath, additionalHeaders, timeout);
}

public KsqlTarget properties(final Map<String, ?> properties) {
return new KsqlTarget(httpClient, socketAddress,
new LocalProperties(properties),
authHeader, host, additionalHeaders, timeout);
authHeader, host, subPath, additionalHeaders, timeout);
}

public KsqlTarget timeout(final long timeout) {
return new KsqlTarget(httpClient, socketAddress,
localProperties,
authHeader, host, additionalHeaders, timeout);
authHeader, host, subPath, additionalHeaders, timeout);
}

public RestResponse<ServerInfo> getServerInfo() {
Expand Down Expand Up @@ -503,7 +507,7 @@ private CompletableFuture<ResponseWithBody> execute(
options.setServer(socketAddress);
options.setPort(socketAddress.port());
options.setHost(host);
options.setURI(path);
options.setURI(subPath + path);
options.setTimeout(timeout);

httpClient.request(options, ar -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public class KsqlTargetTest {

private static final String HOST = "host";
private static final String QUERY = "SELECT * from RATINGS_TABLE;";
private static final String SUB_PATH = "";

@Mock
private HttpClient httpClient;
Expand Down Expand Up @@ -151,7 +152,7 @@ private void expectPostQueryRequestChunkHandler() {
@Test
public void shouldPostQueryRequest_chunkHandler() {
ksqlTarget = new KsqlTarget(httpClient, socketAddress, localProperties, authHeader, HOST,
Collections.emptyMap(), RequestOptions.DEFAULT_TIMEOUT);
SUB_PATH, Collections.emptyMap(), RequestOptions.DEFAULT_TIMEOUT);
executor.submit(this::expectPostQueryRequestChunkHandler);
assertThatEventually(requestStarted::get, is(true));

Expand All @@ -167,7 +168,7 @@ public void shouldPostQueryRequest_chunkHandler() {
@Test
public void shouldPostQueryRequest_chunkHandler_exception() {
ksqlTarget = new KsqlTarget(httpClient, socketAddress, localProperties, authHeader, HOST,
Collections.emptyMap(), RequestOptions.DEFAULT_TIMEOUT);
SUB_PATH, Collections.emptyMap(), RequestOptions.DEFAULT_TIMEOUT);
executor.submit(this::expectPostQueryRequestChunkHandler);

assertThatEventually(requestStarted::get, is(true));
Expand All @@ -183,7 +184,7 @@ public void shouldPostQueryRequest_chunkHandler_exception() {
public void shouldPostQueryRequest_chunkHandler_nonOkStatusCode() {
when(httpClientResponse.statusCode()).thenReturn(BAD_REQUEST.code());
ksqlTarget = new KsqlTarget(httpClient, socketAddress, localProperties, authHeader, HOST,
Collections.emptyMap(), RequestOptions.DEFAULT_TIMEOUT);
SUB_PATH, Collections.emptyMap(), RequestOptions.DEFAULT_TIMEOUT);
executor.submit(this::expectPostQueryRequestChunkHandler);

assertThatEventually(requestStarted::get, is(true));
Expand All @@ -198,7 +199,7 @@ public void shouldPostQueryRequest_chunkHandler_nonOkStatusCode() {
@Test
public void shouldPostQueryRequest_chunkHandler_closeEarly() {
ksqlTarget = new KsqlTarget(httpClient, socketAddress, localProperties, authHeader, HOST,
Collections.emptyMap(), RequestOptions.DEFAULT_TIMEOUT);
SUB_PATH, Collections.emptyMap(), RequestOptions.DEFAULT_TIMEOUT);
executor.submit(this::expectPostQueryRequestChunkHandler);

assertThatEventually(requestStarted::get, is(true));
Expand All @@ -216,7 +217,7 @@ public void shouldPostQueryRequest_chunkHandler_closeEarly() {
public void shouldPostQueryRequest_chunkHandler_closeEarlyWithError() {
doThrow(new RuntimeException("Error!")).when(httpConnection).close();
ksqlTarget = new KsqlTarget(httpClient, socketAddress, localProperties, authHeader, HOST,
Collections.emptyMap(), RequestOptions.DEFAULT_TIMEOUT);
SUB_PATH, Collections.emptyMap(), RequestOptions.DEFAULT_TIMEOUT);
executor.submit(this::expectPostQueryRequestChunkHandler);

assertThatEventually(requestStarted::get, is(true));
Expand All @@ -233,7 +234,7 @@ public void shouldPostQueryRequest_chunkHandler_closeEarlyWithError() {
@Test
public void shouldPostQueryRequest_chunkHandler_closeAfterFinish() {
ksqlTarget = new KsqlTarget(httpClient, socketAddress, localProperties, authHeader, HOST,
Collections.emptyMap(), RequestOptions.DEFAULT_TIMEOUT);
SUB_PATH, Collections.emptyMap(), RequestOptions.DEFAULT_TIMEOUT);
executor.submit(this::expectPostQueryRequestChunkHandler);

assertThatEventually(requestStarted::get, is(true));
Expand All @@ -251,7 +252,7 @@ public void shouldPostQueryRequest_chunkHandler_closeAfterFinish() {
@Test
public void shouldPostQueryRequest_chunkHandler_partialMessage() {
ksqlTarget = new KsqlTarget(httpClient, socketAddress, localProperties, authHeader, HOST,
Collections.emptyMap(), RequestOptions.DEFAULT_TIMEOUT);
SUB_PATH, Collections.emptyMap(), RequestOptions.DEFAULT_TIMEOUT);
executor.submit(this::expectPostQueryRequestChunkHandler);

assertThatEventually(requestStarted::get, is(true));
Expand All @@ -272,7 +273,7 @@ public void shouldSendAdditionalHeadersWithKsqlRequest() {
// Given:
final Map<String, String> additionalHeaders = ImmutableMap.of("h1", "v1", "h2", "v2");
ksqlTarget = new KsqlTarget(httpClient, socketAddress, localProperties, authHeader, HOST,
additionalHeaders, RequestOptions.DEFAULT_TIMEOUT);
SUB_PATH, additionalHeaders, RequestOptions.DEFAULT_TIMEOUT);

// When:
executor.submit(() -> {
Expand All @@ -294,7 +295,7 @@ public void shouldSendAdditionalHeadersWithKsqlRequest() {
public void shouldUseTimeout() {
// Given:
ksqlTarget = new KsqlTarget(httpClient, socketAddress, localProperties, authHeader, HOST,
ImmutableMap.of(), 300L);
SUB_PATH, ImmutableMap.of(), 300L);

// When:
executor.submit(() -> {
Expand Down
2 changes: 0 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@
<skip.docker.test>true</skip.docker.test>
<!-- Temporarily disabling this because it is causing failures in packaging but not CI builds. -->
<!-- <compile.warnings-flag>-Werror</compile.warnings-flag> -->
<!-- Only used to provide login module implementation for tests -->
<jetty.version>9.4.53.v20231009</jetty.version>
<git-commit-id-plugin.version>4.9.10</git-commit-id-plugin.version>
<apache.io.version>2.11.0</apache.io.version>
<io.confluent.ksql.version>7.9.0-0</io.confluent.ksql.version>
Expand Down