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

[Reverse Replication] Adding load test for custom transformation #2061

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

shreyakhajanchi
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Dec 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.37%. Comparing base (5b0c2cd) to head (8a340fd).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2061      +/-   ##
============================================
- Coverage     46.38%   46.37%   -0.01%     
- Complexity     3939     4262     +323     
============================================
  Files           864      864              
  Lines         51358    51358              
  Branches       5394     5394              
============================================
- Hits          23822    23819       -3     
- Misses        25823    25824       +1     
- Partials       1713     1715       +2     
Components Coverage Δ
spanner-templates 68.29% <ø> (-0.02%) ⬇️
spanner-import-export 65.54% <ø> (-0.06%) ⬇️
spanner-live-forward-migration 76.67% <ø> (ø)
spanner-live-reverse-replication 77.93% <ø> (ø)
spanner-bulk-migration 87.39% <ø> (ø)

see 2 files with indirect coverage changes

@shreyakhajanchi shreyakhajanchi marked this pull request as ready for review December 29, 2024 07:04
@shreyakhajanchi shreyakhajanchi requested a review from a team as a code owner December 29, 2024 07:04
Copy link
Contributor

@darshan-sj darshan-sj left a comment

Choose a reason for hiding this comment

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

Some minor comments.

MigrationTransformationResponse response =
new MigrationTransformationResponse(responseRow, false);
return response;
} else if (request.getTableName().equals("Person")) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a todo and probably create a bug to rename this file? Looks like we are reusing this for Reverse replication Load tests, so the name should not contain ForLive and IT suffix.

}

@Test
public void reverseReplication1KTpsLoadTest()
Copy link
Contributor

Choose a reason for hiding this comment

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

Please change the method name to contain context of full test case. reverseReplication1KTpsWithCustomTransformation maybe?

private final String spannerDdlResource = "SpannerToMySqlSourceLT/spanner-schema.sql";
private final String sessionFileResource = "SpannerToMySqlCustomTransformationLT/session.json";
private final String dataGeneratorSchemaResource =
"SpannerToMySqlSourceLT/datagenerator-schema.json";
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you not need a new datagenerator-schema?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants