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

Major refactor to make CDM Spark Native #328

Merged
merged 8 commits into from
Nov 8, 2024
Merged

Conversation

pravinbhat
Copy link
Collaborator

What this PR does: Major refactor to make CDM Spark Native, fixed metrics reporting bug & also improved trackRun feature.

Checklist:

  • Automated Tests added/updated
  • Documentation added/updated
  • CLA Signed: DataStax CLA

… feature and renamed slices/partitions to PartitionRanges. Also provided actual jobs access to PartitionRange class.
# Conflicts:
#	src/main/java/com/datastax/cdm/cql/statement/TargetUpsertRunDetailsStatement.java
#	src/main/java/com/datastax/cdm/feature/TrackRun.java
#	src/main/java/com/datastax/cdm/job/CopyJobSessionFactory.java
#	src/main/java/com/datastax/cdm/job/DiffJobSessionFactory.java
#	src/main/java/com/datastax/cdm/job/GuardrailCheckJobSessionFactory.java
#	src/main/java/com/datastax/cdm/job/PartitionRange.java
#	src/main/java/com/datastax/cdm/job/SplitPartitions.java
#	src/main/scala/com/datastax/cdm/job/DiffData.scala
#	src/main/scala/com/datastax/cdm/job/GuardrailCheck.scala
#	src/main/scala/com/datastax/cdm/job/Migrate.scala
#	src/test/java/com/datastax/cdm/cql/statement/TargetUpsertRunDetailsStatementTest.java
#	src/test/java/com/datastax/cdm/feature/TrackRunTest.java
#	src/test/java/com/datastax/cdm/job/SplitPartitionsTest.java
Copy link
Collaborator

@msmygit msmygit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for doing this Pravin. LGTM 👍🏼

@@ -29,7 +30,10 @@ object DiffData extends BasePartitionJob {
if (!parts.isEmpty()) {
originConnection.withSessionDo(originSession =>
targetConnection.withSessionDo(targetSession =>
jobFactory.getInstance(originSession, targetSession, propertyHelper).initCdmRun(runId, prevRunId, parts, trackRunFeature, JobType.VALIDATE)));
jobFactory.getInstance(originSession, targetSession, propertyHelper).initCdmRun(runId, prevRunId, parts, trackRunFeature, jobType)));
var ma = new CDMMetricsAccumulator(jobType)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we move these 2 lines to the BasePartitionJob class instead? And, remove from these 3 class files?

@pravinbhat pravinbhat merged commit 4b6f938 into main Nov 8, 2024
9 checks passed
@pravinbhat pravinbhat deleted the feature/cluster-metrics branch November 8, 2024 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants