-
Notifications
You must be signed in to change notification settings - Fork 454
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
Globally Unique FATE Transaction Ids - Part 3 #4247
Globally Unique FATE Transaction Ids - Part 3 #4247
Conversation
This addresses several previously deferred changes for issue apache#4044. Root of most of these new changes were from changing TabletMetadata and TabletUpdates (in Ample) - FateId is now stored in the Metadata table instead of just the formatted long id. Addresses deferred changes to TabletMetadata, TabletUpdates, CompactionConfigStorage, SelectedFiles, and Ample.
@@ -98,7 +99,7 @@ private static class GSonData { | |||
String groupId; | |||
short priority; | |||
boolean propDels; | |||
Long fateTxId; |
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.
We may need a follow on update for upgrade
core/src/main/java/org/apache/accumulo/core/metadata/schema/CompactionMetadata.java
Outdated
Show resolved
Hide resolved
core/src/main/java/org/apache/accumulo/core/metadata/schema/CompactionMetadata.java
Outdated
Show resolved
Hide resolved
server/base/src/main/java/org/apache/accumulo/server/compaction/CompactionConfigStorage.java
Show resolved
Hide resolved
.../base/src/main/java/org/apache/accumulo/server/manager/state/TabletManagementParameters.java
Outdated
Show resolved
Hide resolved
test/src/main/java/org/apache/accumulo/test/functional/AmpleConditionalWriterIT.java
Outdated
Show resolved
Hide resolved
test/src/main/java/org/apache/accumulo/test/functional/SplitRecoveryIT.java
Show resolved
Hide resolved
...r/manager/src/main/java/org/apache/accumulo/manager/tableOps/bulkVer2/CleanUpBulkImport.java
Show resolved
Hide resolved
- FateId refactored (better Pattern for FateId and simpler validation) - CompactionMetadata GSonData changed to use the canonical FateId string instead of FateId (note that old data may need to be considered here) - SelectedFiles renamed "txid" -> "fateId". SelectedFilesTest updated to be consistent with changes - CompactionConfigStorage added Preconditions check - Changed compactionHints in TabletManagementParameters from Map<FateId,Map<String,String>> -> Map<String,Map<String,String>>: required changes to TabletManagementParameters, CompactionConfigStorage, CompactionJobGenerator, TabletManagementParametersTest, Manager, CancelCompactions, and PreDeleteTable - AmpleConditionalWriterIT.testCompacted() reordering of FateIds
Completed review changes:
|
Sorry I did not communicate very clearly for the comment about that. Was not looking to change the external map type parameters for TabletManagementParameters to have a key type of String. Just thought it would be good to change internal map used for json so that the json encoding would cleaner. So was thinking of pattern like the following.
|
Ah gotcha. Will fix. |
… to CompactionConfigStorage, CompactionJobGenerator, TabletManagementParametersTest, Manager, CancelCompactions, and PreDeleteTable from the previous commit involving changes to 'compactionHints'
@kevinrr888 - The latest IT run is failing (stacktrace below). I think it might be due to this merge. Just an FYI...
|
Thanks for pointing this out. I created #4265 |
This addresses several previously deferred changes for issue #4044. Root of most of these new changes were from changing TabletMetadata and TabletUpdates (in Ample) - FateId is now stored in the Metadata table instead of just the formatted long id. Addresses deferred changes to TabletMetadata, TabletUpdates, CompactionConfigStorage, SelectedFiles, and Ample.