embulk-output-vertica 0.5.2 → 0.5.3

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: ffcbf6b8e38f5b340f40ef6276d1d60eec24e7d1
4
- data.tar.gz: 1db857854d517fa3121c212e779cc7cb7fd1a888
3
+ metadata.gz: 64254a208edbd6f0c254ed8cabdbee4fac53dbdf
4
+ data.tar.gz: 41b73b19cdbc334be205a45a57c2dded37ff3a53
5
5
  SHA512:
6
- metadata.gz: 465771451e26a38c2d50278422aec461856b3301cc0dc4bf3a06a57e4520723c88a75abfa94e284e0195903015404d32377555722fc92a3e7c0a5a85004a8fb5
7
- data.tar.gz: 0eed14f90d9a8ea9e3080282a653e90f90120fdb347f2cd5958d6e11f497b75d95e656bc2174559ba93452c0324194cc33b5c3d976350b0f27944cd52ce087f5
6
+ metadata.gz: 3a97e62ed025bfb4b81423db3027a38709946a6900d68976f96fb20772c513852b80315722bbea0e0014c8425312e5b3340170319540e42a3945de511e653498
7
+ data.tar.gz: ba2307d15902dafcb306c478f6ec993a411a4eef5a975b14125ae8ca9a73f1c0abe4064bc662124194017ac104172fb960101f3f5182937aefcb550601bd4f48
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.5.3 (2016/01/09)
2
+
3
+ Enhancements:
4
+
5
+ * Add more trace logs
6
+
1
7
  # 0.5.2 (2016/01/09)
2
8
 
3
9
  Fixes:
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "embulk-output-vertica"
3
- spec.version = "0.5.2"
3
+ spec.version = "0.5.3"
4
4
  spec.authors = ["eiji.sekiya", "Naotoshi Seo"]
5
5
  spec.email = ["eiji.sekiya.0326@gmail.com", "sonots@gmail.com"]
6
6
  spec.summary = "Vertica output plugin for Embulk"
@@ -41,7 +41,7 @@ module Embulk
41
41
 
42
42
  def enqueue(page)
43
43
  if @thread_active and @thread.alive?
44
- Embulk.logger.trace { "embulk-output-vertica: enqueued" }
44
+ Embulk.logger.trace { "embulk-output-vertica: enqueue" }
45
45
  @queue.push(page)
46
46
  else
47
47
  Embulk.logger.info { "embulk-output-vertica: thread is dead, but still trying to enqueue" }
@@ -63,6 +63,7 @@ module Embulk
63
63
  Embulk.logger.trace { "embulk-output-vertica: dequeued" }
64
64
 
65
65
  page.each do |record|
66
+ Embulk.logger.trace { "embulk-output-vertica: record #{record}" }
66
67
  json = to_json(record)
67
68
  Embulk.logger.trace { "embulk-output-vertica: to_json #{json}" }
68
69
  stdin << json << "\n"
@@ -73,15 +74,16 @@ module Embulk
73
74
  num_rejected_rows = rejects.size
74
75
  @num_output_rows += num_output_rows
75
76
  @num_rejected_rows += num_rejected_rows
76
- jv.commit
77
77
  Embulk.logger.info { "embulk-output-vertica: COMMIT!" }
78
+ jv.commit
79
+ Embulk.logger.debug { "embulk-output-vertica: COMMITTED!" }
78
80
  rescue java.sql.SQLDataException => e
79
- jv.rollback
80
81
  if @task['reject_on_materialized_type_error'] and e.message =~ /Rejected by user-defined parser/
81
82
  Embulk.logger.warn "embulk-output-vertica: ROLLBACK! some of column types and values types do not fit #{json}"
82
83
  else
83
84
  Embulk.logger.warn "embulk-output-vertica: ROLLBACK!"
84
85
  end
86
+ jv.rollback
85
87
  raise e # die transaction
86
88
  rescue => e
87
89
  Embulk.logger.warn "embulk-output-vertica: ROLLBACK!"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-vertica
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - eiji.sekiya
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-08 00:00:00.000000000 Z
12
+ date: 2016-01-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jvertica