flydata 0.6.10 → 0.6.11
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/Gemfile +1 -1
- data/Gemfile.lock +4 -4
- data/VERSION +1 -1
- data/flydata.gemspec +0 -0
- data/lib/flydata/command/sender.rb +6 -9
- data/lib/flydata/fluent-plugins/in_mysql_binlog_flydata.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aa75cb40b7d49f2aeb912086e3e2e35e837cb2e0
|
|
4
|
+
data.tar.gz: 5234a32b9c3f7e2a40702d4cbeb305e3dbed548b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5482b2ef22c8b0b0e0c49841190fd02829a74811adb8a95f487e2dc9c2f6447bbb2a5e3d6a108a81c035c8886cc11132903cd57f90ccf4b9c076dba4312e7ea2
|
|
7
|
+
data.tar.gz: 01ccf0a83e53aac78ca543e2b422c0163d9d5775250b7e61317f24d8fd915f1bd8e8cd4d0dcf2bcad7512b89bb7e5c07a51f66392e41898ecf95ba2b2f72e96e
|
data/Gemfile
CHANGED
|
@@ -14,7 +14,7 @@ gem "slop", '~> 3.4', '>= 3.4.6'
|
|
|
14
14
|
gem "treetop", '~> 1.5', '>= 1.5.3'
|
|
15
15
|
gem "sys-filesystem", '~> 1.1', '>= 1.1.3'
|
|
16
16
|
gem "io-console", '~> 0.4.2', '>= 0.4.2'
|
|
17
|
-
gem "kodama", '~> 0.1', '>= 0.1.
|
|
17
|
+
gem "kodama", '~> 0.1', '>= 0.1.10'
|
|
18
18
|
gem "serverengine", '~> 1.5'
|
|
19
19
|
|
|
20
20
|
group :development do
|
data/Gemfile.lock
CHANGED
|
@@ -61,8 +61,8 @@ GEM
|
|
|
61
61
|
rdoc
|
|
62
62
|
json (1.8.1)
|
|
63
63
|
jwt (1.0.0)
|
|
64
|
-
kodama (0.1.
|
|
65
|
-
ruby-binlog (~> 1.0, >= 1.0.
|
|
64
|
+
kodama (0.1.10)
|
|
65
|
+
ruby-binlog (~> 1.0, >= 1.0.8)
|
|
66
66
|
method_source (0.8.2)
|
|
67
67
|
mime-types (2.3)
|
|
68
68
|
minitest (4.7.5)
|
|
@@ -108,7 +108,7 @@ GEM
|
|
|
108
108
|
rspec-mocks (3.0.3)
|
|
109
109
|
rspec-support (~> 3.0.0)
|
|
110
110
|
rspec-support (3.0.3)
|
|
111
|
-
ruby-binlog (1.0.
|
|
111
|
+
ruby-binlog (1.0.8)
|
|
112
112
|
ruby-prof (0.15.1)
|
|
113
113
|
serverengine (1.5.10)
|
|
114
114
|
sigdump (~> 0.2.2)
|
|
@@ -138,7 +138,7 @@ DEPENDENCIES
|
|
|
138
138
|
io-console (~> 0.4.2, >= 0.4.2)
|
|
139
139
|
jeweler (~> 1.8, >= 1.8.8)
|
|
140
140
|
json (~> 1.8, >= 1.8.0)
|
|
141
|
-
kodama (~> 0.1, >= 0.1.
|
|
141
|
+
kodama (~> 0.1, >= 0.1.10)
|
|
142
142
|
mysql2 (~> 0.3, >= 0.3.17)
|
|
143
143
|
pg (~> 0.18.4)
|
|
144
144
|
protected_attributes (~> 1.0, >= 1.0.8)
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.6.
|
|
1
|
+
0.6.11
|
data/flydata.gemspec
CHANGED
|
Binary file
|
|
@@ -110,8 +110,8 @@ EOF
|
|
|
110
110
|
log_info_stdout('Restarting sender process.') unless options[:quiet]
|
|
111
111
|
begin
|
|
112
112
|
stop(options)
|
|
113
|
-
rescue
|
|
114
|
-
log_warn_stderr
|
|
113
|
+
rescue
|
|
114
|
+
log_warn_stderr 'Something has gone wrong... force stopping the FlyData process...'
|
|
115
115
|
kill_all(options)
|
|
116
116
|
end
|
|
117
117
|
else
|
|
@@ -132,7 +132,7 @@ EOF
|
|
|
132
132
|
`[ -f #{pid_file} ] && pgrep -P \`cat #{pid_file}\``.to_i > 0
|
|
133
133
|
end
|
|
134
134
|
def kill_all(options = {})
|
|
135
|
-
if Kernel.system("ps
|
|
135
|
+
if Kernel.system("ps ax | grep 'flydata' | grep -v grep | grep fluentd | awk '{print \"kill \" $1}' | sh")
|
|
136
136
|
log_info_stdout("Done.") unless options[:quiet]
|
|
137
137
|
return true
|
|
138
138
|
else
|
|
@@ -192,14 +192,11 @@ EOF
|
|
|
192
192
|
raise "Somthing has gone wrong... Please try setup command again."
|
|
193
193
|
end
|
|
194
194
|
def wait_until_client_stop(options = {})
|
|
195
|
-
retry_count =
|
|
196
|
-
show_message_at_retry = 4
|
|
195
|
+
retry_count = 10
|
|
197
196
|
1.upto(retry_count) do |i|
|
|
198
197
|
return true unless process_exist?
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
log_info_stdout("Waiting for the client to stop...") unless options[:quiet]
|
|
202
|
-
end
|
|
198
|
+
log_info_stdout("Waiting for the client to stop... (#{i}/#{retry_count})") unless options[:quiet]
|
|
199
|
+
Kernel.sleep 3
|
|
203
200
|
end
|
|
204
201
|
false
|
|
205
202
|
end
|
|
@@ -228,8 +228,8 @@ EOS
|
|
|
228
228
|
begin
|
|
229
229
|
@kodama_client.stop_request
|
|
230
230
|
if wait_till_safe_to_stop
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
$log.info "Killing Kodama client"
|
|
232
|
+
Thread.kill(@thread)
|
|
233
233
|
else
|
|
234
234
|
$log.error "Unable to stop Kodama"
|
|
235
235
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: flydata
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Koichi Fujikawa
|
|
@@ -12,7 +12,7 @@ authors:
|
|
|
12
12
|
autorequire:
|
|
13
13
|
bindir: bin
|
|
14
14
|
cert_chain: []
|
|
15
|
-
date: 2016-02-
|
|
15
|
+
date: 2016-02-25 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: rest-client
|
|
@@ -262,7 +262,7 @@ dependencies:
|
|
|
262
262
|
requirements:
|
|
263
263
|
- - '>='
|
|
264
264
|
- !ruby/object:Gem::Version
|
|
265
|
-
version: 0.1.
|
|
265
|
+
version: 0.1.10
|
|
266
266
|
- - ~>
|
|
267
267
|
- !ruby/object:Gem::Version
|
|
268
268
|
version: '0.1'
|
|
@@ -272,7 +272,7 @@ dependencies:
|
|
|
272
272
|
requirements:
|
|
273
273
|
- - '>='
|
|
274
274
|
- !ruby/object:Gem::Version
|
|
275
|
-
version: 0.1.
|
|
275
|
+
version: 0.1.10
|
|
276
276
|
- - ~>
|
|
277
277
|
- !ruby/object:Gem::Version
|
|
278
278
|
version: '0.1'
|