-
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for ListTransactions, minor DescribeTransactions change
In describe transactions, the response field should be TransactionStates, not TransactionalStates. Since this is in an "unreleased" API, I'm ok with breaking this. List is defined and handled just like sharded list groups.
- Loading branch information
Showing
6 changed files
with
517 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// For KIP-664, ListTransactionsRequest lists transactions. | ||
ListTransactionsRequest => key 66, max version 0, flexible v0+ | ||
// The transaction states to filter by: if empty, all transactions are | ||
// returned; if non-empty, then only transactions matching one of the | ||
// filtered states will be returned. | ||
// | ||
// For a list of valid states, see the TransactionState enum. | ||
StateFilters: [string] | ||
// The producer IDs to filter by: if empty, all transactions will be | ||
// returned; if non-empty, only transactions which match one of the filtered | ||
// producer IDs will be returned | ||
ProducerIDFilters: [int64] | ||
|
||
// ListTransactionsResponse is a response to a ListTransactionsRequest. | ||
ListTransactionsResponse => | ||
ThrottleMillis | ||
// A potential error code for the listing, | ||
// | ||
// COORDINATOR_LOAD_IN_PROGRESS is returned if the coordinator is loading. | ||
// | ||
// COORDINATOR_NOT_AVAILABLE is returned if the coordinator receiving this | ||
// request is shutting down. | ||
ErrorCode: int16 | ||
// Set of state filters provided in the request which were unknown to the | ||
// transaction coordinator. | ||
UnknownStateFilters: [string] | ||
// TransactionStates contains all transactions that were matched for listing | ||
// in the request. The response elides transactions that the user does not have | ||
// permission to describe (DESCRIBE on TRANSACTIONAL_ID for the transaction). | ||
TransactionStates: [=>] | ||
// The transactional ID being used. | ||
TransactionalID: string | ||
// The producer ID of the producer. | ||
ProducerID: int64 | ||
// The current transaction state of the producer. | ||
TransactionState: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.