Home
Options

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

  • Options
    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.

  • Options

    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.