-
Notifications
You must be signed in to change notification settings - Fork 15
rename TransactionKeyValueService to DataKeyValueService #7307
Conversation
Generate changelog in
|
👋 I'll get some time for this tomorrow! |
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.
Nice, thanks for doing this! I verified there are no remaining references to TransactionKeyValueService
or \stkvs
, other than a couple of variable/parameter names which I've left comments on
@@ -59,8 +59,7 @@ public class GetRowsColumnRangeIteratorTest { | |||
public static final BatchColumnRangeSelection COLUMN_RANGE_SELECTION = | |||
BatchColumnRangeSelection.create(null, null, BATCH_SIZE); | |||
|
|||
private final TransactionKeyValueService tkvs = | |||
new DelegatingTransactionKeyValueService(new InMemoryKeyValueService(true)); | |||
private final DataKeyValueService tkvs = new DelegatingDataKeyValueService(new InMemoryKeyValueService(true)); |
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.
nit: let's rename the variable to dkvs
?
@@ -73,14 +73,14 @@ public static List<Integer> sizes() { | |||
private RangeRequest rangeRequest; | |||
|
|||
@Mock | |||
private TransactionKeyValueService tkvs; | |||
private DataKeyValueService tkvs; |
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.
yeah this one should be dkvs
too
throws InterruptedException; | ||
} | ||
|
||
private Expectations asyncGetExpectation( | ||
TransactionKeyValueService tkvMock, Cell cell, long transactionTs, LockService lockMock) { | ||
DataKeyValueService tkvMock, Cell cell, long transactionTs, LockService lockMock) { |
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.
nit: probably dkvMock
?
Released 0.1162.0 |
General
Before this PR:
The name "TransactionKeyValueService" was chosen represent the key value interface available within transactions. After some discussion, we determined that this name was confusing, as it is the interface used to operate on data tables, not on the Transactions tables.
After this PR:
DataKeyValueService is a better name, because from the perspective of configuration, the data KVS is responsible for storing the data tables.
This API is currently marked as beta, and there are no production usages at this time, so this rename is safe to do.
==COMMIT_MSG==
rename TransactionKeyValueService to DataKeyValueService
==COMMIT_MSG==
Please tag any other people who should be aware of this PR:
@jeremyk-91