This is an automated email from the ASF dual-hosted git repository.
maciej pushed a change to branch java-sdk-improvements
in repository https://gitbox.apache.org/repos/asf/iggy.git
omit 62a403b9a feat(java): refactor SDK with fluent builder API and
exception hierarchy
add 76e928a44 feat(connectors): add Prometheus metrics and stats endpoints
(#2633)
add f50967dd8 feat(integration): add core test harness library (#2632)
new de34cc8b8 feat(java): refactor SDK with fluent builder API and
exception hierarchy
new 10f2619ff review updates
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (62a403b9a)
\
N -- N -- N refs/heads/java-sdk-improvements (10f2619ff)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.gitignore | 1 +
Cargo.lock | 7 +-
Cargo.toml | 1 +
DEPENDENCIES.md | 2 +-
core/connectors/runtime/Cargo.toml | 4 +-
core/connectors/runtime/README.md | 25 +
core/connectors/runtime/config.toml | 4 +
core/connectors/runtime/runtime.http | 6 +
core/connectors/runtime/src/api/config.rs | 31 +-
core/connectors/runtime/src/api/mod.rs | 22 +-
core/connectors/runtime/src/context.rs | 17 +-
core/connectors/runtime/src/main.rs | 2 +
core/connectors/runtime/src/manager/sink.rs | 18 +-
core/connectors/runtime/src/manager/source.rs | 18 +-
core/connectors/runtime/src/metrics.rs | 478 ++++++++++++++++
core/connectors/runtime/src/sink.rs | 39 +-
core/connectors/runtime/src/source.rs | 26 +-
core/connectors/runtime/src/stats.rs | 129 +++++
core/integration/.gitignore | 1 +
core/integration/Cargo.toml | 3 +
core/integration/src/harness/config/client.rs | 198 +++++++
core/integration/src/harness/config/common.rs | 95 ++++
.../src/harness/config/connectors_runtime.rs | 26 +-
core/integration/src/harness/config/mcp.rs | 62 +++
.../random => src/harness/config}/mod.rs | 21 +-
core/integration/src/harness/config/resolve.rs | 270 +++++++++
core/integration/src/harness/config/server.rs | 74 +++
core/integration/src/harness/context.rs | 194 +++++++
core/integration/src/harness/error.rs | 192 +++++++
core/integration/src/harness/fixtures/mod.rs | 60 ++
.../src/harness/fixtures/postgres/container.rs | 187 +++++++
.../src/harness/fixtures/postgres/mod.rs} | 15 +-
.../src/harness/fixtures/postgres/sink.rs | 213 +++++++
.../src/harness/fixtures/postgres/source.rs | 606 ++++++++++++++++++++
.../integration/src/harness/fixtures/random.rs | 24 +-
core/integration/src/harness/fixtures/wiremock.rs | 150 +++++
core/integration/src/harness/handle/client.rs | 230 ++++++++
core/integration/src/harness/handle/common.rs | 107 ++++
.../src/harness/handle/connectors_runtime.rs | 272 +++++++++
core/integration/src/harness/handle/mcp.rs | 285 ++++++++++
.../integration/src/harness/handle/mod.rs | 18 +-
core/integration/src/harness/handle/server.rs | 582 +++++++++++++++++++
core/integration/src/harness/helpers.rs | 113 ++++
core/integration/src/harness/mod.rs | 71 +++
.../src/harness/orchestrator/builder.rs | 292 ++++++++++
.../src/harness/orchestrator/harness.rs | 614 +++++++++++++++++++++
.../integration/src/harness/orchestrator/mod.rs | 6 +-
core/integration/src/harness/port_reserver.rs | 251 +++++++++
core/integration/src/harness/seeds.rs | 145 +++++
core/integration/src/harness/traits.rs | 56 ++
core/integration/src/lib.rs | 1 +
core/integration/src/websocket_client.rs | 35 +-
.../tests/connectors/{random => api}/config.toml | 11 +-
.../tests/connectors/api/connectors/.gitkeep | 0
core/integration/tests/connectors/api/endpoints.rs | 217 ++++++++
.../tests/connectors/{random => api}/mod.rs | 6 +-
core/integration/tests/connectors/mod.rs | 1 +
.../tests/server/concurrent_addition.rs | 5 +-
core/integration/tests/server/mod.rs | 5 +-
.../server/scenarios/delete_segments_scenario.rs | 21 +-
core/integration/tests/server/specific.rs | 29 +-
core/server/Cargo.toml | 2 +-
core/server/src/http/http_server.rs | 33 +-
.../src/main/java/org/apache/iggy/Iggy.java | 37 +-
.../src/main/java/org/apache/iggy/IggyVersion.java | 6 +-
.../blocking/http/IggyHttpClientBuilder.java | 5 +-
.../client/blocking/http/InternalHttpClient.java | 21 +-
.../iggy/client/blocking/http/UrlValidator.java | 60 ++
.../exception/IggyAuthenticationException.java | 21 +
.../iggy/exception/IggyAuthorizationException.java | 14 +
.../iggy/exception/IggyConflictException.java | 20 +
.../org/apache/iggy/exception/IggyErrorCode.java | 1 -
.../exception/IggyResourceNotFoundException.java | 27 +
.../apache/iggy/exception/IggyServerException.java | 89 +--
.../iggy/exception/IggyValidationException.java | 31 ++
.../src/test/java/org/apache/iggy/IggyTest.java | 10 +-
.../test/java/org/apache/iggy/IggyVersionTest.java | 113 ++++
.../client/async/AsyncClientIntegrationTest.java | 6 +-
.../iggy/client/async/AsyncPollMessageTest.java | 5 +-
.../async/tcp/AsyncIggyTcpClientBuilderTest.java | 21 +-
.../iggy/client/blocking/IntegrationTest.java | 1 +
.../client/blocking/http/HttpClientFactory.java | 3 +-
.../client/blocking/http/UrlValidatorTest.java | 90 +++
.../blocking/tcp/IggyTcpClientBuilderTest.java | 24 +-
.../iggy/client/blocking/tcp/TcpClientFactory.java | 3 +-
.../apache/iggy/exception/IggyErrorCodeTest.java | 149 +++++
.../iggy/exception/IggyServerExceptionTest.java | 156 ++++++
87 files changed, 7274 insertions(+), 268 deletions(-)
create mode 100644 core/connectors/runtime/src/metrics.rs
create mode 100644 core/connectors/runtime/src/stats.rs
create mode 100644 core/integration/.gitignore
create mode 100644 core/integration/src/harness/config/client.rs
create mode 100644 core/integration/src/harness/config/common.rs
copy
foreign/java/buildSrc/src/main/kotlin/iggy.java-application-conventions.gradle.kts
=> core/integration/src/harness/config/connectors_runtime.rs (62%)
create mode 100644 core/integration/src/harness/config/mcp.rs
copy core/integration/{tests/connectors/random => src/harness/config}/mod.rs
(70%)
create mode 100644 core/integration/src/harness/config/resolve.rs
create mode 100644 core/integration/src/harness/config/server.rs
create mode 100644 core/integration/src/harness/context.rs
create mode 100644 core/integration/src/harness/error.rs
create mode 100644 core/integration/src/harness/fixtures/mod.rs
create mode 100644 core/integration/src/harness/fixtures/postgres/container.rs
copy core/{configs/src/lib.rs =>
integration/src/harness/fixtures/postgres/mod.rs} (67%)
create mode 100644 core/integration/src/harness/fixtures/postgres/sink.rs
create mode 100644 core/integration/src/harness/fixtures/postgres/source.rs
copy
foreign/java/java-sdk/src/main/java/org/apache/iggy/message/PollingKind.java =>
core/integration/src/harness/fixtures/random.rs (68%)
create mode 100644 core/integration/src/harness/fixtures/wiremock.rs
create mode 100644 core/integration/src/harness/handle/client.rs
create mode 100644 core/integration/src/harness/handle/common.rs
create mode 100644 core/integration/src/harness/handle/connectors_runtime.rs
create mode 100644 core/integration/src/harness/handle/mcp.rs
copy
foreign/java/buildSrc/src/main/kotlin/iggy.java-library-conventions.gradle.kts
=> core/integration/src/harness/handle/mod.rs (78%)
create mode 100644 core/integration/src/harness/handle/server.rs
create mode 100644 core/integration/src/harness/helpers.rs
create mode 100644 core/integration/src/harness/mod.rs
create mode 100644 core/integration/src/harness/orchestrator/builder.rs
create mode 100644 core/integration/src/harness/orchestrator/harness.rs
copy bdd/java/settings.gradle.kts =>
core/integration/src/harness/orchestrator/mod.rs (88%)
create mode 100644 core/integration/src/harness/port_reserver.rs
create mode 100644 core/integration/src/harness/seeds.rs
create mode 100644 core/integration/src/harness/traits.rs
copy core/integration/tests/connectors/{random => api}/config.toml (82%)
create mode 100644 core/integration/tests/connectors/api/connectors/.gitkeep
create mode 100644 core/integration/tests/connectors/api/endpoints.rs
copy core/integration/tests/connectors/{random => api}/mod.rs (88%)
create mode 100644
foreign/java/java-sdk/src/main/java/org/apache/iggy/client/blocking/http/UrlValidator.java
create mode 100644
foreign/java/java-sdk/src/test/java/org/apache/iggy/IggyVersionTest.java
create mode 100644
foreign/java/java-sdk/src/test/java/org/apache/iggy/client/blocking/http/UrlValidatorTest.java
create mode 100644
foreign/java/java-sdk/src/test/java/org/apache/iggy/exception/IggyErrorCodeTest.java
create mode 100644
foreign/java/java-sdk/src/test/java/org/apache/iggy/exception/IggyServerExceptionTest.java