-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding kpl metric to track the time for oldest future in processing #324
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leaving comments. Can you also link the previous PR that had some review comments as well?
@@ -18,6 +18,8 @@ | |||
|
|||
int getOutstandingRecordsCount(); | |||
|
|||
long getOldestRecordTimeInSeconds(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We discussed that this should be default right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added. Will need to update the java version to be 1.8 as well from 1.7 currently
...-kinesis-producer/src/main/java/com/amazonaws/services/kinesis/producer/KinesisProducer.java
Outdated
Show resolved
Hide resolved
...-kinesis-producer/src/main/java/com/amazonaws/services/kinesis/producer/KinesisProducer.java
Outdated
Show resolved
Hide resolved
...-kinesis-producer/src/main/java/com/amazonaws/services/kinesis/producer/KinesisProducer.java
Outdated
Show resolved
Hide resolved
...-kinesis-producer/src/main/java/com/amazonaws/services/kinesis/producer/KinesisProducer.java
Outdated
Show resolved
Hide resolved
...-kinesis-producer/src/main/java/com/amazonaws/services/kinesis/producer/KinesisProducer.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. Fixed the title.
@@ -200,6 +203,10 @@ public long getAggregationMaxSize() { | |||
return aggregationMaxSize; | |||
} | |||
|
|||
public long getFutureTimeoutInSeconds() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few customers are sensitive to even 500ms. Can we change this to ms?
@@ -147,6 +151,7 @@ public void run() { | |||
log.info(String.format( | |||
"Put %d of %d so far (%.2f %%), %d have completed (%.2f %%)", | |||
put, total, putPercent, done, donePercent)); | |||
log.info("Oldest future as of now is " + producer.getOldestRecordTimeInSeconds()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit : oldest Record. You can fix in next round
Merging in changes after Ashwin's approval |
Issue #, if available:
Description of changes: Adding metrics for future time.
Old PR Link : #319
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.