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

Add experimental support for Amazon Managed KeySpace #2644

Merged
merged 1 commit into from
Jun 12, 2021

Conversation

li-boxuan
Copy link
Member

Closes #2370


Thank you for contributing to JanusGraph!

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

For all changes:

  • Is there an issue associated with this PR? Is it referenced in the commit message?
  • Does your PR body contain #xyz where xyz is the issue number you are trying to resolve?
  • Has your PR been rebased against the latest commit within the target branch (typically master)?
  • Is your initial contribution a single, squashed commit?

For code changes:

  • Have you written and/or updated unit tests to verify your changes?
  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
  • If applicable, have you updated the LICENSE.txt file, including the main LICENSE.txt file in the root of this repository?
  • If applicable, have you updated the NOTICE.txt file, including the main NOTICE.txt file found in the root of this repository?

For documentation related changes:

  • Have you ensured that format looks appropriate for the output in which it is rendered?

@li-boxuan li-boxuan added this to the Release v0.6.0 milestone Jun 5, 2021
@janusgraph-bot janusgraph-bot added the cla: external Externally-managed CLA label Jun 5, 2021
Copy link
Member

@porunov porunov 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 @li-boxuan for this feature!

Closes JanusGraph#2370

Signed-off-by: Boxuan Li <liboxuan@connect.hku.hk>
@@ -231,6 +231,8 @@ public CQLStoreManager(final Configuration configuration) throws BackendExceptio
"server, please check %s and %s options", PARTITIONER_NAME.getName(), METADATA_TOKEN_MAP_ENABLED.getName()));
}
switch (partitioner) {
case "DefaultPartitioner": // Amazon managed KeySpace uses com.amazonaws.cassandra.DefaultPartitioner
fb.timestamps(false).cellTTL(false);
Copy link
Member Author

Choose a reason for hiding this comment

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

I have no idea how we could possibly test this. If anyone has an idea, please let me know.

Copy link
Member

Choose a reason for hiding this comment

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

I guess in this situation it should be tested manually because we don't have access to Amazon managed cassandra to test it. Also, I didn't find Docker containers which mimic Amazon managed Cassandra.
We could also refactor the code to follow DI principle and move cql session creation and store features creation to separate builders / factories. If so, we can mock session and cover store features creation by unit tests but I wouldn't do it in the same PR.
Thus, I think that's fine to not cover this branch with tests in this PR

@li-boxuan
Copy link
Member Author

Will merge this in 24 hours if there is no other review.

@li-boxuan li-boxuan deleted the feature/support-aws branch August 21, 2021 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: external Externally-managed CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for AWS Keyspaces
4 participants