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 +4 -4
- data/bin/groonga-query-log-replay +2 -0
- data/doc/text/news.md +12 -0
- data/lib/groonga/query-log/command/replay.rb +1 -1
- data/lib/groonga/query-log/replayer.rb +8 -0
- data/lib/groonga/query-log/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 798c1587c8d405b10f0a9ad4bba3c52b289e5f17
|
4
|
+
data.tar.gz: 85d473a215872df252fac325fdd5dfe496008993
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d9f7292d557c16d9a022b69f682df8dd7351f66ed6bd32848d63af9aae8bcdaeb3080b799706aa9f5d4b7a15b3e80baf05b708efe49b6f18bc7cb0f17ab9a99
|
7
|
+
data.tar.gz: 5cdf6a74ffd522fb127f47202c7deda68a07a2a782e43259eb2c309d72cf8992d60c3a04c87f2095d4bf78beb357b8dcb2b56cf4c0372854d8bc425e4b18a20c
|
data/doc/text/news.md
CHANGED
@@ -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.
|
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
|
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.
|
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-
|
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.
|
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
|