Skip to content

Commit 01cdeaf

Browse files
authored
release v0.8.0-alpha (#1339)
1 parent f5f58e2 commit 01cdeaf

File tree

17 files changed

+41
-17
lines changed

17 files changed

+41
-17
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=0.7.2-alpha
1+
VERSION=0.8.0-alpha
22
DATABASE_USER=docker
33
DATABASE_PASSWORD=docker
44
DATABASE_DB=airbyte

airbyte-config/init/src/main/resources/config/STANDARD_DESTINATION_DEFINITION/22f6c74f-5699-40ff-833c-4a879ea40133.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"destinationDefinitionId": "22f6c74f-5699-40ff-833c-4a879ea40133",
33
"name": "BigQuery",
44
"dockerRepository": "airbyte/destination-bigquery",
5-
"dockerImageTag": "0.1.10",
5+
"dockerImageTag": "0.1.11",
66
"documentationUrl": "https://hub.docker.com/r/airbyte/integration-singer-bigquery-destination"
77
}

airbyte-config/init/src/main/resources/seed/destination_definitions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
- destinationDefinitionId: 22f6c74f-5699-40ff-833c-4a879ea40133
1212
name: BigQuery
1313
dockerRepository: airbyte/destination-bigquery
14-
dockerImageTag: 0.1.10
14+
dockerImageTag: 0.1.11
1515
documentationUrl: https://hub.docker.com/r/airbyte/integration-singer-bigquery-destination
1616
- destinationDefinitionId: 424892c4-daac-4491-b35d-c6688ba547ba
1717
name: Snowflake

airbyte-integrations/connectors/destination-bigquery/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ COPY build/distributions/${APPLICATION}*.tar ${APPLICATION}.tar
88

99
RUN tar xf ${APPLICATION}.tar --strip-components=1
1010

11-
LABEL io.airbyte.version=0.1.10
11+
LABEL io.airbyte.version=0.1.11
1212
LABEL io.airbyte.name=airbyte/destination-bigquery

airbyte-scheduler/src/main/java/io/airbyte/scheduler/JobRetrier.java

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@
2828
import io.airbyte.scheduler.persistence.JobPersistence;
2929
import java.io.IOException;
3030
import java.time.Instant;
31+
import java.util.List;
3132
import java.util.concurrent.TimeUnit;
33+
import java.util.concurrent.atomic.AtomicInteger;
3234
import java.util.function.Supplier;
33-
import java.util.stream.Stream;
3435
import org.slf4j.Logger;
3536
import org.slf4j.LoggerFactory;
3637

@@ -52,24 +53,35 @@ public JobRetrier(JobPersistence jobPersistence, Supplier<Instant> timeSupplier)
5253
public void run() {
5354
LOGGER.info("Running job-retrier...");
5455

55-
listFailedJobs()
56+
final AtomicInteger failedJobs = new AtomicInteger();
57+
final AtomicInteger retriedJobs = new AtomicInteger();
58+
final List<Job> incompleteJobs = incompleteJobs();
59+
60+
incompleteJobs
5661
.forEach(job -> {
62+
LOGGER.info("weeee");
5763
if (hasReachedMaxAttempt(job)) {
5864
failJob(job);
65+
failedJobs.incrementAndGet();
5966
return;
6067
}
6168

6269
if (shouldRetry(job)) {
70+
retriedJobs.incrementAndGet();
6371
resetJob(job);
6472
}
6573
});
6674

67-
LOGGER.info("Completed job-retrier...");
75+
LOGGER.info("Completed Job-Retrier...");
76+
LOGGER.info("Job-Retrier Summary. Incomplete jobs: {}, Job set to retry: {}, Jobs set to failed: {}",
77+
incompleteJobs.size(),
78+
failedJobs.get(),
79+
retriedJobs.get());
6880
}
6981

70-
private Stream<Job> listFailedJobs() {
82+
private List<Job> incompleteJobs() {
7183
try {
72-
return persistence.listJobsWithStatus(JobConfig.ConfigType.SYNC, JobStatus.INCOMPLETE).stream();
84+
return persistence.listJobsWithStatus(JobConfig.ConfigType.SYNC, JobStatus.INCOMPLETE);
7385
} catch (IOException e) {
7486
throw new RuntimeException("failed to fetch failed jobs", e);
7587
}

airbyte-scheduler/src/main/java/io/airbyte/scheduler/JobScheduler.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import java.time.Instant;
4040
import java.util.List;
4141
import java.util.Optional;
42+
import java.util.concurrent.atomic.AtomicInteger;
4243
import java.util.function.BiPredicate;
4344
import java.util.stream.Collectors;
4445
import org.slf4j.Logger;
@@ -80,21 +81,25 @@ public void run() {
8081

8182
scheduleSyncJobs();
8283

83-
LOGGER.info("Completed job-scheduler...");
84+
LOGGER.info("Completed Job-Scheduler...");
8485
} catch (Throwable e) {
8586
LOGGER.error("Job Scheduler Error", e);
8687
}
8788
}
8889

8990
private void scheduleSyncJobs() throws IOException {
90-
for (StandardSync connection : getAllActiveConnections()) {
91+
final AtomicInteger jobsScheduled = new AtomicInteger();
92+
final List<StandardSync> activeConnections = getAllActiveConnections();
93+
94+
for (StandardSync connection : activeConnections) {
9195
final Optional<Job> previousJobOptional = jobPersistence.getLastSyncJob(connection.getConnectionId());
9296
final StandardSyncSchedule standardSyncSchedule = getStandardSyncSchedule(connection);
9397

9498
if (scheduleJobPredicate.test(previousJobOptional, standardSyncSchedule)) {
9599
jobFactory.create(connection.getConnectionId());
96100
}
97101
}
102+
LOGGER.info("Job-Scheduler Summary. Active connections: {}, Jobs scheduler: {}", activeConnections.size(), jobsScheduled.get());
98103
}
99104

100105
private StandardSyncSchedule getStandardSyncSchedule(StandardSync connection) {

airbyte-scheduler/src/main/java/io/airbyte/scheduler/JobSubmitter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,10 @@ public void run() {
8080
oldestPendingJob.ifPresent(job -> {
8181
trackSubmission(job);
8282
submitJob(job);
83+
LOGGER.info("Job-Submitter Summary. Submitted job with scope {}", job.getScope());
8384
});
8485

85-
LOGGER.info("Completed job-submitter...");
86+
LOGGER.info("Completed Job-Submitter...");
8687
} catch (Throwable e) {
8788
LOGGER.error("Job Submitter Error", e);
8889
}

docs/integrations/destinations/bigquery.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Each stream will be output into its own table in BigQuery. Each table will conta
2525
| Feature | Supported?\(Yes/No\) | Notes |
2626
| :--- | :--- | :--- |
2727
| Full Refresh Sync | Yes | |
28+
| Incremental - Append Sync | Yes | |
2829

2930
## Getting started
3031

docs/integrations/destinations/local-csv.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Each stream will be output into its own file. Each file will contain 3 columns:
1919
| Feature | Supported |
2020
| :--- | :--- |
2121
| Full Refresh Sync | Yes |
22+
| Incremental - Append Sync | Yes | |
2223

2324
#### Performance considerations
2425

docs/integrations/destinations/postgres.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Each stream will be output into its own table in Postgres. Each table will conta
2121
| Feature | Supported?\(Yes/No\) | Notes |
2222
| :--- | :--- | :--- |
2323
| Full Refresh Sync | Yes | |
24+
| Incremental - Append Sync | Yes | |
2425

2526
## Getting started
2627

docs/integrations/destinations/redshift.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Each stream will be output into its own raw table in Redshift. Each table will c
2121
| Feature | Supported?\(Yes/No\) | Notes |
2222
| :--- | :--- | :--- |
2323
| Full Refresh Sync | Yes | |
24+
| Incremental - Append Sync | Yes | |
2425

2526
#### Target Database
2627

docs/integrations/destinations/snowflake.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Each stream will be output into its own table in Snowflake. Each table will cont
1919
| Feature | Supported?\(Yes/No\) | Notes |
2020
| :--- | :--- | :--- |
2121
| Full Refresh Sync | Yes | |
22+
| Incremental - Append Sync | Yes | |
23+
2224

2325
## Getting started
2426

docs/integrations/sources/intercom.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ If there are more endpoints you'd like Airbyte to support, please [create an iss
3131
| Feature | Supported? |
3232
| :--- | :--- |
3333
| Full Refresh Sync | Yes |
34-
| Incremental Sync | No |
34+
| Incremental - Append Sync | Yes |
3535
| Replicate Incremental Deletes | No |
3636
| SSL connection | Yes |
3737

docs/integrations/sources/mixpanel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ If there are more endpoints you'd like Airbyte to support, please [create an iss
2525
| Feature | Supported? |
2626
| :--- | :--- |
2727
| Full Refresh Sync | Yes |
28-
| Incremental Sync | No |
28+
| Incremental - Append Sync | Yes |
2929
| Replicate Incremental Deletes | No |
3030
| SSL connection | Yes |
3131

docs/integrations/sources/mysql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ If you do not see a type in this list, assume that it is coerced into a string.
3333
| Feature | Supported |
3434
| :--- | :--- |
3535
| Full Refresh Sync | Yes |
36-
| Incremental Sync | No |
36+
| Incremental - Append Sync | Yes |
3737
| Replicate Incremental Deletes | No |
3838
| Logical Replication \(WAL\) | No |
3939
| SSL Support | Yes |

docs/integrations/sources/postgres.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Postgres data types are mapped to the following data types when synchronizing da
5252
| Feature | Supported |
5353
| :--- | :--- |
5454
| Full Refresh Sync | Yes |
55-
| Incremental Sync | No |
55+
| Incremental - Append Sync | Yes |
5656
| Replicate Incremental Deletes | No |
5757
| Logical Replication \(WAL\) | No |
5858
| SSL Support | Yes |

docs/integrations/sources/twilio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ This Source is capable of syncing the following core Streams:
4646
| Feature | Supported?\(Yes/No\) | Notes |
4747
| :--- | :--- | :--- |
4848
| Full Refresh Sync | yes | |
49-
| Incremental Sync | no | |
49+
| Incremental - Append Sync | Yes |
5050

5151
### Performance considerations
5252

0 commit comments

Comments
 (0)