Repository navigation
get source-mssql CI to green - #35721
Stephane Geneix (stephane-airbyte) merged 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This stack of pull requests is managed by Graphite. Learn more about stacking. Join Stephane Geneix (@stephane-airbyte) and the rest of your teammates on |
d43a95d to
5fd305f
Compare
4c58954 to
adef115
Compare
5fd305f to
196cd34
Compare
ba5d342 to
a5d73cc
Compare
712b2e2 to
f8bbde2
Compare
196cd34 to
c77c535
Compare
f8bbde2 to
76e1a66
Compare
651c9ff to
9ccfb3a
Compare
76e1a66 to
0e2dd77
Compare
9ccfb3a to
d570a23
Compare
0e2dd77 to
91078e0
Compare
2043e3c to
135d3cc
Compare
c18e19d to
9bb20bd
Compare
135d3cc to
d80ceb5
Compare
c3460c0 to
1749924
Compare
There was a problem hiding this comment.
Any chance you could change your testdb methods to rethrow checked exceptions as runtime exceptions? Please. Having to propagate checked exception signatures all over the place is noisy and annoying, and not particularly useful in test harnesses.
There was a problem hiding this comment.
Since this pattern is fairly common it might be worth introducing a retryEverySecondUntil function which takes a closure and retries as long as that closure returns a null or something
Marius Posta (postamar)
left a comment
There was a problem hiding this comment.
The only blocker on my end is a missing exit criterion when it comes to determining the max lsn
Merge activity
|

TheAbstractMssqlSourceDatatypeTest was wrong for reals.
CdcMssqlSourceTest and CdcMssqlSslSourceTest no longer use exclusive containers.
tests that change the SQLServer agent state are now in their own test class (which needs to use an exclusive container)
Besides that, the core of the problem can be grouped in 2 issues:
a) some tests are failing to enable CDC for tables. This is due to a timing issue. We moved that logic into its own function that will try for a total of 240seconds before giving up.
b) some tests are failing when trying to read the minLsn. There is a 1sec wait implemented in the production code. Instead we introduce a busy loop that will wait for a total of 240seconds for records to appear in the CDC table before giving up. That function is implemented in test code.
Unfortunately, for both cases, we sometimes needed to wait while in the middle of a function implemented in the CDK. We introduced a few hooks in the parent PR that are implemented in this PR for the source-mssql tests, and use the functions described above