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

Issue 1352 - One S3 state store for all tables #1379

Merged
merged 26 commits into from
Oct 2, 2023

Conversation

kr565370
Copy link
Collaborator

@kr565370 kr565370 commented Sep 28, 2023

Make sure you have checked all steps below.

Issue

Tests

  • My PR adds the following tests OR does not need testing for this extremely good reason:
    • Ran system tests

Documentation

  • In case of new functionality, my PR adds documentation that describes how to use it, or I have linked to a
    separate issue for that below.
  • If I have added, removed, or updated any external dependencies used in the project, I have updated the
    NOTICES file to reflect this.

@kr565370 kr565370 added the pr-stacked-top A stacked pull request that we don't want to merge into its target until the target PR is merged label Sep 28, 2023
@kr565370 kr565370 marked this pull request as draft September 28, 2023 10:15
@patchwork01 patchwork01 added pr-stacked-middle A stacked pull request that must wait until the target PR is merged, and is also a base for stacking and removed pr-stacked-top A stacked pull request that we don't want to merge into its target until the target PR is merged labels Sep 28, 2023
…state-store-for-all-tables

# Conflicts:
#	java/statestore/src/main/java/sleeper/statestore/s3/S3PartitionStore.java
#	java/statestore/src/main/java/sleeper/statestore/s3/S3StateStoreCreator.java
#	java/statestore/src/test/java/sleeper/statestore/s3/S3StateStoreIT.java
…state-store-for-all-tables

# Conflicts:
#	java/statestore/src/main/java/sleeper/statestore/s3/S3PartitionStore.java
@patchwork01 patchwork01 marked this pull request as ready for review September 28, 2023 13:19
kr565370 and others added 2 commits September 29, 2023 10:30
…state-store-for-all-tables

# Conflicts:
#	java/cdk/src/main/java/sleeper/cdk/stack/TableStack.java
#	java/statestore/src/main/java/sleeper/statestore/s3/S3FileInfoStore.java
#	java/statestore/src/main/java/sleeper/statestore/s3/S3PartitionStore.java
#	java/statestore/src/main/java/sleeper/statestore/s3/S3RevisionUtils.java
this.keySerDe = new KeySerDe(rowKeyTypes);
this.fileSchema = initialiseFileInfoSchema();
this.conf = builder.conf;
this.s3RevisionUtils = new S3RevisionUtils(dynamoDB, dynamoRevisionIdTable);
this.s3RevisionUtils = new S3RevisionUtils(builder.dynamoDB, builder.dynamoRevisionIdTable, builder.sleeperTable);
Copy link
Member

Choose a reason for hiding this comment

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

sleeperTable is set on the builder and then used to create this S3RevisionUtils. The s3Path variable is created outside of this class and also contains sleeperTable. It might be cleaner to create s3Path from sleeperTable inside this constructor, as sleeperTable is effectively being passed in twice?

Base automatically changed from 1351-dynamodb-state-store-for-all-tables to main October 2, 2023 09:09
@kr565370 kr565370 added pr-base-for-stacking Base for stacked pull requests (a dependency for others, where this PR's branch will be the base) and removed pr-stacked-middle A stacked pull request that must wait until the target PR is merged, and is also a base for stacking labels Oct 2, 2023
@kr565370 kr565370 merged commit f6138c5 into main Oct 2, 2023
@kr565370 kr565370 deleted the 1352-s3-state-store-for-all-tables branch October 2, 2023 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-base-for-stacking Base for stacked pull requests (a dependency for others, where this PR's branch will be the base)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deploy one S3 state store for all tables
3 participants