embulk-output-kafka 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/build.gradle +1 -1
- data/src/main/java/org/embulk/output/kafka/KafkaOutputPlugin.java +3 -3
- 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: 1139409de37d3c3098fa4040a852b97c871c9b12
|
4
|
+
data.tar.gz: 5cc5b35275a4b907d8800b4b7a7467d7bd301045
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1aea6aa1b01c00ea6150d9d240059274ecb2154cdb3d19a2ee3524dd4b6e7a8692435eecbe619053258c8d6e1ab053282ea67315fc62ddd254e3ce892de3c3ca
|
7
|
+
data.tar.gz: bfc15f45fd1c8546a59ba8ac20b9f93407b80b468ac1f857977f1a55f075774d658bd75a9fabbe7024d6e155002aad9df89c9fd4402428cf8c4be0a847f0d20b
|
data/build.gradle
CHANGED
@@ -290,8 +290,8 @@ public class KafkaOutputPlugin
|
|
290
290
|
|
291
291
|
PrimitiveIterator.OfLong randomLong = new Random().longs(1, Long.MAX_VALUE).iterator();
|
292
292
|
|
293
|
-
|
294
|
-
|
293
|
+
AtomicLong counter = new AtomicLong(0);
|
294
|
+
AtomicLong recordLoggingCount = new AtomicLong(1);
|
295
295
|
|
296
296
|
final org.apache.avro.Schema finalAvroSchema = avroSchema;
|
297
297
|
return new TransactionalPageOutput()
|
@@ -322,7 +322,7 @@ public class KafkaOutputPlugin
|
|
322
322
|
|
323
323
|
logger.debug("sent record: {key: {}, value: {}}", producerRecord.key(), producerRecord.value());
|
324
324
|
|
325
|
-
|
325
|
+
long current = counter.incrementAndGet();
|
326
326
|
if (current >= recordLoggingCount.get()) {
|
327
327
|
logger.info("[task-{}] Producer sent {} records", String.format("%04d", taskIndex), current);
|
328
328
|
recordLoggingCount.set(recordLoggingCount.get() * 2);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-output-kafka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- joker1007
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -54,7 +54,7 @@ files:
|
|
54
54
|
- classpath/common-config-5.3.0.jar
|
55
55
|
- classpath/common-utils-5.3.0.jar
|
56
56
|
- classpath/commons-compress-1.18.jar
|
57
|
-
- classpath/embulk-output-kafka-0.1.
|
57
|
+
- classpath/embulk-output-kafka-0.1.6.jar
|
58
58
|
- classpath/jackson-annotations-2.9.0.jar
|
59
59
|
- classpath/jackson-core-2.9.9.jar
|
60
60
|
- classpath/jackson-databind-2.9.9.jar
|