bricolage-streamingload 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a33b6a5561c4bf69b725a96bca4abf75f06fe8a
4
- data.tar.gz: 9c6357983ba1fea216fd3e0931d08f549f610320
3
+ metadata.gz: 8bc418b99ed85932c9f2483d643b34d6a76788f0
4
+ data.tar.gz: 5a1310ac8711de6c9d009ea1405ab9ba7e50918b
5
5
  SHA512:
6
- metadata.gz: e701e7aa67d9a9b6503b436342a5d2ef3b1edb49513fa6881bf4c9b758e5d44f50a7b444b950527518187f3c8d8da896ee7fc597d9d0878611c8c34c2dbb3a19
7
- data.tar.gz: 77b535d15e8e0724c054655e8f351b7620454f08e67a86a5c61f01b8bb623361b22344b93d590608538ee59e9809886e64ae48ec3b80f8cf61570897e3814e41
6
+ metadata.gz: c205fe5bf75dfee2fb4abe845afb0c8ac91118a461c6b54e4f8534b69262f3db37cff1ddac9d874f8370b94ad89cfc2772b96cb95539cb8e9a453e919f7def62
7
+ data.tar.gz: 6d4319ce64cf4a115606075d1edb16df725b781ab7c8a6c362df608d4ed6c095e50e80682cdaaf36285781bac34a8117d99688e832862e0b688b79e47f20c0ca
@@ -55,7 +55,9 @@ module Bricolage
55
55
  return false
56
56
  rescue DataConnectionFailed
57
57
  wait_for_connection('data', @data_ds) unless fail_fast
58
- return false
58
+ # FIXME: tmp: We don't know the transaction was succeeded or not in the Redshift, auto-retry is too dangerous.
59
+ #return false
60
+ return true
59
61
  rescue JobFailure
60
62
  return false
61
63
  rescue JobError
@@ -96,6 +98,15 @@ module Bricolage
96
98
  }
97
99
  rescue ControlConnectionFailed
98
100
  raise
101
+
102
+ # FIXME: tmp: should be a failure, not an error.
103
+ rescue DataConnectionFailed => ex
104
+ @logger.error ex.message
105
+ ctl.open {
106
+ ctl.abort_job job_id, 'error', ex.message.lines.first.strip
107
+ }
108
+ raise
109
+
99
110
  rescue JobFailure => ex
100
111
  @logger.error ex.message
101
112
  ctl.open {
@@ -1,5 +1,5 @@
1
1
  module Bricolage
2
2
  module StreamingLoad
3
- VERSION = '0.8.0'
3
+ VERSION = '0.8.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bricolage-streamingload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Minero Aoki
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-10-18 00:00:00.000000000 Z
12
+ date: 2016-10-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bricolage