splitclient-rb 7.1.4.pre.rc12-java → 7.1.4.pre.rc17-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/murmurhash/MurmurHash3.java +3 -2
- data/lib/murmurhash/murmurhash.jar +0 -0
- data/lib/splitclient-rb/cache/repositories/impressions/redis_repository.rb +1 -1
- data/lib/splitclient-rb/cache/routers/impression_router.rb +10 -2
- data/lib/splitclient-rb/engine/common/impressions_manager.rb +2 -0
- data/lib/splitclient-rb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77ac10c0064665c6ade4cbf92da541d72df800f7
|
4
|
+
data.tar.gz: aa952ae204adb4cad8fcfe4535c6754e8b8ff38a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f1a8aa4ebd0e56d0e0abc537917fc95c2f7d30a8f968feab88dc6147922dd4018c958f096df2f0487435d618f4ff6c63573f6ed6948bd8727e99440c5c0f0ce
|
7
|
+
data.tar.gz: adf7f29d16ae67a0dedddec0abfbe5126be4854618f0964a36b008595137544e4c1592e5ce5067388d7551e84c7e27f345552a8948a2b4d6ea0523164a271d83
|
@@ -191,8 +191,9 @@ public final class MurmurHash3 {
|
|
191
191
|
(((long) data[index + 7] & 0xff) << 56);
|
192
192
|
}
|
193
193
|
|
194
|
-
public static long[] hash128x64(final
|
195
|
-
|
194
|
+
public static long[] hash128x64(final String data, final long seed) {
|
195
|
+
final byte[] dataBytes = data.getBytes();
|
196
|
+
return hash128x64(dataBytes, 0, dataBytes.length, seed);
|
196
197
|
}
|
197
198
|
|
198
199
|
/**
|
Binary file
|
@@ -22,7 +22,7 @@ module SplitIoClient
|
|
22
22
|
# Synchronizer might not be running
|
23
23
|
@adapter.expire(key, EXPIRE_SECONDS) if impressions_json.size == impressions_list_size
|
24
24
|
rescue StandardError => e
|
25
|
-
@config.logger.error("Exception while
|
25
|
+
@config.logger.error("Exception while add_bulk: #{e}")
|
26
26
|
end
|
27
27
|
|
28
28
|
def get_impressions(number_of_impressions = 0)
|
@@ -19,7 +19,6 @@ module SplitIoClient
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def add_bulk(impressions)
|
22
|
-
return unless @listener
|
23
22
|
impressions.each do |impression|
|
24
23
|
enqueue(
|
25
24
|
split_name: impression[:i][:f],
|
@@ -35,23 +34,32 @@ module SplitIoClient
|
|
35
34
|
attributes: impression[:attributes]
|
36
35
|
) unless impression.nil?
|
37
36
|
end
|
37
|
+
rescue StandardError => error
|
38
|
+
@config.log_found_exception(__method__.to_s, error)
|
38
39
|
end
|
39
40
|
|
40
41
|
private
|
41
42
|
|
42
43
|
def enqueue(impression)
|
43
44
|
@queue.push(impression) if @listener
|
45
|
+
rescue StandardError => error
|
46
|
+
@config.log_found_exception(__method__.to_s, error)
|
44
47
|
end
|
45
48
|
|
46
49
|
def router_thread
|
47
50
|
@config.threads[:impression_router] = Thread.new do
|
48
51
|
loop do
|
49
52
|
begin
|
50
|
-
@
|
53
|
+
@config.logger.warn("THREAD POP loop")
|
54
|
+
impression = @queue.pop
|
55
|
+
@config.logger.warn(impression.to_s)
|
56
|
+
@listener.log(impression)
|
51
57
|
rescue StandardError => error
|
52
58
|
@config.log_found_exception(__method__.to_s, error)
|
53
59
|
end
|
54
60
|
end
|
61
|
+
|
62
|
+
@config.logger.warn("final router loop thread..")
|
55
63
|
end
|
56
64
|
end
|
57
65
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: splitclient-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.1.4.pre.
|
4
|
+
version: 7.1.4.pre.rc17
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Split Software
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|