flydata 0.6.10 → 0.6.11

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: 4433b846f5fae0015e2e74d437d7a5eaedefd2b0
4
- data.tar.gz: 2c2200d275fe32d66fa73fa435cf86a6a6b3af1e
3
+ metadata.gz: aa75cb40b7d49f2aeb912086e3e2e35e837cb2e0
4
+ data.tar.gz: 5234a32b9c3f7e2a40702d4cbeb305e3dbed548b
5
5
  SHA512:
6
- metadata.gz: eaa62d4f488ee2ff8ca485002f19766011901025388f2ec2af354d7052942eb45c48d75240a3538f6bf5ec3cf1f03205d1612093907d3b74c50f7e6d711b402e
7
- data.tar.gz: 7e189040dd501676029432c0e2f22fb2e68f76dc6e5bfd28fea65e77b951278d013c13ecdfcfce50ddaf127e3883fe6d4b9a58bfd3935c7d5c6cfbb095f2b84c
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.9'
17
+ gem "kodama", '~> 0.1', '>= 0.1.10'
18
18
  gem "serverengine", '~> 1.5'
19
19
 
20
20
  group :development do
@@ -61,8 +61,8 @@ GEM
61
61
  rdoc
62
62
  json (1.8.1)
63
63
  jwt (1.0.0)
64
- kodama (0.1.9)
65
- ruby-binlog (~> 1.0, >= 1.0.7)
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.7)
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.9)
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.10
1
+ 0.6.11
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 => e
114
- log_warn_stderr "Something has gone wrong. Force stopping the FlyData process. error:#{e.to_s}"
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 x | grep 'flydata' | grep -v grep | grep fluentd | awk '{print \"kill -9 \" $1}' | sh")
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 = 120
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
- Kernel.sleep 5
200
- if i % show_message_at_retry == 0
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
- @thread.join
232
- $log.info "Kodama has stopped successfully"
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.10
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-22 00:00:00.000000000 Z
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.9
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.9
275
+ version: 0.1.10
276
276
  - - ~>
277
277
  - !ruby/object:Gem::Version
278
278
  version: '0.1'