fix(kinesis_proxy): fix AmazonKinesis client class name check

This commit is contained in:
zekailiu 2019-12-23 17:28:23 -08:00
parent 124a602515
commit 6b287424d9

View file

@ -217,7 +217,7 @@ public class KinesisProxy implements IKinesisProxyExtended {
this.maxListShardsRetryAttempts = maxListShardsRetryAttempts; this.maxListShardsRetryAttempts = maxListShardsRetryAttempts;
try { try {
if (Class.forName("com.fivetran.external.com.amazonaws.services.dynamodbv2.streamsadapter.AmazonDynamoDBStreamsAdapterClient") if (Class.forName("com.amazonaws.services.dynamodbv2.streamsadapter.AmazonDynamoDBStreamsAdapterClient")
.isAssignableFrom(client.getClass())) { .isAssignableFrom(client.getClass())) {
isKinesisClient = false; isKinesisClient = false;
LOG.debug("Client is DynamoDb client, will use DescribeStream."); LOG.debug("Client is DynamoDb client, will use DescribeStream.");