You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streams.apache.org by sb...@apache.org on 2015/09/11 02:15:13 UTC

[5/8] incubator-streams git commit: log counts within each batch and millis behind

log counts within each batch and millis behind


Project: http://git-wip-us.apache.org/repos/asf/incubator-streams/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-streams/commit/e041d91b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-streams/tree/e041d91b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-streams/diff/e041d91b

Branch: refs/heads/master
Commit: e041d91b8fefb459ffb8eb961884bd884228cf20
Parents: 54b3f80
Author: Steve Blackmon (@steveblackmon) <sb...@apache.org>
Authored: Thu Sep 3 17:26:25 2015 -0500
Committer: Steve Blackmon (@steveblackmon) <sb...@apache.org>
Committed: Fri Sep 4 13:27:33 2015 -0500

----------------------------------------------------------------------
 streams-contrib/streams-amazon-aws/pom.xml                        | 2 +-
 .../apache/streams/amazon/kinesis/KinesisPersistReaderTask.java   | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/e041d91b/streams-contrib/streams-amazon-aws/pom.xml
----------------------------------------------------------------------
diff --git a/streams-contrib/streams-amazon-aws/pom.xml b/streams-contrib/streams-amazon-aws/pom.xml
index 59fcf47..fd8264d 100644
--- a/streams-contrib/streams-amazon-aws/pom.xml
+++ b/streams-contrib/streams-amazon-aws/pom.xml
@@ -46,7 +46,7 @@
 	        <dependency>
 	            <groupId>com.amazonaws</groupId>
 	            <artifactId>aws-java-sdk</artifactId>
-	            <version>1.8.11</version>
+	            <version>1.10.15</version>
 	        </dependency>
             <dependency>
                 <groupId>org.apache.streams</groupId>

http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/e041d91b/streams-contrib/streams-amazon-aws/streams-persist-kinesis/src/main/java/org/apache/streams/amazon/kinesis/KinesisPersistReaderTask.java
----------------------------------------------------------------------
diff --git a/streams-contrib/streams-amazon-aws/streams-persist-kinesis/src/main/java/org/apache/streams/amazon/kinesis/KinesisPersistReaderTask.java b/streams-contrib/streams-amazon-aws/streams-persist-kinesis/src/main/java/org/apache/streams/amazon/kinesis/KinesisPersistReaderTask.java
index 9b8d817..7753031 100644
--- a/streams-contrib/streams-amazon-aws/streams-persist-kinesis/src/main/java/org/apache/streams/amazon/kinesis/KinesisPersistReaderTask.java
+++ b/streams-contrib/streams-amazon-aws/streams-persist-kinesis/src/main/java/org/apache/streams/amazon/kinesis/KinesisPersistReaderTask.java
@@ -79,9 +79,12 @@ public class KinesisPersistReaderTask implements Runnable {
 
             GetRecordsResult recordsResult = reader.client.getRecords(recordsRequest);
 
+            LOGGER.info("{} records {} millis behind {}:{}:{} ", recordsResult.getRecords().size(), recordsResult.getMillisBehindLatest(), streamName, shardId, shardIteratorId);
+
             shardIteratorId = recordsResult.getNextShardIterator();
 
             List<Record> recordList = recordsResult.getRecords();
+
             for (Record record : recordList) {
                 try {
                     byte[] byteArray = record.getData().array();