groonga-query-log 1.2.6 → 1.2.7

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: c26ff585a73f2e6091da363ac4b4fe02aeddf420
4
- data.tar.gz: 7d9e5c1965f7d3e208257be44893e189dd59a15a
3
+ metadata.gz: 798c1587c8d405b10f0a9ad4bba3c52b289e5f17
4
+ data.tar.gz: 85d473a215872df252fac325fdd5dfe496008993
5
5
  SHA512:
6
- metadata.gz: 50495861548b4c83bd5d8d7b7ba9aa2e4cca02a809029eec84aa2bce150cca688c5dc77b4fd50fa37447f178481dfcdac7a268d469311385770c40135c3be846
7
- data.tar.gz: fc6b3040396bcd0443a67c6df6bfeaeccd3aec0713905230d1c139b5f177480d7eaea2bb0750a2a51aa3ac5c1ec7f21d5337987c021576962d17d9984e70b986
6
+ metadata.gz: 2d9f7292d557c16d9a022b69f682df8dd7351f66ed6bd32848d63af9aae8bcdaeb3080b799706aa9f5d4b7a15b3e80baf05b708efe49b6f18bc7cb0f17ab9a99
7
+ data.tar.gz: 5cdf6a74ffd522fb127f47202c7deda68a07a2a782e43259eb2c309d72cf8992d60c3a04c87f2095d4bf78beb357b8dcb2b56cf4c0372854d8bc425e4b18a20c
@@ -19,5 +19,7 @@
19
19
 
20
20
  require "groonga/query-log/command/replay"
21
21
 
22
+ Thread.abort_on_exception = true
23
+
22
24
  replay_command = Groonga::QueryLog::Command::Replay.new
23
25
  exit(replay_command.run(ARGV))
@@ -1,5 +1,17 @@
1
1
  # News
2
2
 
3
+ ## 1.2.7: 2017-09-27
4
+
5
+ ### Improvements
6
+
7
+ * groonga-query-log-replay: Improved error handling correctly for
8
+ unexpected file serving query or `groonga-client` errors.
9
+
10
+ ### Fixes
11
+
12
+ * groonga-query-log-replay: Fixed a bug that specified value to
13
+ `--n-clients` option is ignored.
14
+
3
15
  ## 1.2.6: 2017-05-31
4
16
 
5
17
  ### Improvements
@@ -72,7 +72,7 @@ module Groonga
72
72
  parser.on("--n-clients=N", Integer,
73
73
  "The max number of concurrency",
74
74
  "[#{@options.n_clients}]") do |n_clients|
75
- @options.n_cilents = n_clients
75
+ @options.n_clients = n_clients
76
76
  end
77
77
 
78
78
  parser.on("--request-queue-size=SIZE", Integer,
@@ -48,6 +48,7 @@ module Groonga
48
48
  id = 0
49
49
  @options.create_request_output do |output|
50
50
  parser.parse(input) do |statistic|
51
+ next if statistic.command.nil?
51
52
  next unless target_command?(statistic.command)
52
53
  # TODO: validate orignal_source is one line
53
54
  output.puts(statistic.command.original_source)
@@ -88,6 +89,13 @@ module Groonga
88
89
  $stderr.puts($!.raw_error.message)
89
90
  $stderr.puts($!.raw_error.backtrace)
90
91
  return false
92
+ rescue
93
+ # TODO: add error log mechanism
94
+ $stderr.puts(Time.now.iso8601)
95
+ $stderr.puts(statistic.command.original_source)
96
+ $stderr.puts($!.message)
97
+ $stderr.puts($!.backtrace)
98
+ return false
91
99
  end
92
100
  end
93
101
  end
@@ -16,6 +16,6 @@
16
16
 
17
17
  module Groonga
18
18
  module QueryLog
19
- VERSION = "1.2.6"
19
+ VERSION = "1.2.7"
20
20
  end
21
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groonga-query-log
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.7
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-31 00:00:00.000000000 Z
11
+ date: 2017-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: groonga-command-parser
@@ -261,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
261
261
  version: '0'
262
262
  requirements: []
263
263
  rubyforge_project:
264
- rubygems_version: 2.6.11
264
+ rubygems_version: 2.6.13
265
265
  signing_key:
266
266
  specification_version: 4
267
267
  summary: Groonga-query-log is a collection of library and tools to process [Groonga](http://groonga.org/)'s