Fix etag handling on read before write. (#351)

This commit is contained in:
Aditya Mandaleeka
2025-08-06 15:31:32 +00:00
committed by GitHub
parent f43939d803
commit 8dcc8533a6
2 changed files with 91 additions and 2 deletions
@@ -230,8 +230,8 @@ public class CosmosActorStateStorage : IActorStateStorage
}
catch (CosmosException ex) when (ex.StatusCode == System.Net.HttpStatusCode.NotFound)
{
// No root document means no actor state exists
return Guid.NewGuid().ToString("N");
// No root document means no actor state exists - return initial ETag
return InitialEtag;
}
}
}