amazon-kinesis-client icon indicating copy to clipboard operation
amazon-kinesis-client copied to clipboard

Shutdown Not Called on Record Processors when Java KCL is Terminated

Open mitaligit opened this issue 3 years ago • 3 comments

In Java KCL application, upon terminating the process (Ctrl+C or SIGTERM) it exits and doesn't call shutdownRequested method. Is shutdownRequested called upon receiving SIGTERM signal in java KCL? I found this issue https://github.com/awslabs/amazon-kinesis-client/issues/35 but looks like it was for MultiLangDaemon and not Java. Could you confirm if shutdownRequested method will be called in Java KCL as well?

mitaligit avatar Feb 18 '22 20:02 mitaligit

It's a year later and I'm seeing the same issue. I call startGracefulShutdown with a timeout of three minutes. The future returns almost immediately with a false result. shutdownRequested in my record processor never gets called.

frjonsen avatar Mar 24 '23 07:03 frjonsen

I'm experiencing this issue as well. Would love to see if this has been fixed or if i'm just doing something wrong.

AvenciMag avatar Apr 02 '23 15:04 AvenciMag

It seems that this issue was finally solved https://github.com/awslabs/amazon-kinesis-client/pull/1302

gabrielfmagalhaes avatar Apr 28 '24 06:04 gabrielfmagalhaes