Files
floci/src/main/java
Hector Ventura f8e8984c16 fix(lambda): persist version counters and event-invoke configs across restart (#1730)
* fix(lambda): persist version counters and event-invoke configs across restart

versionCounters and eventInvokeConfigs were memory-only while the rest of
Lambda state persists, so a restart in persistent mode let PublishVersion
re-issue already-used version numbers and dropped PutFunctionEventInvokeConfig
data. Wrap both maps through the existing 'lambda' storage key, restructure
the counter merge into a synchronized get-increment-put, re-put updated
event-invoke configs so mutations reach the backend, and add the LastModified
deserialization counterpart so the timestamp survives reload.

* fix(lambda): scope version-counter lock per key and align test storage with account prefixing

PublishVersion no longer serializes on the service instance monitor:
the counter increment locks per counter key, mirroring the existing
concurrencyOpLocks pattern, so unrelated functions publish in parallel
while same-function publishes still cannot issue duplicate numbers.

The persistence test factory now wraps its InMemoryStorage in
AccountAwareStorageBackend like the production StorageFactory, so the
restart tests exercise the account-prefixed key space.
2026-07-05 09:31:33 -05:00
..