groonga-query-log 1.7.7 → 1.7.8

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
  SHA256:
3
- metadata.gz: af3ac522ec27ea395b44209b8ab56521de14b828d67bf4b8d4dad52bb0df2d1c
4
- data.tar.gz: c570a4a49aad267b71047d992e0593afac1290135711a7f45b8114ded4232dbd
3
+ metadata.gz: e88b793ce2f1d7017538cc841f34de9baa96ce49f03f9a296e45490f2f2ca230
4
+ data.tar.gz: 1057e7582f8e5a518ea42c7fc3783d979507623e153b2fd5b2fca270e4b4f9b8
5
5
  SHA512:
6
- metadata.gz: 7f0dc1247dc380bd50f8b249fcc7976a800bb67de75f10e4cd600741508f4236d89aa750277043336dc4abd561641804cf53056373338ef9ae2dd2b0f9cc5c0e
7
- data.tar.gz: ddcce99bb10e8b8876fbbce95d9c0c49f5d1b8ca7e6ce8beb4a9178624ab169475ce49173c33f1e1a5796909ae20c1fa1976126033c944757859f18e9a05689f
6
+ metadata.gz: 043af37403f9c09d0fe3b308ffa3438d726e864cf42b93ba6318f49a7f6878ab089bcea91a27742401e5b3d0f57d1c0c117a5bd7058be2497098475ca285943a
7
+ data.tar.gz: 592e9725ab2e49c5a85f5111d6c468c86fa51fb106c46f65e3373a9153d1675e05f8f6ad4b94bb29156c382d51102f2e6e91ed883a411d0c2dbecea2576f678d
data/doc/text/news.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # News
2
2
 
3
+ ## 1.7.8: 2024-04-10
4
+
5
+ ### Improvements
6
+
7
+ * `run-regression-test`: Improved processing time for `request_cancel` command verification.
8
+ * Eliminated unnecessary waiting time.
9
+
3
10
  ## 1.7.7: 2024-04-08
4
11
 
5
12
  ### Improvements
@@ -195,13 +195,21 @@ module GroongaQueryLog
195
195
  # groonga2 is new Groonga.
196
196
  response2 = nil
197
197
  if @options.verify_cancel?
198
+ sleep_thread = nil
198
199
  request = groonga2_client.execute(command) do |response|
199
200
  response2 = response
201
+ sleep_thread.kill
200
202
  end
203
+
201
204
  # Randomize timing of sending request_cancel command
202
- sleep(rand(0..@options.cancel_max_wait))
203
- @options.groonga2.create_client do |cancel_client|
204
- cancel_client.execute("request_cancel", id: command.request_id)
205
+ sleep_thread = Thread.new do
206
+ sleep(rand(0..@options.cancel_max_wait))
207
+ end
208
+ sleep_thread.join
209
+ unless response2
210
+ @options.groonga2.create_client do |cancel_client|
211
+ cancel_client.execute("request_cancel", id: command.request_id)
212
+ end
205
213
  end
206
214
  request.wait
207
215
 
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2012-2021 Sutou Kouhei <kou@clear-code.com>
1
+ # Copyright (C) 2012-2024 Sutou Kouhei <kou@clear-code.com>
2
2
  #
3
3
  # This library is free software; you can redistribute it and/or
4
4
  # modify it under the terms of the GNU Lesser General Public
@@ -15,5 +15,5 @@
15
15
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
  module GroongaQueryLog
18
- VERSION = "1.7.7"
18
+ VERSION = "1.7.8"
19
19
  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.7.7
4
+ version: 1.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-08 00:00:00.000000000 Z
11
+ date: 2024-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: charty