fluent-plugin-bigquery 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fluent/plugin/bigquery/version.rb +1 -1
- data/lib/fluent/plugin/bigquery/writer.rb +8 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02a2cc7715e7a0815c97f43634b6575fe9520156
|
4
|
+
data.tar.gz: fd1a8e9e4aeec1e3e687268391a5fb95a26cf6ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98120b81fbf0cfa4fc625d102b76d774a8cd0c154ce4526ce4fa86e25fe59cfb88f0698fe0d9025ff313a7165ba0cfd12059fbbc58f03fd39fc33a8df723a1d8
|
7
|
+
data.tar.gz: 52b234401a2e38712741e5de56b09d0bc07dcb21f1e5c044d7562087857a1a72e5c42c8acacd0a6a03470d1b2c22e011f5866a7a6276723250930eaec295ecf1
|
@@ -113,9 +113,15 @@ module Fluent
|
|
113
113
|
@client = nil
|
114
114
|
|
115
115
|
reason = e.respond_to?(:reason) ? e.reason : nil
|
116
|
-
|
116
|
+
error_data = { project_id: project, dataset: dataset, table: table_id, code: e.status_code, message: e.message, reason: reason }
|
117
|
+
wrapped = Fluent::BigQuery::Error.wrap(e)
|
118
|
+
if wrapped.retryable?
|
119
|
+
log.warn "tabledata.insertAll API", error_data
|
120
|
+
else
|
121
|
+
log.error "tabledata.insertAll API", error_data
|
122
|
+
end
|
117
123
|
|
118
|
-
raise
|
124
|
+
raise wrapped
|
119
125
|
end
|
120
126
|
|
121
127
|
def create_load_job(chunk_id, project, dataset, table_id, upload_source, fields)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-bigquery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naoya Ito
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-04-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|