deimos-kafka 1.0.0.pre.beta18 → 1.0.0.pre.beta19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +2 -2
- data/lib/deimos/kafka_topic_info.rb +10 -2
- data/lib/deimos/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b20ab1bd5462b9ebdd61c00c0e8b70e30e547a42860ece6509b2981f582547ef
|
4
|
+
data.tar.gz: 25d2eb38bed18e090b5729ca7f217cf963fc9396f6ebf141546077597d421053
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9be9ce52caf3014dd496bfcbb8a2626f394b76d5af6bf7b5a4ce6dcd3ad5e2bc6af55c225e15d81c672ed653b2dd025d651035b48ffac175367683529d62e3a3
|
7
|
+
data.tar.gz: 222d68c723d352559f79b4ba328dc5aad1ed85a8191dc08266ab7c3113a5853fe7125b2bfba549c4bab081a2082a3b8206f36699461d678eb2eb9d492a0ab8ab
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## [1.0.0-beta19] - 2019-08-06
|
9
|
+
- Fix for DB producer crashing on error in Rails 3.
|
10
|
+
|
8
11
|
## [1.0.0-beta18] - 2019-08-02
|
9
12
|
- Fixed crash when sending metrics in a couple of places.
|
10
13
|
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
deimos-kafka (1.0.0.pre.
|
4
|
+
deimos-kafka (1.0.0.pre.beta19)
|
5
5
|
avro-patches (~> 0.3)
|
6
6
|
avro_turf (~> 0.8)
|
7
7
|
phobos (~> 1.8)
|
@@ -41,7 +41,7 @@ GEM
|
|
41
41
|
diff-lcs (1.3)
|
42
42
|
digest-crc (0.4.1)
|
43
43
|
dogstatsd-ruby (4.2.0)
|
44
|
-
excon (0.
|
44
|
+
excon (0.66.0)
|
45
45
|
exponential-backoff (0.0.2)
|
46
46
|
ffi (1.11.1)
|
47
47
|
formatador (0.2.5)
|
@@ -62,8 +62,16 @@ module Deimos
|
|
62
62
|
# @param lock_id [String]
|
63
63
|
def register_error(topic, lock_id)
|
64
64
|
record = self.where(topic: topic, locked_by: lock_id).last
|
65
|
-
|
66
|
-
|
65
|
+
attr_hash = { locked_by: nil,
|
66
|
+
locked_at: Time.zone.now,
|
67
|
+
error: true,
|
68
|
+
retries: record.retries + 1
|
69
|
+
}
|
70
|
+
if Rails::VERSION::MAJOR >= 4
|
71
|
+
record.update!(attr_hash)
|
72
|
+
else
|
73
|
+
record.update_attributes!(attr_hash)
|
74
|
+
end
|
67
75
|
end
|
68
76
|
|
69
77
|
# Update the locked_at timestamp to indicate that the producer is still
|
data/lib/deimos/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deimos-kafka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.pre.
|
4
|
+
version: 1.0.0.pre.beta19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Orner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avro-patches
|