java.lang.IllegalStateException:连接池关闭从春集成-AWS库例外

问题描述 投票:0回答:1

我们正在使用弹簧集成-AWS-2.0.0连接到室壁运动来听流。虽然停止应用程序,总是收到以下异常。

a.i.k.KinesisMessageDrivenChannelAdapter : Got an exception java.lang.IllegalStateException: Connection pool shut down during [ShardConsumer{shardOffset=KinesisShardOffset{iteratorType=TRIM_HORIZON, sequenceNumber='null', timestamp=null, stream='developer-entitlement-command-stream-local', shard='shardId-000000000000', reset=false}, state=CONSUME}] task invocation.
Process will be retried on the next iteration.

虽然它可能不会造成任何数据丢失呢。有没有人得到这个错误?

java spring-boot amazon-kinesis spring-integration-aws aws-sdk-java-2.0
1个回答
1
投票

这看起来像一个简单的,但它是烦人。

  • 当停止应用程序确保连接被关闭,他们将返回到池中。
  • 任何参考或过程不应在后台运行时,应用程序被关闭。

我的问题得到了由上述第二个选项固定。

希望这可以帮助 :)

© www.soinside.com 2019 - 2024. All rights reserved.