Commit graph

194 commits

Author SHA1 Message Date
ychunxue
3947b55853
Merge pull request #640 from aggarwal/better-graceful-shutdown-2
handling completed and blocked tasks better during graceful shutdown
2019-11-01 09:53:34 -07:00
Shitanshu Aggarwal
5cb2a3500c handling completed and blocked tasks better during graceful shutdown 2019-10-30 03:11:29 +00:00
Cory-Bradshaw
d9a5789bb2
Merge pull request #632 from jushkem/v1.13.0-snap
Update version to v1.13.0-SNAPSHOT
2019-10-18 09:59:30 -07:00
Joshua Kim
cce5b5a620 Update version to v1.13.0-SNAPSHOT 2019-10-18 16:45:37 +00:00
Joshua Kim
1bdd1d1671
Preparing for v1.12.0 (#627) 2019-10-17 17:41:35 -07:00
Joshua Kim
34f5e33450
Updating AWS SDK to 1.11.655 (#626) 2019-10-17 16:55:36 -07:00
ychunxue
ffb34b6d96 Shard End fix for KCL v1.x (#623)
* KCL shardend fix for V1

* Address Comments

* Address more comments

* Force lease lost before shutting down ShardConsumer with Zombie state

* Updating version

* Addressing comments

* Addressing comments

* Fixing unit test

* Addressing comments

* Adding default implementation for onShardConsumerShutDown in ShardSyncStrategy interface

* Method name changes

* Addressing comments

* Addressing comments

* Addressing comments

* Revert the access change for getShardList method
2019-10-17 15:14:29 -07:00
Micah Jaffe
cc8aa5ef74
Update Sonatype to dedicated AWS endpoint (#618) 2019-10-04 13:53:21 -07:00
Micah Jaffe
3e36f0c7d0 Update version to 1.11.3-SNAPSHOT (#595) 2019-08-16 14:08:17 -07:00
Micah Jaffe
b537403d81 Preparation for v1.11.2 (#594) 2019-08-15 10:45:00 -07:00
Parijat Sinha
ba984fe279 Adding support for metrics in PeriodicShardSyncer (#592)
* Changes to support injection of ShardSyncer, LeaseTaker, and LeaseRenewer into KCL Worker

* Additional checks around injection of LeaseRenewer and LeaseRenewerThreadPool

* Changed accessor on InitialPositionInStreamExtended to public to allow ShardSyncer injection

* Changed ShardSyncer to a public interface. Renamed implementation to KinesisShardSyncer.

* Removed wild card imports introduced in previous commit

* Minor refactoring in Worker Builder

* Added license info to ShardSyncer interface. Minor refactoring

* Changes to chain constructor in LeaseCoordinator

* Changed accessor on InitialPositionInStreamExtended factory methods. Minor changes in Worker builder.

* Changes to support periodic shard sync

* Patching changes left out in merge

* Overriding shard-sync idle time to 0 for periodic shard-sync

* Addressed PR feedback

* Addresed PR #579 review comments

* Modified constructor for DeterministicShuffleShardSyncLeaderDecider

* Addressed PR comments

* Fixed failing test

* Removed redundant member varible

* Re-enable metrics for shard-sync

* Removed unused method from ShardSyncTaskManager
2019-08-13 16:37:57 -07:00
Micah Jaffe
8f58bafacc Update to 1.11.2-SNAPSHOT (#589) 2019-08-13 11:50:35 -07:00
Micah Jaffe
0e910a1dbc Updated logging message around ShardEnd checkpointing failures (#590) 2019-08-13 11:49:40 -07:00
Micah Jaffe
41f996b833
Add logging around shard end codepaths (#585)
* Add logging around shard end codepaths

* Update logging messaging
2019-08-09 14:05:08 -07:00
Micah Jaffe
2ca3cbd21c Release 1.11.1 for Amazon Kinesis Client Library for Java (#588)
* Preparation for v1.11.1

* Preparation for v1.11.1
2019-08-09 10:27:50 -07:00
Micah Jaffe
c00203f028 Update AWS SDK to version 1.11.603 (#587) 2019-08-09 09:53:25 -07:00
Micah Jaffe
a55e1b0e8f
Update README and CHANGELOG for v1.11.0 (#586) 2019-08-08 17:44:40 -07:00
Micah Jaffe
4ec77b1705
Merge branch 'v1.x' into v1.x 2019-08-07 17:25:40 -07:00
Micah Jaffe
317dc1ae84 Update snapshot version 2019-08-07 17:15:58 -07:00
Micah Jaffe
f1a50cd14b Preparing release v1.11.0 (#581)
* Preparation for v1.11.0

* Update wording
2019-08-07 15:38:14 -07:00
Parijat Sinha
7a1d3031c5 Introducing support for periodic shard sync (#579)
* Changes to support injection of ShardSyncer, LeaseTaker, and LeaseRenewer into KCL Worker

* Additional checks around injection of LeaseRenewer and LeaseRenewerThreadPool

* Changed accessor on InitialPositionInStreamExtended to public to allow ShardSyncer injection

* Changed ShardSyncer to a public interface. Renamed implementation to KinesisShardSyncer.

* Removed wild card imports introduced in previous commit

* Minor refactoring in Worker Builder

* Added license info to ShardSyncer interface. Minor refactoring

* Changes to chain constructor in LeaseCoordinator

* Changed accessor on InitialPositionInStreamExtended factory methods. Minor changes in Worker builder.

* Changes to support periodic shard sync

* Patching changes left out in merge

* Overriding shard-sync idle time to 0 for periodic shard-sync

* Addressed PR feedback

* Addresed PR #579 review comments

* Modified constructor for DeterministicShuffleShardSyncLeaderDecider

* Addressed PR comments

* Fixed failing test

* Removed redundant member varible
2019-08-07 15:37:20 -07:00
Micah Jaffe
d4b72f9f49 Update wording 2019-08-07 10:09:22 -07:00
micah-jaffe
aa3ab52cdf Preparation for v1.11.0 2019-08-06 14:20:21 -07:00
Micah Jaffe
5e4888f431 Revert "Preparation for v1.11.0"
This reverts commit 36673e0877.
2019-08-06 12:55:34 -07:00
Micah Jaffe
36673e0877 Preparation for v1.11.0 2019-08-06 12:48:09 -07:00
Anoop Garlapati
3aefdfa28a Better handling of get checkpoint object in KinesisClientLibLeaseCoordinator (#558)
Improve the handling of get checkpoint object in KinesisClientLibLeaseCoordinator
by no longer triggering a null pointer exception when lease is null.
2019-07-09 11:31:30 -07:00
Cory-Bradshaw
73dc2aaa76 1.10.1-SNAPSHOT version update (#545) 2019-04-09 12:15:06 -07:00
Cory-Bradshaw
6c066a8e6d Preparation for v1.10.0 (#540) 2019-04-08 10:47:33 -07:00
awslankakamal
bb81bfaa66 Updating license to Apache License 2.0 (#522) 2019-04-05 16:08:24 -07:00
achitojha
fbdd449759 Separated out some lease taker logic as interface implementations to … (#490)
Added interfaces to allow external users to control the lease selection, and cleanup.
2019-02-20 11:48:40 -08:00
Justin Pfifer
54e6a48a48
Advance version to, and add release notes for 1.9.3 (#460)
Advanced the version for to 1.9.3
Added release notes for version 1.9.3
2018-10-30 12:49:37 -07:00
Justin Pfifer
7a4ecd1706
Update AWS Java SDK to 1.11.438 (#459) 2018-10-30 09:14:26 -07:00
Sahil Palvia
cda52b60c1
Adding Travis and CodeBuild badges to readme for v1.x branch (#454)
* Adding CodeBuild badge to readme for v1.x branch

* Changing branch to v1.x in badge url
2018-10-25 10:40:16 -07:00
Sahil Palvia
e1227954f5
Fixing tests that break occasionally (#455) 2018-10-25 10:39:46 -07:00
Sahil Palvia
1ebc0d5cc7
Upgrading Guava version to 26.0-jre for version 1.x. (Issue #416) (#421) 2018-09-25 09:59:40 -07:00
Sahil Palvia
1d5cb599fd
Upgrading commons-lang from 2.6 to 3.7 (#406) 2018-09-20 00:07:09 +05:30
Sahil Palvia
d0ce534734
Upgrading version to 1.9.3-SNAPSHOT. (#405) 2018-09-19 22:31:54 +05:30
Justin Pfifer
6d80ca1723
Fix the link to Issue #341 (#396)
* Fix link to issue #341

* Fix the link in the changelog too.
2018-09-10 14:46:45 -07:00
Justin Pfifer
419c2731bb
Fix link to issue #341 (#393) 2018-09-05 07:43:28 -07:00
Justin Pfifer
8fb01ddd08
Release notes for 1.9.2 and updated versions (#390)
Release notes for 1.9.2 and updated versions
2018-09-04 10:40:27 -07:00
Justin Pfifer
c7105765c6
Merge pull request #389 from pfifer/std-release-proc
Changed to use standard release process for the 1.x versions
2018-08-31 07:51:33 -07:00
Pfifer, Justin
f26a555f13 Added distribution management section for deployment 2018-08-30 14:05:00 -07:00
Pfifer, Justin
b5d8b1057d Change to use the Maven release plugin
Changed to use the Maven release plugin instead of a custom publishing system.
2018-08-30 13:21:39 -07:00
Michael Scharp
cba8bf6bfa Adding Proxy support to multilang for version 1.x (#376)
* Add proxy support

Read proxy info from application.properties file first,
then java system settings, and finally from ENV vars.

* Formatted code according to AWS scheme.

Import specific classes, not *.

* Add proxy config unit tests

* Changed per @sahilpalvia comments

* Fix failing test

* Changed per @sahilpalvia comments

* Fixing missed http_proxy string

* Changed per @sahilpalvia comments
2018-08-23 13:35:03 -07:00
Justin Pfifer
f1d60ec1a6 Remove tests that no longer work (#346)
The new version of the SDK no longer returns null on an unknown
region.  There's not much we can do but run with whatever region is configured
2018-06-12 14:29:22 -07:00
Justin Pfifer
2483f8cbf8 Added cache updating behavior for GetShard (#344)
* Added cache updating behavior for GetShard

Customer are occasionally seeing messages about being unable to
retrieve shard information, which is logged as a warning.  This change
will allow the shard map to be updated even when there is no re-shard
operation.

This now triggers a shard list update if there is 1000 cache misses,
or a cache miss occurs when the cache is more than 30 seconds old.
For Kinesis the updates will use ListShards, and for DynamoDB Streams
it will continue to use DescribeStream.

* Adjust some logging, and the zeroing of cache misses a bit

Only log about cache refresh if it's the thread doing the cache
refresh.  If after synchronizing the shard is present, accept that
someone else loaded the shard map, and move on.

If the cache was reloaded, and the shard was found the current thread
will reset the cache misses.

The warnings for the cache miss was using a modulo of 1000 which is
the maximum value for cache misses, so wasn't to useful.
2018-06-07 13:25:03 -07:00
Marcin Ciszak
a84885db79 Enables property for setting AT_TIMESTAMP shard iterator initial time… (#342)
Allows setting the timestamp for InitialPositiinInStream.AT_TIMESTAMP from a properties file.
2018-05-29 09:52:08 -07:00
Sahil Palvia
be60a5507d Logging fixes for tests (#340)
* Adding log4j dependency for testing. Moving log4j.properties from test/src to test/resources.
2018-05-17 13:27:35 -07:00
Sahil Palvia
86cc068454 Fix for Worker to handle immutable clients (#305) 2018-05-04 10:06:13 -07:00
Justin Pfifer
5d183e0197 Release 1.9.1 of the Amazon Kinesis Client Library for Java (#337)
* Release 1.9.1 of the Amazon Kinesis Client Library for Java

Updated versions, and added release notes.

* Added note about the update of the AWS Java SDK
2018-04-30 13:18:41 -07:00