dotnetcore / CAP

Distributed transaction solution in micro-service base on eventually consistency, also an eventbus with Outbox pattern
http://cap.dotnetcore.xyz
MIT License
6.7k stars 1.29k forks source link

sometimes Entity With Guid Id convertion fault #559

Closed jerrytang67 closed 4 years ago

jerrytang67 commented 4 years ago

Project is use Abp vnext

When Publish a Entity type object , the recive from RabbitMq string Id(GUID) become 00000000-0000-0000-0000-000000000000

copy from cap db table

Published

{
    "Headers": {
        "cap-callback-name": null,
        "cap-msg-id": "1255711687815548928",
        "cap-msg-name": "cms.category.zan",
        "cap-msg-type": "TT.Abp.Cms.Domain.Category",
        "cap-senttime": "4/30/2020 12:12:51 PM +08:00",
        "cap-corr-id": "1255711687815548928",
        "cap-corr-seq": "0"
    },
    "Value": {
        "Name": "a",
        "Zan": 3,
        "TenantId": null,
        "IsDeleted": false,
        "DeleterId": null,
        "DeletionTime": null,
        "LastModificationTime": "2020-04-30T12:11:07.6828546",
        "LastModifierId": "84aacab5-b591-7516-9414-39f3f7776f21",
        "CreationTime": "2020-04-30T12:10:09.866675",
        "CreatorId": "84aacab5-b591-7516-9414-39f3f7776f21",
        "ExtraProperties": {},
        "ConcurrencyStamp": "7d3988065bef4fb1b1c9778ec507287f",
        "Id": "cd66f8b8-aba0-dcdc-8f5f-39f4db73e820"
    }
}

Received

{
    "Headers": {
        "cap-callback-name": null,
        "cap-msg-id": "1255711687815548928",
        "cap-msg-name": "cms.category.zan",
        "cap-msg-type": "TT.Abp.Cms.Domain.Category",
        "cap-senttime": "4/30/2020 12:12:51 PM +08:00",
        "cap-corr-id": "1255711687815548928",
        "cap-corr-seq": "0",
        "cap-msg-group": "cap.queue.tt.somall.httpapi.host.v1"
    },
    "Value": {
        "Name": "a",
        "Zan": 3,
        "TenantId": null,
        "IsDeleted": false,
        "DeleterId": null,
        "DeletionTime": null,
        "LastModificationTime": "2020-04-30T12:11:07.6828546",
        "LastModifierId": "84aacab5-b591-7516-9414-39f3f7776f21",
        "CreationTime": "2020-04-30T12:10:09.866675",
        "CreatorId": "84aacab5-b591-7516-9414-39f3f7776f21",
        "ExtraProperties": {},
        "ConcurrencyStamp": "7d3988065bef4fb1b1c9778ec507287f",
        "Id": "00000000-0000-0000-0000-000000000000"
    }
}

I have checked https://github.com/dotnetcore/CAP/issues/547, but not caused by this It seems Publish method bug, I debuged end with image before this method,The id value is correct

yang-xiaodong commented 4 years ago

How do I reproduce this issue?

yang-xiaodong commented 4 years ago

No response, close