-
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
b6d1442
Initial plan for adding Kafka support
fea3bc4
Phase 1 - implemented
3ab69d0
Phase 2: Core Abstraction Layer
d9a8fec
Phase 3: Pulsar Implementation
cfc0dc8
Phase 4: Kafka Implementation - week 1
fce5f51
Phase 2: Core Abstraction Layer - Week 2-3 Deliverables. deleted ph 3…
684ef81
Phase 3 - week1 - Pulsar Impl
d07e4f5
Phase 3 - weeks2&3 - Pulsar Impl
3d9d617
Phase 4 - Kafka implementation initial
fc3f244
Phase 4 - kafka impl basic docs updates
86bf0aa
Phase 5: Kafka Integration Tests & CI Workflows - Implementation
1c7f534
Remove Made with Bob comment on files
70d9916
Phase 1: CI Stabilization - Disable Kafka tests and add resource limits
3f3315a
ci failures
b80ce5d
backfill-ci failure fix attempt
1c2979a
attempt to fix backfill-ci
c5337b2
temp comment jdk17 from matrix
577e806
attempt to remove kafka premature
1603fb2
backfill cli and ci fix attempt
b3d9335
bob created mess to fix backfill-ci job attempt 5
179c492
phase 3 impl + refactor
87b5ed1
interim
f867de7
interim fixes;slf4j reverts
fdea62f
interim phase3 fix attempts
cc906bb
interim fixes backfill-ci failures
d694287
interim backfill CI fixes
e026596
s
00ad4ad
s
47eb9be
interim backfill-ci fixes
678d2d2
interim ci fixes
4da15b2
Fix ClassCastException by reverting NativeSchemaWrapper and Cassandra…
49bea0f
Update BOB_CONTEXT_SUMMARY with ClassCastException fix details
34575fc
backfill-ci fail fix attempt
e868c1d
Fix connector test failures: Revert to direct Pulsar API usage
3638ff0
ci failures fixes
1b125cc
CI Failure fix attempt
0fb7517
fix(kafka_support): correct SSL keystore/truststore mapping and resto…
9c8d6af
feat(kafka): complete & validate agent-side dual-provider (Pulsar+Kaf…
c54e7ef
feat(kafka): add Kafka Connect source connector (events -> Cassandra …
1961ed3
fix(backfill): repair messaging-abstraction backfill (SPI discovery +…
7361533
fix(connector): make assertMapsEqual tolerant of shaded/non-shaded Av…
6c187ec
fix(backfill): forward Docker API version to the e2eTest task and bac…
1e5f2ad
fix(backfill): discover dsbulk codec providers in the NAR CLI-extensi…
83dc982
ci: expand Pulsar/Kafka test matrices and restore 360m timeout
457b522
fix(agent): reject invalid messagingProvider and validate provider co…
5db278f
docs(kafka): publish Kafka/Confluent user docs and regenerate agent p…
2c54b59
feat(backfill): support Kafka as a backfill destination + e2e + CI
eadc40a
docs(backfill): document Kafka as a backfill destination
558e7d2
fix(backfill-ci): pass cassandraFamily to the Kafka e2e so the right …
6217224
fix(backfill-ci): wait on CQL readiness for the no-agent Cassandra node
84c1a4b
fix(backfill-ci): wait on the CQL port, not a log line, for the no-ag…
25eadd9
fix(backfill-ci): revert to CQL-log wait and make the c4 logback log …
95f0ff7
fix(connector): make testSchema tolerant of non-shaded Avro and JSON …
1f14da6
fix(connector): type assertGenericMap keys as Object for shaded/non-s…
251e4a2
fix(connector): normalize non-shaded Avro collections nested inside a…
f8d23a3
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.
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