Home

The "Util.CacheAsync" get hang on specific condition

Here are the steps to reproduce the issue.

  1. Open my query: https://share.linqpad.net/67t4ltq3.linq

  2. Execute Query

  3. Uncomment Line 7, //return; to return;

  4. Execute Query again.

The query will be in a dead lock state.

Comments

  • edited March 11

    There is indeed a bug here, whereby the task never completes instead of posting an exception.

    The exception that should appear is as follows:

    Cannot load type 'UserQuery+VideoDetails' from cache.
    Add the [Serializable] attribute to this type to make it cacheable.
    

    If you add that attribute to your VideoDetails class, it will run correctly.

  • This is now fixed in the latest beta, so in this scenario you will now see a helpful error message rather than a non-completing task.

Sign In or Register to comment.