Skip to content

Conversation

@Dima-X
Copy link
Contributor

@Dima-X Dima-X commented Apr 3, 2025

Description

This PR adds sample application for ScalarDB Cluster .NET Client SDK that uses ISqlTransactionManager.
This is a SQL version of #77

Related issues and/or PRs

https://github.com/scalar-labs/docs-internal-scalardb/pull/1061

Changes made

  • sample added to scalardb-dotnet-samples/scalardb-cluster-sql-sample
  • Visual Studio specific exceptions were added to .gitignore

Checklist

  • I have commented my code, particularly in hard-to-understand areas.
  • I have updated the documentation to reflect the changes.
  • Any remaining open issues linked to this PR are documented and up-to-date (Jira, GitHub, etc.).
  • Tests (unit, integration, etc.) have been added for the changes.
  • My changes generate no new warnings.
  • Any dependent changes in other PRs have been merged and published.

Additional notes (optional)

@Dima-X Dima-X self-assigned this Apr 3, 2025
@Dima-X Dima-X requested review from a team, Torch3333, brfrn169, feeblefakie and komamitsu and removed request for a team April 3, 2025 23:57
@brfrn169 brfrn169 requested a review from kota2and3kan April 4, 2025 00:44

await Task.Delay(TimeSpan.FromSeconds(1));
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think an error handling for retry-over is needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@komamitsu what kind of error handling?

Copy link
Contributor

Choose a reason for hiding this comment

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

An exception should be thrown when the retry is over. Without any exception, users won't know what is happening when facing failures in the following commands.

Copy link
Collaborator

@brfrn169 brfrn169 left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!

@komamitsu
Copy link
Contributor

@feeblefakie @brfrn169 @Torch3333 I added a small fix to throw the last exception when the retry is over 0e7cd46. PTAL just in case.

Copy link
Contributor

@komamitsu komamitsu left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

@feeblefakie
Copy link
Contributor

@komamitsu Thank you! 🙇

Copy link
Contributor

@Torch3333 Torch3333 left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

Copy link
Contributor

@kota2and3kan kota2and3kan left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you!


FYI: I was able to run this sample application in my local environment.

$ dotnet run PlaceOrder 1 3:1,4:1
{
  "order_id": "39bf2d74-e5ef-423a-a278-56148527993b"
}

@brfrn169 brfrn169 merged commit 27c6654 into main Apr 10, 2025
32 checks passed
@brfrn169 brfrn169 deleted the add-dotnet-scalardb-cluster-sql-sample branch April 10, 2025 04:23
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.

6 participants