-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from alex-dixon/temporal-1.21.2
Temporal 1.21.2
- Loading branch information
Showing
5 changed files
with
62 additions
and
30 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
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,6 @@ | ||
{ | ||
"CurrVersion": "1.8", | ||
"MinCompatibleVersion": "1.0", | ||
"Description": "add storage for update records and create task_queue_user_data table", | ||
"SchemaUpdateCqlFiles": ["task_queue_user_data.cql"] | ||
} |
18 changes: 18 additions & 0 deletions
18
schema/cassandra/temporal/versioned/v1.8/task_queue_user_data.cql
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,18 @@ | ||
-- Stores task queue information such as user provided versioning data | ||
-- OR | ||
-- Used as a mapping from build id to task queue | ||
CREATE TABLE task_queue_user_data ( | ||
namespace_id uuid, | ||
task_queue_name text, | ||
build_id text, -- If this row is used as a mapping of build id to task queue, this will not be empty | ||
data blob, -- temporal.server.api.persistence.v1.TaskQueueUserData | ||
data_encoding text, -- Encoding type used for serialization, in practice this should always be proto3 | ||
version bigint, -- Version of this row, used for optimistic concurrency | ||
-- task_queue_name is not a part of the parititioning key to allow cheaply iterating all task queues in a single | ||
-- namespace. Access to this table should be infrequent enough that a single partition per namespace can be used. | ||
-- Note that this imposes a limit on total task queue user data within one namespace (see the relevant single | ||
-- partition Cassandra limits). | ||
PRIMARY KEY ((namespace_id), build_id, task_queue_name) | ||
) WITH COMPACTION = { | ||
'class': 'org.apache.cassandra.db.compaction.LeveledCompactionStrategy' | ||
}; |