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 +4 -4
- data/doc/text/news.md +6 -0
- data/fluent-plugin-groonga.gemspec +1 -1
- data/lib/fluent/plugin/out_groonga.rb +22 -29
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: baa35518157dc9bbe01dd3306c3b13976b59bcb1
|
|
4
|
+
data.tar.gz: 70b51e76ca8903bf1d344319d65618f2edbd2fd3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ea5e5dceabf866dde7a8278cf60e5adca78e93deb8118bfa8a05c742491859499b446f570654011d8efbfbaba73e383fcbdefe3439ed84e1bd3d122fceaf27d
|
|
7
|
+
data.tar.gz: e2f4a573383da2102b7c19ffe63bd43e90d59fe0446a6bafb32bc4539e10c9b5eaa2e0a8e74c450986aa3475fb0ef686540d46c8cbc4df5b0220985a596ba5ed
|
data/doc/text/news.md
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
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.
|
|
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-
|
|
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.
|
|
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
|