Commit 9284a2a
authored
feat(domain multi-tenancy): Update persistence layer to use the new fields in transfer task and timer task (#7729)
<!-- 1-2 line summary of WHAT changed technically:
- Always link the relevant projects GitHub issue, unless it is a minor
bugfix
- Good: "Modified FailoverDomain mapper to allow null ActiveClusterName
#320"
- Bad: "added nil check" -->
**What changed?**
Update persistence layer to store the new fields of transfer task and
timer task into the underlying database
<!-- Your goal is to provide all the required context for a future
maintainer
to understand the reasons for making this change (see
https://cbea.ms/git-commit/#why-not-how).
How did this work previously (and what was wrong with it)? What has
changed, and why did you solve it
this way?
- Good: "Active-active domains have independent cluster attributes per
region. Previously,
modifying cluster attributes required spedifying the default
ActiveClusterName which
updates the global domain default. This prevents operators from updating
regional
configurations without affecting the primary cluster designation. This
change allows
attribute updates to be independent of active cluster selection."
- Bad: "Improves domain handling" -->
**Why?**
To support Domain multi-tenancy, we want all history tasks to be tagged
by their task lists.
#7724
<!-- Include specific test commands and setup. Please include the exact
commands such that
another maintainer or contributor can reproduce the test steps taken.
- e.g Unit test commands with exact invocation
`go test -v ./common/types/mapper/proto -run TestFailoverDomainRequest`
- For integration tests include setup steps and test commands
Example: "Started local server with `./cadence start`, then ran `make
test_e2e`"
- For local simulation testing include setup steps for the server and
how you ran the tests
- Good: Full commands that reviewers can copy-paste to verify
- Bad: "Tested locally" or "Added tests" -->
**How did you test it?**
unit tests
```
cd common/persistence && go test ./...
```
<!-- If there are risks that the release engineer should know about
document them here.
For example:
- Has an API/IDL been modified? Is it backwards/forwards compatible? If
not, what are the repecussions?
- Has a schema change been introduced? Is it possible to roll back?
- Has a feature flag been re-used for a new purpose?
- Is there a potential performance concern? Is the change modifying core
task processing logic?
- If truly N/A, you can mark it as such -->
**Potential risks**
N/A
<!-- If this PR completes a user facing feature or changes functionality
add release notes here.
Your release notes should allow a user and the release engineer to
understand the changes with little context.
Always ensure that the description contains a link to the relevant
GitHub issue. -->
**Release notes**
<!-- Consider whether this change requires documentation updates in the
Cadence-Docs repo
- If yes: mention what needs updating (or link to docs PR in
cadence-docs repo)
- If in doubt, add a note about potential doc needs
- Only mark N/A if you're certain no docs are affected -->
**Documentation Changes**
---
## Reviewer Validation
**PR Description Quality** (check these before reviewing code):
- [ ] **"What changed"** provides a clear 1-2 line summary
- [ ] Project Issue is linked
- [ ] **"Why"** explains the full motivation with sufficient context
- [ ] **Testing is documented:**
- [ ] Unit test commands are included (with exact `go test` invocation)
- [ ] Integration test setup/commands included (if integration tests
were run)
- [ ] Canary testing details included (if canary was mentioned)
- [ ] **Potential risks** section is thoughtfully filled out (or
legitimately N/A)
- [ ] **Release notes** included if this completes a user-facing feature
- [ ] **Documentation** needs are addressed (or noted if uncertain)1 parent 19e3901 commit 9284a2a
File tree
13 files changed
+520
-172
lines changed- common/persistence
- nosql
- nosqlplugin/cassandra
- persistence-tests
- serialization
- service/history/task
13 files changed
+520
-172
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
| 490 | + | |
490 | 491 | | |
491 | 492 | | |
492 | 493 | | |
| |||
524 | 525 | | |
525 | 526 | | |
526 | 527 | | |
| 528 | + | |
527 | 529 | | |
528 | 530 | | |
529 | 531 | | |
| |||
1851 | 1853 | | |
1852 | 1854 | | |
1853 | 1855 | | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
1854 | 1866 | | |
1855 | 1867 | | |
1856 | 1868 | | |
| |||
1883 | 1895 | | |
1884 | 1896 | | |
1885 | 1897 | | |
| 1898 | + | |
1886 | 1899 | | |
1887 | 1900 | | |
1888 | 1901 | | |
1889 | 1902 | | |
1890 | 1903 | | |
| 1904 | + | |
1891 | 1905 | | |
1892 | 1906 | | |
1893 | 1907 | | |
1894 | 1908 | | |
1895 | 1909 | | |
| 1910 | + | |
1896 | 1911 | | |
1897 | 1912 | | |
1898 | 1913 | | |
1899 | 1914 | | |
1900 | 1915 | | |
| 1916 | + | |
1901 | 1917 | | |
1902 | 1918 | | |
1903 | 1919 | | |
1904 | 1920 | | |
1905 | 1921 | | |
| 1922 | + | |
1906 | 1923 | | |
1907 | 1924 | | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
1908 | 1929 | | |
1909 | 1930 | | |
1910 | 1931 | | |
1911 | 1932 | | |
1912 | 1933 | | |
1913 | | - | |
| 1934 | + | |
| 1935 | + | |
1914 | 1936 | | |
1915 | 1937 | | |
1916 | 1938 | | |
1917 | 1939 | | |
1918 | 1940 | | |
| 1941 | + | |
1919 | 1942 | | |
1920 | 1943 | | |
1921 | 1944 | | |
| |||
1924 | 1947 | | |
1925 | 1948 | | |
1926 | 1949 | | |
| 1950 | + | |
1927 | 1951 | | |
1928 | 1952 | | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
1929 | 1957 | | |
1930 | 1958 | | |
1931 | 1959 | | |
1932 | 1960 | | |
1933 | 1961 | | |
1934 | | - | |
| 1962 | + | |
1935 | 1963 | | |
1936 | 1964 | | |
| 1965 | + | |
1937 | 1966 | | |
1938 | 1967 | | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
1939 | 1972 | | |
1940 | 1973 | | |
1941 | 1974 | | |
1942 | 1975 | | |
1943 | 1976 | | |
1944 | | - | |
| 1977 | + | |
1945 | 1978 | | |
1946 | 1979 | | |
| 1980 | + | |
1947 | 1981 | | |
1948 | 1982 | | |
1949 | 1983 | | |
| |||
2027 | 2061 | | |
2028 | 2062 | | |
2029 | 2063 | | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
2030 | 2069 | | |
2031 | 2070 | | |
2032 | 2071 | | |
| |||
2054 | 2093 | | |
2055 | 2094 | | |
2056 | 2095 | | |
| 2096 | + | |
2057 | 2097 | | |
2058 | 2098 | | |
2059 | 2099 | | |
| |||
2062 | 2102 | | |
2063 | 2103 | | |
2064 | 2104 | | |
| 2105 | + | |
2065 | 2106 | | |
2066 | 2107 | | |
2067 | 2108 | | |
2068 | 2109 | | |
2069 | 2110 | | |
| 2111 | + | |
2070 | 2112 | | |
2071 | 2113 | | |
2072 | 2114 | | |
2073 | 2115 | | |
2074 | 2116 | | |
| 2117 | + | |
2075 | 2118 | | |
2076 | 2119 | | |
2077 | 2120 | | |
2078 | 2121 | | |
2079 | 2122 | | |
2080 | 2123 | | |
| 2124 | + | |
2081 | 2125 | | |
2082 | 2126 | | |
2083 | 2127 | | |
2084 | 2128 | | |
2085 | 2129 | | |
2086 | 2130 | | |
2087 | 2131 | | |
| 2132 | + | |
2088 | 2133 | | |
2089 | 2134 | | |
2090 | 2135 | | |
2091 | 2136 | | |
2092 | 2137 | | |
2093 | 2138 | | |
| 2139 | + | |
2094 | 2140 | | |
2095 | 2141 | | |
2096 | 2142 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
273 | 225 | | |
274 | 226 | | |
275 | 227 | | |
| |||
387 | 339 | | |
388 | 340 | | |
389 | 341 | | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
469 | 345 | | |
470 | 346 | | |
471 | 347 | | |
| |||
0 commit comments