1
0
mirror of synced 2026-01-07 00:05:48 -05:00
Commit Graph

20 Commits

Author SHA1 Message Date
Jimmy Ma
c47890d0a5 Exclude connectors with unsupported protocol version from seed updates (#19328)
* Filter out connectors with unsupported protocol in ApplyDefinitionsHelper

* Format

* Remove code dupl
2022-11-15 08:36:27 -08:00
Davin Chia
e5c3f4bd0d Remove unused job persistence methods. (#18952)
Closes #12823.

Also remove unused dump methods.
2022-11-04 11:29:43 -07:00
Jonathan Pearlin
c8a7cb333b Handle null JobSyncConfig (#18969)
* Handle null JobSyncConfig

* Add unit test

* Fix PMD warning

* Do not update jobs in terminal state

* Fix failing tests

* Fix compile error
2022-11-04 12:51:29 -04:00
Davin Chia
aaeec26de3 Job Persistence Refactor in preparation for progress bar. (#18891)
Some refactoring in preparation for the progress bar persistence changes.

The main change here was to simplify some of the JobPersistence methods by moving the logic to calculate attemptId into the JobPersistence implementation. This logic currently sits outside the class and is duplicated in multiple places. We could expose a helper method to calculate this logic, however that felt unnecessary at this point.

The alternative is further duplicating this logic as the progress bar logic is implemented, so I want to get that out of the way.

The other reason it's cleaner to use jobId and attemptNumber is these concepts/terms are more familiar throughout the rest of the codebase and it feels more intuitive to continue speaking this language (in my opinion).

Some random bits I wanted to clean up on the way as well. I will leave comments in the files as appropriate.
2022-11-03 14:40:16 -07:00
Davin Chia
d0521e7f33 Simplify the job persistence method. (#18698)
Method interface:
- has generic type that isn't needed. Confusing because no generic is happening here.
- has two existing parameters that are data fields of one of the already existing parameters. Confusing since the two additional parameters aren't actually supposed to be passed in separately from the existing parameter.

Remove both.
2022-10-31 08:40:23 -07:00
Jimmy Ma
63c024bd3d Fix ConfiguredCatalog for Resets (#18625)
We should only force (FULL_REFRESH,OVERWRITE) for the streams to reset.
For the other streams, we only want to replace OVERWRITE with APPEND to
avoid having destination clear the stream. The other cases should be
left as is.
2022-10-28 14:17:35 -07:00
Jimmy Ma
e32a641cbe Use Protocol Versions in Syncs (#18324)
* Pass protocol version into IntegrationLauncherConfig

* Use VersionedStreamStreamFactory in AirbyteSource/Destination

* Add AirbyteMessageBufferedWriter

* Use VersionedBufferedWriter
2022-10-27 12:57:33 -07:00
Xiaohan Song
21431f6297 use api to do jobpersistence query (#18308)
* use api to do jobpersistence query

* renaming some variables

* fix test
2022-10-25 14:27:42 -07:00
Xiaohan Song
6b1c5ee384 save queue name into Attempts table (#17921)
* save queue name

* make input nullable because we changed signature

* PR Comments fix
2022-10-19 17:10:37 -07:00
Akash Kulkarni
66e0055822 Sentry Integration : Stop reporting all non system-error error types. (#18133)
* Sentry Integration : Stop reporting all non system-error error types.
2022-10-18 16:54:40 -07:00
Michael Siega
71967885e4 Implement webhook operation in the sync workflow (#18022)
Implements the webhook operation as part of the sync workflow.

- Introduces the new activity implementation
- Updates the various interfaces that pass input to get the relevant configs to the sync workflow
- Hooks the new activity into the sync workflow
- Passes the webhook configs along into the sync workflow job
2022-10-17 18:36:53 -07:00
Evan Tahler
f338e47c2f Add additional sync timing information (#17643)
* WIP - Add additional sync timing information

* Fixup tests

* fix PMD problem

* send data to segment

* Test JobTracker

* respond to PR suggestions

* fixup test

* formatting

* fix initializer for stats

* Make thread-safe with synchronized

* Don't clobber syncStats on init

* add comments and fix init

* Do what Pedro says

* Extract timeTracker pojo
2022-10-13 16:16:06 -07:00
Michael Siega
490f0ca241 Introduce secrets management into workspace persistence (#17851)
* no-op refactor: rename getStandardWorkspace to prepare to introduce secrets

* no-op refactor: rename writeStandardWorkspace to prepare to introduce secrets

* introduce secrets management into workspace persistence
2022-10-12 16:07:57 +02:00
Parker Mossman
39a14b7306 Efficient queries for connection list (#17360)
* query once for all needed models, instead of querying within connections loop

* cleanup and fix failing tests

* pmd fix

* fix query and add test

* return empty if input list is empty

* undo aggressive autoformatting

* don't query for connection operations in a loop, instead query once and group-by connectionID in memory

* try handling operationIds in a single query instead of two

* remove optional

* fix operationIds query

* very annoying, test was failing because operationIds can be listed in a different order. verify operationIds separately from rest of object

* combined queries/functions instead of separate queries for actor and definition

* remove leftover lines that aren't doing anything

* format

* add javadoc

* format

* use leftjoin so that connections that lack operations aren't left out

* clean up comments and format
2022-10-10 09:55:31 -07:00
Lake Mossman
c1e0c77e31 Handle null workspace IDs in tracking/reporting methods gracefully (#17641)
* Handle null workspace IDs in tracking/reporting methods gracefully

* put strings into constants to fix pmd
2022-10-05 18:26:33 -07:00
Jimmy Ma
4974855b41 Track protocol version support range (#17366)
* Add Airbyte Protocol Range configs

* Refactor metadata read/write

* Add ProtocolVersion Min/Max get/set to JobsPersistence

* Store the supported protocol version range in airbyte_metadata

* Use defaults in EnvConfigs instead of .env
2022-09-29 09:43:16 -07:00
Pedro S. Lopez
8c6313374e SentryJobErrorReportingClient: set event platform from parsed stacktrace (#16906)
* set sentry event platform from parsed stacktrace

* fix pmd

* use an enum

* use enum in test

* fix imports

* fix imports

* format

* fix imports
2022-09-26 16:49:22 -04:00
Cole Snodgrass
e662cf0d3a rm airbyte-scheduler; migrate existing client to airbyte-server (#17051)
* wip; move scheduler client to server package

* remove additional references to airbyte-scheduler

* removed more references to airbyte-scheduler
2022-09-22 10:25:52 -07:00
Anne
f28d5f304f Only run normalization when needed (#16794)
Only run normalization when records have been committed
2022-09-21 16:50:27 -07:00
Cole Snodgrass
c6519430da move job persistence code out of airbyte-scheduler (#16831)
* wip for moving scheduler-persistence to airbyte-persistence

* move main/resources

* move settings include to match existing includes

* fix incorrect import paths

* fix import order
2022-09-20 13:37:35 -07:00