-
Notifications
You must be signed in to change notification settings - Fork 26
feat - kafka support #243
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
Open
msmygit
wants to merge
56
commits into
master
Choose a base branch
from
feat/kafka_support
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat - kafka support #243
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
61967b8
Initial plan for adding Kafka support
a340dff
Phase 1 - implemented
c41a66b
Phase 2: Core Abstraction Layer
ea1fde6
Phase 3: Pulsar Implementation
1c71917
Phase 4: Kafka Implementation - week 1
28962c9
Phase 2: Core Abstraction Layer - Week 2-3 Deliverables. deleted ph 3…
eca36ef
Phase 3 - week1 - Pulsar Impl
53b7b99
Phase 3 - weeks2&3 - Pulsar Impl
a7581a8
Phase 4 - Kafka implementation initial
f86f3aa
Phase 4 - kafka impl basic docs updates
fda0a5e
Phase 5: Kafka Integration Tests & CI Workflows - Implementation
9a3951d
Remove Made with Bob comment on files
ce9f65f
Phase 1: CI Stabilization - Disable Kafka tests and add resource limits
81bb0f6
ci failures
de57f23
backfill-ci failure fix attempt
eb8aa9f
attempt to fix backfill-ci
effc3c5
temp comment jdk17 from matrix
fa2e97f
attempt to remove kafka premature
271d8ff
backfill cli and ci fix attempt
aad35aa
bob created mess to fix backfill-ci job attempt 5
4aef5bf
phase 3 impl + refactor
bd561a5
interim
94e98e1
interim fixes;slf4j reverts
b581068
interim phase3 fix attempts
23bc3f6
interim fixes backfill-ci failures
28e48b2
interim backfill CI fixes
0e0036b
s
fa04dbe
s
d696075
interim backfill-ci fixes
39a82a8
interim ci fixes
723d4c3
Fix ClassCastException by reverting NativeSchemaWrapper and Cassandra…
2d10e7c
Update BOB_CONTEXT_SUMMARY with ClassCastException fix details
1d3cd5a
backfill-ci fail fix attempt
85c1777
Fix connector test failures: Revert to direct Pulsar API usage
01c7578
ci failures fixes
29ae85b
CI Failure fix attempt
e854cdc
fix(kafka_support): correct SSL keystore/truststore mapping and resto…
c60f1d2
feat(kafka): complete & validate agent-side dual-provider (Pulsar+Kaf…
1826d51
feat(kafka): add Kafka Connect source connector (events -> Cassandra …
c3950c6
fix(backfill): repair messaging-abstraction backfill (SPI discovery +…
e0a5d65
fix(connector): make assertMapsEqual tolerant of shaded/non-shaded Av…
428a094
fix(backfill): forward Docker API version to the e2eTest task and bac…
1eccb2f
fix(backfill): discover dsbulk codec providers in the NAR CLI-extensi…
6c4ccd1
ci: expand Pulsar/Kafka test matrices and restore 360m timeout
990d1df
fix(agent): reject invalid messagingProvider and validate provider co…
9f930e4
docs(kafka): publish Kafka/Confluent user docs and regenerate agent p…
f85aa44
feat(backfill): support Kafka as a backfill destination + e2e + CI
0ce0e6d
docs(backfill): document Kafka as a backfill destination
6fa9bce
fix(backfill-ci): pass cassandraFamily to the Kafka e2e so the right …
5400fb3
fix(backfill-ci): wait on CQL readiness for the no-agent Cassandra node
97b2380
fix(backfill-ci): wait on the CQL port, not a log line, for the no-ag…
53a2b15
fix(backfill-ci): revert to CQL-log wait and make the c4 logback log …
091579a
fix(connector): make testSchema tolerant of non-shaded Avro and JSON …
64d7952
fix(connector): type assertGenericMap keys as Object for shaded/non-s…
de6706e
fix(connector): normalize non-shaded Avro collections nested inside a…
c023bcd
chore(ci): Bump HardNorth/github-version-generate@v1.4.1 to use Nodej…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
agent-c4/src/test/java/com/datastax/oss/cdc/agent/KafkaSingleNodeC4Tests.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| /** | ||
| * Copyright DataStax, Inc 2021. | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
| package com.datastax.oss.cdc.agent; | ||
|
|
||
| import com.datastax.oss.cdc.AgentTestUtil; | ||
| import com.datastax.oss.cdc.KafkaSingleNodeTests; | ||
| import com.datastax.testcontainers.cassandra.CassandraContainer; | ||
| import lombok.extern.slf4j.Slf4j; | ||
| import org.testcontainers.containers.Network; | ||
| import org.testcontainers.utility.DockerImageName; | ||
|
|
||
| import java.util.Optional; | ||
|
|
||
| @Slf4j | ||
| public class KafkaSingleNodeC4Tests extends KafkaSingleNodeTests { | ||
|
|
||
| public static final DockerImageName CASSANDRA_IMAGE = DockerImageName.parse( | ||
| Optional.ofNullable(System.getenv("CASSANDRA_IMAGE")) | ||
| .orElse("cassandra:" + System.getProperty("cassandraVersion")) | ||
| ).asCompatibleSubstituteFor("cassandra"); | ||
|
|
||
| public KafkaSingleNodeC4Tests() { | ||
| super(AgentTestUtil.Version.C4); | ||
| } | ||
|
|
||
| @Override | ||
| public CassandraContainer<?> createCassandraContainer(int nodeIndex, String kafkaBootstrapServers, Network testNetwork) { | ||
| return CassandraContainer.createCassandraContainerWithAgentKafka( | ||
| CASSANDRA_IMAGE, testNetwork, nodeIndex, "c4", kafkaBootstrapServers); | ||
| } | ||
|
|
||
| @Override | ||
| public int getSegmentSize() { | ||
| return 1024 * 1024; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,23 @@ | ||
| # DSE CDC agent for Apache Pulsar | ||
| # DSE CDC agent for Apache Pulsar and Apache Kafka | ||
|
|
||
| ## Overview | ||
|
|
||
| CDC agent for DataStax Enterprise 4.x with support for both Apache Pulsar and Apache Kafka. | ||
|
|
||
| ## Build | ||
|
|
||
| ./gradlew agent-dse4:shadowJar | ||
|
|
||
| ## Run | ||
| ## Run with Pulsar (Default) | ||
|
|
||
| export JVM_EXTRA_OPTS="-javaagent:agent-dse4/build/libs/agent-dse4-<version>-all.jar=pulsarServiceUrl=pulsar://pulsar:6650,cdcWorkingDir=/var/lib/cassandra/cdc" | ||
|
|
||
| ## Run with Kafka | ||
|
|
||
| export JVM_EXTRA_OPTS="-javaagent:agent-dse4/build/libs/agent-dse4-<version>-all.jar=messagingProvider=KAFKA,kafkaBootstrapServers=localhost:9092,cdcWorkingDir=/var/lib/cassandra/cdc" | ||
|
|
||
| ## Configuration | ||
|
|
||
| export JVM_EXTRA_OPTS="-javaagent:agent-dse4/build/libs/agent-dse4-<version>-SNAPSHOT-all.jar=pulsarServiceUrl=pulsar://pulsar:6650,cdcWorkingDir=/var/lib/cassandra/cdc" | ||
| See [agent/README.md](../agent/README.md) for full configuration options. | ||
|
|
||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tip
💡 Code reviewers tip - we may not need this