groonga-query-log 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/text/news.md +13 -0
- data/lib/groonga/query-log/analyzer/reporter/console.rb +1 -1
- data/lib/groonga/query-log/command/extract.rb +1 -1
- data/lib/groonga/query-log/command/run-regression-test.rb +1 -1
- data/lib/groonga/query-log/server-verifier.rb +4 -2
- data/lib/groonga/query-log/version.rb +1 -1
- data/test/test-parser.rb +8 -0
- metadata +21 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f967236ddf11c56a1b2cec4819ab5e4d54f9947b
|
4
|
+
data.tar.gz: 0e5e7c5a968689ff2cc827dfa7e9ad5b4296a24c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d00de89ce110daf809177328d3e2d9a7eaa4da671bb696d416d1116bb0d9560f34ddf4e615aebbb75014cc9ad1310b4a00d08db159b7acc1960970827dc1e009
|
7
|
+
data.tar.gz: 949ea01208aceb0dc6343d0d8a7cb193857bd9b5af2fe38b9e6da238160197f9e8ffb9a8fb2e43fb3b563ae375c5478659e5e49f9fbadda66d202f81c6434b85
|
data/doc/text/news.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 1.2.3: 2016-09-29
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* groonga-query-log-verify-server: Supported file content return
|
8
|
+
request (it means that request to server is '/').
|
9
|
+
|
10
|
+
### Fixes
|
11
|
+
|
12
|
+
* run-regression-test: Fixed a bug that `--skip-finished-queries` doesn't work.
|
13
|
+
|
14
|
+
* groonga-query-log-analyzer: Fixed to work with groonga-command 1.2.3 or later.
|
15
|
+
|
3
16
|
## 1.2.2: 2016-06-15
|
4
17
|
|
5
18
|
### Improvements
|
@@ -216,7 +216,7 @@ module Groonga
|
|
216
216
|
|
217
217
|
def report_parameters(statistic)
|
218
218
|
command = statistic.command
|
219
|
-
write(" name: <#{command.
|
219
|
+
write(" name: <#{command.command_name}>\n")
|
220
220
|
write(" parameters:\n")
|
221
221
|
command.arguments.each do |key, value|
|
222
222
|
write(" <#{key}>: <#{value}>\n")
|
@@ -145,7 +145,6 @@ module Groonga
|
|
145
145
|
:load_data => @load_data,
|
146
146
|
:run_queries => @run_queries,
|
147
147
|
:recreate_database => @recreate_database,
|
148
|
-
:skip_finished_queries => @skip_finished_queries,
|
149
148
|
:output_query_log => @output_query_log,
|
150
149
|
}
|
151
150
|
directory_options.merge(options)
|
@@ -155,6 +154,7 @@ module Groonga
|
|
155
154
|
options = {
|
156
155
|
:n_clients => @n_clients,
|
157
156
|
:care_order => @care_order,
|
157
|
+
:skip_finished_queries => @skip_finished_queries,
|
158
158
|
}
|
159
159
|
directory_options.merge(options)
|
160
160
|
end
|
@@ -48,7 +48,9 @@ module Groonga
|
|
48
48
|
Thread.new do
|
49
49
|
parser = Parser.new
|
50
50
|
parser.parse(input) do |statistic|
|
51
|
-
|
51
|
+
command = statistic.command
|
52
|
+
next if command.nil?
|
53
|
+
next unless target_command?(command)
|
52
54
|
@queue.push(statistic)
|
53
55
|
end
|
54
56
|
@options.n_clients.times do
|
@@ -100,7 +102,7 @@ module Groonga
|
|
100
102
|
end
|
101
103
|
|
102
104
|
def target_command?(command)
|
103
|
-
@options.target_command_name?(command.
|
105
|
+
@options.target_command_name?(command.command_name)
|
104
106
|
end
|
105
107
|
|
106
108
|
def verify_command(groonga1_client, groonga2_client, command)
|
data/test/test-parser.rb
CHANGED
@@ -37,6 +37,14 @@ class ParserTest < Test::Unit::TestCase
|
|
37
37
|
assert_instance_of(Groonga::Command::Load, parsed_command)
|
38
38
|
end
|
39
39
|
|
40
|
+
def test_no_command_name_path
|
41
|
+
statistics = parse(<<-LOG)
|
42
|
+
2012-12-13 11:15:20.628105|0x7fff148c8a50|>/
|
43
|
+
2012-12-13 11:15:21.645119|0x7fff148c8a50|<000000017041150 rc=0
|
44
|
+
LOG
|
45
|
+
assert_equal([nil], statistics.collect(&:command))
|
46
|
+
end
|
47
|
+
|
40
48
|
private
|
41
49
|
def parse(log)
|
42
50
|
statistics = []
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: groonga-command-parser
|
@@ -154,14 +154,14 @@ description: ''
|
|
154
154
|
email:
|
155
155
|
- kou@clear-code.com
|
156
156
|
executables:
|
157
|
-
- groonga-query-log-replay
|
158
|
-
- groonga-query-log-format-regression-test-logs
|
159
|
-
- groonga-query-log-show-running-queries
|
160
157
|
- groonga-query-log-detect-memory-leak
|
161
|
-
- groonga-query-log-
|
158
|
+
- groonga-query-log-format-regression-test-logs
|
162
159
|
- groonga-query-log-run-regression-test
|
163
160
|
- groonga-query-log-check-command-version-compatibility
|
161
|
+
- groonga-query-log-replay
|
162
|
+
- groonga-query-log-show-running-queries
|
164
163
|
- groonga-query-log-analyze
|
164
|
+
- groonga-query-log-verify-server
|
165
165
|
- groonga-query-log-extract
|
166
166
|
extensions: []
|
167
167
|
extra_rdoc_files: []
|
@@ -265,30 +265,29 @@ summary: Groonga-query-log is a collection of library and tools to process [Groo
|
|
265
265
|
as a library. You can analyze your Groonga's queries and test with your Groonga's
|
266
266
|
query log by using groonga-query-log as a tool.
|
267
267
|
test_files:
|
268
|
+
- test/run-test.rb
|
268
269
|
- test/test-analyzer.rb
|
269
|
-
- test/
|
270
|
-
- test/
|
271
|
-
- test/
|
270
|
+
- test/command/test-extract.rb
|
271
|
+
- test/command/test-format-regression-test-logs.rb
|
272
|
+
- test/test-response-comparer.rb
|
273
|
+
- test/helper.rb
|
274
|
+
- test/fixtures/other-query.log
|
275
|
+
- test/fixtures/reporter/json-stream.expected
|
276
|
+
- test/fixtures/reporter/console.expected
|
277
|
+
- test/fixtures/reporter/html.expected
|
278
|
+
- test/fixtures/reporter/json.expected
|
272
279
|
- test/fixtures/n_entries.expected
|
273
280
|
- test/fixtures/query.log
|
274
|
-
- test/fixtures/
|
281
|
+
- test/fixtures/no-report-summary.expected
|
275
282
|
- test/fixtures/order/-start-time.expected
|
276
283
|
- test/fixtures/order/elapsed.expected
|
277
284
|
- test/fixtures/order/-elapsed.expected
|
278
285
|
- test/fixtures/order/start-time.expected
|
279
|
-
- test/fixtures/
|
286
|
+
- test/fixtures/target-commands.expected
|
280
287
|
- test/fixtures/regression-test-logs/command-format.log
|
281
|
-
- test/fixtures/
|
282
|
-
- test/fixtures/
|
283
|
-
- test/fixtures/
|
284
|
-
- test/fixtures/reporter/json-stream.expected
|
285
|
-
- test/fixtures/no-report-summary.expected
|
286
|
-
- test/helper.rb
|
287
|
-
- test/command/test-format-regression-test-logs.rb
|
288
|
-
- test/command/test-extract.rb
|
288
|
+
- test/fixtures/regression-test-logs/url-format.log
|
289
|
+
- test/fixtures/target-tables.expected
|
290
|
+
- test/fixtures/multi.expected
|
289
291
|
- test/test-replayer.rb
|
290
292
|
- test/test-incompatibility-detector.rb
|
291
|
-
- test/run-test.rb
|
292
293
|
- test/test-parser.rb
|
293
|
-
- test/test-response-comparer.rb
|
294
|
-
has_rdoc:
|