Skip to content

Recursive update #20

@mjmeintjes

Description

@mjmeintjes

I recently started getting the following error when creating a new client based on an existing one:

I am occasionally getting the following error:
Caused by:  Recursive update
java.lang.IllegalStateException: Recursive update
 at java.util.concurrent.ConcurrentHashMap.replaceNode (ConcurrentHashMap.java:1167)
    java.util.concurrent.ConcurrentHashMap.remove (ConcurrentHashMap.java:1102)
    clj_okhttp.utilities$weakly_memoize_by_key$fn$reify__118605.apply (utilities.clj:81)
    java.util.concurrent.ConcurrentHashMap.computeIfAbsent (ConcurrentHashMap.java:1708)
    clj_okhttp.utilities$weakly_memoize_by_key$fn__118604.doInvoke (utilities.clj:95)
    clj_okhttp.core$create_client.invokeStatic (core.clj:26)
    clj_okhttp.core$create_client.invoke (core.clj:12)

I suspect it might be something to do with the cache being modified inside the computeIfAbsent function here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions