Skip to content

When deleting an application, a conflict occurs. #18

@jmderuty

Description

@jmderuty

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
  }
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions