The backend of Scribble Calendar and Tools for Boox, the planner apps I build, is a Jakarta EE application on WildFly. On 26 November 2026, the day the upgrade from WildFly 38 to WildFly 42 reached production, both production nodes started to restart in a loop at the daily rollout restart. This is how a never-compacted file store turned into a boot failure, and how the Infinispan team fixed it in two days.
The symptom
Between 11:06 and 11:18 UTC the two nodes failed to boot 8 times (5 and 3). Each attempt deployed the application and then died:
WFLYSRV0055: Caught exception during boot: java.util.concurrent.CompletionException:
org.infinispan.commons.TimeoutException: ISPN000712: Time between entries/keys
retrieved from store exceeded 15000 ms
The server stopped and the pod started again, about once a minute, until one boot got through. It came back at the daily restarts that followed. Requests that reached a node in that state failed, and the version check every app sends at start-up was the one that hit it.
The setup
None of this is my code. WildFly keeps HTTP sessions in an Infinispan cache, and its default passivation cache writes to a soft-index file store (SIFS). I had never changed it:
| Setting | Value |
|---|---|
| store | file, passivation=true, purge=false, segmented=false |
| memory | heap, no size limit |
| expiration (Infinispan) | not configured |
On the node that failed most, the store’s index.0 was 14.8 MB and the data files 37.6 MB, while the cache statistics counted 26 entries.
The first theory, and why it was wrong
The oldest data file was from October, older than the upgrade. So my first explanation was that Infinispan 16 had found a 15.x index at its first start, rebuilt it from every record in the old data files, and was now reading through months of dead entries. I wrote that into the issue as “likely, not verified”.
To check it, Claude Code wrote a standalone reproducer: a local cache with passivation to SIFS, no eviction and no Infinispan expiration, like WildFly’s default. Each round puts and removes 50,000 keys that never leave memory, keeps 10 entries that really are passivated as a control, and restarts the cache gracefully.
The theory did not survive it. The store grew with no upgrade involved:
| Round | Data files (bytes) | index.0 (bytes) |
|---|---|---|
| 1 | 4,440,400 | 786,458 |
| 10 | 44,390,410 | 6,291,930 |
The root cause
Removing a key the store never held still appends a tombstone, a “deleted” record of about 89 bytes, and the index keeps an entry for it, about 12 bytes. In Infinispan 16.2.3’s Index.Segment.handleUpdate, that tombstone was inserted with no compactor.free(...) call for its bytes. The compactor rewrites a data file only once half of it is free, so a file full of these tombstones stayed at zero free bytes and was never compacted. The index never shrank either.
In a web application, “a key the store never held” is every session that lived and expired in memory, which is nearly all of them.
Why WildFly 38 never failed
The same reproducer on Infinispan 15.2.6, the version WildFly 38 ships, shows exactly the same data growth. The leak was there all along. Two things changed in 16.2.3:
- With live entries in the store, a full read slowed with the number of tombstones: 123 ms in the first round, 820 ms in the tenth. On 15.2.6 it stayed at 11-38 ms on the same data.
PersistenceManagerImplnow fails a read when the store takes longer than 15 seconds between two entries. For alocal-cache, WildFly 42 offers no attribute to raise it.
So a slow leak that had cost nothing became a hard limit at boot.
Where all those sessions came from
No JSP on the websites had <%@ page session="false" %>, so every rendered page, the 404 page included, opened a session for 60 minutes. On 1 December one node created 963 sessions in two minutes, most likely from one client probing for /.env files, wp-config.php backups and the like: 1,012 requests, 941 of them 404s. An hour later they expired, and the node’s current data file grew from 1,296 to 139,104 bytes.
Workaround
Stop the pod, delete the store, start it. All three stores (development and both production nodes) were cleared on 1 December, and every node booted without a failure. The stores fill again at the same rate, so this buys time, nothing more.
Upstream: two days
I opened infinispan/infinispan#18674 on 1 December with the reproducer, the numbers from both versions and the suspected line. It went onto the Infinispan 16.x board the same day. The next day a first pull request was up; it was replaced by #18683, which also closes two related issues: a tombstone that replaces a live record not being counted as free, and tombstones already written by older versions. It counts a standalone tombstone as free when the index first sees it, avoids counting the same bytes twice, changes the index’s clean-shutdown marker so an index written by an older version is rebuilt with correct statistics, and adds new tests. It was merged into main on 3 December.
It is not in a release yet; I will check for it before the next WildFly upgrade.
Takeaways
- Write the first theory down, then try to break it. Mine was plausible, matched the timeline and was wrong.
- A reproducer with numbers is the best bug report. Two versions, ten rounds, a table, and the line I suspected: the issue needed no follow-up questions.
- A new timeout can turn an old leak into an outage. The upgrade did not create this bug; it made it visible.
- Look at what creates state. A website that never uses a session still created one per page view.
Thanks to the Infinispan team for such a fast fix.
Environment: WildFly 42.0.0.Final (Infinispan 16.2.3) and WildFly 38 (Infinispan 15.2.6.Final), JDK 21 in production, JDK 17 for the reproducer.