-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[source-mssql/mysql/postgres] Fix and cleanup oc map #42024
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
...rbyte-cdk/dependencies/src/main/kotlin/io/airbyte/commons/exceptions/ConfigErrorException.kt
Outdated
Show resolved
Hide resolved
@xiaohansong , also fixes this https://github.com/airbytehq/airbyte-internal-issues/issues/8560 ? |
Yes - thanks for linking that! I'll update details in that ticket. |
@@ -159,7 +159,7 @@ public static boolean isSavedOffsetStillPresentOnServer(final JdbcDatabase datab | |||
AirbyteTraceMessageUtility.emitAnalyticsTrace(cdcCursorInvalidMessage()); | |||
if (!sourceConfig.get("replication_method").has(INVALID_CDC_CURSOR_POSITION_PROPERTY) || sourceConfig.get("replication_method").get( | |||
INVALID_CDC_CURSOR_POSITION_PROPERTY).asText().equals(FAIL_SYNC_OPTION)) { | |||
throw new ConfigErrorException( | |||
throw new ConfigErrorException("test", |
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.
"test" left on purpose?
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.
ah yeah just to bypass the compile error when I draft this PR. I'll revert this!
@@ -41,7 +41,13 @@ public void updatePrimaryKeyLoadState(final AirbyteStreamNameNamespacePair pair, | |||
|
|||
// Returns the previous state emitted, represented as a {@link PrimaryKeyLoadStatus} associated with | |||
// the stream. | |||
public abstract PrimaryKeyLoadStatus getPrimaryKeyLoadStatus(final AirbyteStreamNameNamespacePair pair); | |||
public PrimaryKeyLoadStatus getPrimaryKeyLoadStatus(final AirbyteStreamNameNamespacePair pair) { | |||
if (pairToPrimaryKeyLoadStatus.containsKey(pair)) { |
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.
simply doing get()
does the same thing, no?
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.
yeah you are right... I was paranoid that this was null
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.
fixed!
…der` (#38829) Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com> Co-authored-by: Natik Gadzhi <natik@respawn.io>
/publish-java-cdm |
/publish-java-cdk
|
Signed-off-by: Artem Inzhyyants <artem.inzhyyants@gmail.com> Co-authored-by: btkcodedev <btk.codedev@gmail.com> Co-authored-by: Artem Inzhyyants <36314070+artem1205@users.noreply.github.com> Co-authored-by: Natik Gadzhi <natik@respawn.io> Co-authored-by: artem1205 <artem1205@users.noreply.github.com> Co-authored-by: Augustin <augustin@airbyte.io> Co-authored-by: Antonio Papa <antoniogpapa@gmail.com> Co-authored-by: Adam Marcus <marcua@marcua.net> Co-authored-by: Bryce Groff <bgroff@hawaii.edu> Co-authored-by: Akash Kulkarni <113392464+akashkulk@users.noreply.github.com> Co-authored-by: Patrick Nilan <nilan.patrick@gmail.com>
What
https://github.com/airbytehq/oncall/issues/5825
We need to pre-populate all ocInfo or pkInfo to state manager.
In case like this:
We have 2 resumable full refreshes. It failed when we are syncing the 1st one. The final state would be like
{stream: A, streamState: { ...(detailed state)... } }
{stream: B, streamState: null }
The next time it load, with previous logic, it will only load for pkInfo(ocInfo) for stream A. When we run load records for stream B, pkInfo or ocInfo would be null. That is confirmed by the added test.
How
Added a test to cover this. There are some cdk traffic about error message and wass interface change - I just stubbed them. will wait them to merge before checking this in.
Review guide
User Impact
Can this PR be safely reverted and rolled back?