Hi everyone, I wanted to maintain a state to enric...
# troubleshooting
p
Hi everyone, I wanted to maintain a state to enrich in all events coming to my pipeline for that specific key. Can someone help me in configuring a state with fixed TTL. If I use
Copy code
.setUpdateType(StateTtlConfig.UpdateType.OnReadAndWrite)
then my TTL is reset on every read which is not my usecase as enriched properties may change frequently. I tried using
Copy code
.setUpdateType(StateTtlConfig.UpdateType.OnCreateAndWrite)
This works for my approach but issue is that if certain state has already expired and I try to access it after expiration, enrichment is empty for first event and after that it works fine until expiration. This can hamper analytics. Can some help here ??
Can someone help here please??