Skip to content

Could not find existing saga data when the assembly version changes #49

@xhafan

Description

@xhafan

I have a long running saga, with saga_type DB field containing an assembly version, example value: Core.Rebuses.SagaCommandData``1[[.Core.Features.Commands.SomeCommand, Core, Version=2.0.0.4195, Culture=neutral, PublicKeyToken=null]]. There is a deployment during a long running saga, the assembly version changes, and it can no longer find the saga, I can see the message Could not find existing saga data for message... in the output.

I was able to hack-fix it by removing the version from the saga-type, the value above would become: Core.Rebuses.SagaCommandData``1[[.Core.Features.Commands.SomeCommand, Core, Culture=neutral, PublicKeyToken=null]]. That works for me.

I can see Rebus.SqlServer contains ISagaTypeNamingStrategy, which looks like a solution for this issue. Unfortunately is does not exist in Rebus.PostgreSql.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions