-
Notifications
You must be signed in to change notification settings - Fork 15
TransactionManager#startTransactions API. #4799
Conversation
Generate changelog in
|
atlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/StartTransactionRequest.java
Show resolved
Hide resolved
atlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/StartTransactionRequest.java
Show resolved
Hide resolved
...l-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionManager.java
Outdated
Show resolved
Hide resolved
atlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/OpenTransaction.java
Show resolved
Hide resolved
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.
Preliminary feedback (only scanned, didn't review impl in depth)
OpenTransaction
- Broadly makes sense. In general no reason to expose the immutable timestamp thing
- Just make sure to check this won’t actually break anyone; backup services and migration lib are probably going to touch immutable timestamps in some way, so I’d imagine they’d be higher risk. (Though they might not go through TMs, in which case they’re fine)
OpenTransactions plural
- I’d interpret OpenTransactions as List + maybe some derived things, including LockWatch stuff there seems a bit unexpected. (In a good number of contexts (large internal product, embedded) we won’t have and won’t use the Events.)
- Yet we certainly do want this structure. Maybe if we named it StartTransactionsResponse I’d find this to be less conflicting with my intuition?
8844aa7
to
8f4cf17
Compare
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.
For the most part this makes sense. Some minor questions
atlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/OpenTransaction.java
Show resolved
Hide resolved
atlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/OpenTransactions.java
Outdated
Show resolved
Hide resolved
atlasdb-api/src/main/java/com/palantir/atlasdb/transaction/api/OpenTransactions.java
Outdated
Show resolved
Hide resolved
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.
👍
Goals (and why):
Implementation Description (bullets):
Testing (What was existing testing like? What have you done to improve it?):
Concerns (what feedback would you like?):
Where should we start reviewing?:
Priority (whenever / two weeks / yesterday):