Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When deleting an application, a conflict occurs. #18

Open
jmderuty opened this issue Sep 28, 2024 · 1 comment
Open

When deleting an application, a conflict occurs. #18

jmderuty opened this issue Sep 28, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jmderuty
Copy link
Member

Reproduction: Delete an existing application with scenes (didn't try without scenes in the application)
The application was inactive when the delete command was issued.

{
  "message": "An error occurred while running module Stormancer.Cluster.Maintenance.MaintenanceModule.",
  "data": {
    "ClassName": "Stormancer.Exceptions.ConflictException",
    "Message": "Conflict: 905ba574-120a-4cb5-98ea-c073f661d9bd version mismatch: expected '1', but '2 found.",
    "Data": null,
    "InnerException": null,
    "HelpURL": null,
    "StackTraceString": "   at Stormancer.Cluster.Sharding.RocksDbInternalDb.UpdateAsync(String type, String docId, ReadOnlySequence`1 content, UInt64 version)\n   at Stormancer.Cluster.Sharding.DistributedStorage.IndexImpl(ShardStorage storage, String type, String docId, ReadOnlySequence`1 content, UInt64 version)\n   at Stormancer.Cluster.Sharding.DistributedStorage.PutAsync(ShardAddress shard, String docId, String type, ReadOnlySequence`1 content, UInt64 version, CancellationToken ct)\n   at Stormancer.Cluster.Sharding.DistributedStorage.PutAsync[T](ShardAddress shard, String docId, String type, T content, UInt64 version, CancellationToken cancellationToken)\n   at Stormancer.Platform.Data.Repository`1.<>c__DisplayClass14_0.<<Update>b__0>d.MoveNext()\n--- End of stack trace from previous location ---\n   at Stormancer.Platform.Data.Repository`1.Save(Boolean refresh)\n   at Stormancer.Cluster.Maintenance.MaintenanceModule.RunImpl(Object persistentState, CancellationToken token)\n   at Stormancer.Cluster.Maintenance.MaintenanceModule.RunImpl(Object persistentState, CancellationToken token)\n   at Stormancer.Server.Bootstrapper.ModuleManager.<>c__DisplayClass5_0.<<StartModule>b__0>d.MoveNext()",
    "RemoteStackTraceString": null,
    "RemoteStackIndex": 0,
    "ExceptionMethod": null,
    "HResult": -2146233088,
    "Source": "Stormancer.Server.Node",
    "WatsonBuckets": null
  }
}
@jmderuty jmderuty added the bug Something isn't working label Sep 28, 2024
@jmderuty jmderuty self-assigned this Sep 28, 2024
@jmderuty
Copy link
Member Author

Even if the maintenance task fails once, the application is deleted during the next iteration steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant