Hi, 
Flink暂时不支持过期清理时的回调函数。如果用得是cleanupIncrementally策略(https://nightlies.apache.org/flink/flink-docs-master/docs/dev/datastream/fault-tolerance/state/#cleanup-of-expired-state),可以自行在`TtlIncrementalCleanup`类中添加相应的log。

> 2022年6月27日 下午2:09,haishui <haishui...@126.com> 写道:
> 
> Hi,
> Flink的状态过期是否能像咖啡因缓存那样,在数据过期时调用回调函数将过期的内容打印在日志中。
> 
> Best Regards!

回复