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.
| String groupId; | ||
| short priority; | ||
| boolean propDels; | ||
| Long fateTxId; |
There was a problem hiding this comment.
We may need a follow on update for upgrade
- 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.