fluent-plugin-bigquery 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb46d9ded6ca44476f2a241a4a08f5abff3e99f4
4
- data.tar.gz: 2729484cdd6de6edbd9636f0c01eeb69c9b0368b
3
+ metadata.gz: 02a2cc7715e7a0815c97f43634b6575fe9520156
4
+ data.tar.gz: fd1a8e9e4aeec1e3e687268391a5fb95a26cf6ec
5
5
  SHA512:
6
- metadata.gz: aa84153cb3e53c093cc888f93ea211e1f6852f2f6a08ad7eab875438d7e7c0a5be8ab9b1c8b9c181d3655c981b47e756ed9adf06fbe71142f98bb9f128f773e2
7
- data.tar.gz: a0fd64ab52abe46eccde000d364ce79dca01a3ae3d9dde48d36963ae4ca03bfe9e17dc913b10d5ea6706765dff2cbc0a8bc34df7b1ba1a3345accd60283478e0
6
+ metadata.gz: 98120b81fbf0cfa4fc625d102b76d774a8cd0c154ce4526ce4fa86e25fe59cfb88f0698fe0d9025ff313a7165ba0cfd12059fbbc58f03fd39fc33a8df723a1d8
7
+ data.tar.gz: 52b234401a2e38712741e5de56b09d0bc07dcb21f1e5c044d7562087857a1a72e5c42c8acacd0a6a03470d1b2c22e011f5866a7a6276723250930eaec295ecf1
@@ -1,5 +1,5 @@
1
1
  module Fluent
2
2
  module BigQueryPlugin
3
- VERSION = "0.4.2".freeze
3
+ VERSION = "0.4.3".freeze
4
4
  end
5
5
  end
@@ -113,9 +113,15 @@ module Fluent
113
113
  @client = nil
114
114
 
115
115
  reason = e.respond_to?(:reason) ? e.reason : nil
116
- log.error "tabledata.insertAll API", project_id: project, dataset: dataset, table: table_id, code: e.status_code, message: e.message, reason: reason
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 Fluent::BigQuery::Error.wrap(e)
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.2
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-03-27 00:00:00.000000000 Z
12
+ date: 2017-04-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake