-
Notifications
You must be signed in to change notification settings - Fork 11
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 3070 - Wait for state store commits to finish based on logs #3063
Issue 3070 - Wait for state store commits to finish based on logs #3063
Conversation
…ed-state-store-committer-throughput
The system test is failing because the instance admin role doesn't have permissions to query the logs. That should be easy to fix. |
case COMPACTION_JOB_ID_ASSIGNMENT: | ||
return StateStoreCommitRequest.forCompactionJobIdAssignment( | ||
context.deserialize(requestObj, CompactionJobIdAssignmentCommitRequest.class)); | ||
case SPLIT_PARTITION: | ||
return StateStoreCommitRequest.forSplitPartition( | ||
context.deserialize(requestObj, SplitPartitionCommitRequest.class)); | ||
case STORED_IN_S3: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason for the re-ordering of the case statements?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I felt like the stored in S3 type should be separate from the others because it's handled differently. I'm not sure there's a good way to make this clear though.
...drivers/src/main/java/sleeper/systemtest/drivers/statestore/StateStoreCommitterLogEntry.java
Outdated
Show resolved
Hide resolved
@@ -129,7 +130,10 @@ private String getMessageGroupId(Message message) { | |||
} | |||
|
|||
private StateStoreCommitRequest readCommitRequest(Message message) { | |||
return new StateStoreCommitRequestDeserialiser(instance.getTablePropertiesProvider()) | |||
LoadS3ObjectFromDataBucket noLoadFromS3 = key -> { | |||
throw new UnsupportedOperationException("Did not expect message held in S3"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Language for message here sounds wrong, not able to think of better suggestion though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just made it actually load from S3, thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small queries as part of review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes and comments acceptable
Make sure you have checked all steps below.
Issue
PR"
Tests
Documentation
separate issue for that below.
NOTICES file to reflect this.