fluent-plugin-groonga 1.2.1 → 1.2.2

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: e63680563a80a14d2293cea8cd8f6001a57ac9be
4
- data.tar.gz: e443be8f4f52f2669428ae13bedfe4639aced4e4
3
+ metadata.gz: baa35518157dc9bbe01dd3306c3b13976b59bcb1
4
+ data.tar.gz: 70b51e76ca8903bf1d344319d65618f2edbd2fd3
5
5
  SHA512:
6
- metadata.gz: c4d64cc5c2900ef0c17f0aefc3fa07fba7c02311bdee3bb4efe6466d234d63bedeb09514febe943a427de62e70cc810c2f632dcc135f821e14b056323197f1e7
7
- data.tar.gz: b4dce7aaa76152ffddbf7c15111ff899e248ce9374525715ffd954b8e59333ab29f6049a02c81cfcf7b627ad65a3beab651474de40ff42869461df983c49d1c9
6
+ metadata.gz: 5ea5e5dceabf866dde7a8278cf60e5adca78e93deb8118bfa8a05c742491859499b446f570654011d8efbfbaba73e383fcbdefe3439ed84e1bd3d122fceaf27d
7
+ data.tar.gz: e2f4a573383da2102b7c19ffe63bd43e90d59fe0446a6bafb32bc4539e10c9b5eaa2e0a8e74c450986aa3475fb0ef686540d46c8cbc4df5b0220985a596ba5ed
@@ -2,6 +2,12 @@
2
2
 
3
3
  # News
4
4
 
5
+ ## 1.2.2: 2017-11-22
6
+
7
+ ### Fixes
8
+
9
+ * out: Fixed a bug that command execution order may be swapped.
10
+
5
11
  ## 1.2.1: 2017-05-01
6
12
 
7
13
  ### Fixes
@@ -17,7 +17,7 @@
17
17
 
18
18
  Gem::Specification.new do |spec|
19
19
  spec.name = "fluent-plugin-groonga"
20
- spec.version = "1.2.1"
20
+ spec.version = "1.2.2"
21
21
  spec.authors = ["Kouhei Sutou"]
22
22
  spec.email = ["kou@clear-code.com"]
23
23
  spec.summary = "Fluentd plugin to store data into Groonga and implement Groonga replication system."
@@ -72,11 +72,6 @@ module Fluent
72
72
  end
73
73
  end
74
74
 
75
- config_section :buffer do
76
- config_set_default :@type, "memory"
77
- config_set_default :chunk_keys, ['tag']
78
- end
79
-
80
75
  def configure(conf)
81
76
  compat_parameters_convert(conf, :buffer)
82
77
  super
@@ -113,7 +108,7 @@ module Fluent
113
108
  [tag, time, record].to_msgpack
114
109
  end
115
110
 
116
- def formatted_to_msgpack_binary
111
+ def formatted_to_msgpack_binary?
117
112
  true
118
113
  end
119
114
 
@@ -633,37 +628,35 @@ module Fluent
633
628
  end
634
629
 
635
630
  def start
636
- @client = nil
637
631
  end
638
632
 
639
633
  def shutdown
640
- return if @client.nil?
641
- @client.close
642
634
  end
643
635
 
644
636
  def execute(name, arguments={})
645
637
  command = build_command(name, arguments)
646
- @client ||= Groonga::Client.new(:protocol => @protocol,
647
- :host => @host,
648
- :port => @port,
649
- :backend => :synchronous)
650
- response = nil
651
- begin
652
- response = @client.execute(command)
653
- rescue Groonga::Client::Error
654
- @output_plugin.log.error("[output][groonga][error]",
655
- :protocol => @protocol,
656
- :host => @host,
657
- :port => @port,
658
- :command_name => name)
659
- raise
660
- end
661
- unless response.success?
662
- @output_plugin.log.error("[output][groonga][error]",
663
- :status_code => response.status_code,
664
- :message => response.message)
638
+ Groonga::Client.open(:protocol => @protocol,
639
+ :host => @host,
640
+ :port => @port,
641
+ :backend => :synchronous) do |client|
642
+ response = nil
643
+ begin
644
+ response = client.execute(command)
645
+ rescue Groonga::Client::Error
646
+ @output_plugin.log.error("[output][groonga][error]",
647
+ :protocol => @protocol,
648
+ :host => @host,
649
+ :port => @port,
650
+ :command_name => name)
651
+ raise
652
+ end
653
+ unless response.success?
654
+ @output_plugin.log.error("[output][groonga][error]",
655
+ :status_code => response.status_code,
656
+ :message => response.message)
657
+ end
658
+ response
665
659
  end
666
- response
667
660
  end
668
661
  end
669
662
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-groonga
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-02 00:00:00.000000000 Z
11
+ date: 2017-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -186,15 +186,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
186
  version: '0'
187
187
  requirements: []
188
188
  rubyforge_project:
189
- rubygems_version: 2.6.12
189
+ rubygems_version: 2.5.2.1
190
190
  signing_key:
191
191
  specification_version: 4
192
192
  summary: Fluentd plugin to store data into Groonga and implement Groonga replication
193
193
  system.
194
194
  test_files:
195
+ - test/test_input.rb
196
+ - test/run-test.rb
195
197
  - test/test_output.rb
196
198
  - test/output/test_table_index_definition.rb
197
199
  - test/output/test_type_guesser.rb
198
200
  - test/output/test_table_definition.rb
199
- - test/run-test.rb
200
- - test/test_input.rb