Starts in:
2 DAYS
0 HR
57 MIN
36 SEC
Starts in:
2 D
0 H
57 M
36 S
Open Closed

Distributed Event Handler is getting Called Twice in Microservice Solution (specifically Identity Service) #2412


User avatar
0
amansharma created

Hello I have been facing this issue where the Distributed Handler in Identity Microservice is getting triggered twice In debugging Mode the breakpoint doesn't hit first time but it will hit the second time. I have checked with Custom Created Microservice and and the handlers in other service are getting triggered once only.

I don't know what am i doing wrong here?

I am trying this on newly create Project

  1. ABP Framework version: 5.0.1

  2. UI type: Angular

  3. DB provider: EF Core

  4. Tiered (MVC) or Identity Server Separated (Angular): Microservice Solution

  5. Exception message and stack trace: none

  6. Steps to reproduce the issue:"

  7. Created a ETO in Saas Domain Shared

  8. Publishing Event from Saas Application layer

  9. Create Same Eto in Identity Microservice

  10. Handled the Event


9 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I will check it

  • User Avatar
    0
    amansharma created

    Also these errors are occuring when we create a tenant for the second time the app is deployed in aws. this is only occuring in Identity Microservice module

    The AMQP operation was interrupted: AMQP close-reason, initiated by Peer, code=404, text='NOT_FOUND - no queue 'Portal_IdentityService' in vhost '/'', classId=50, methodId=20 RabbitMQ.Client.Exceptions.OperationInterruptedException: The AMQP operation was interrupted: AMQP close-reason, initiated by Peer, code=404, text='NOT_FOUND - no queue 'Portal_IdentityService' in vhost '/'', classId=50, methodId=20

    [10:58:57 WRN] Savepoints are disabled because Multiple Active Result Sets (MARS) is enabled. If 'SaveChanges' fails, then the transaction cannot be automatically rolled back to a known clean state. Instead, the transaction should be rolled back by the application before retrying 'SaveChanges'. See https://go.microsoft.com/fwlink/?linkid=2149338 for more information. To identify the code which triggers this warning, call 'ConfigureWarnings(w => w.Throw(SqlServerEventId.SavepointsDisabledBecauseOfMARS))'. [11:30:17 WRN] The operation has timed out. System.TimeoutException: The operation has timed out. at RabbitMQ.Util.BlockingCell1.WaitForValue(TimeSpan timeout) at RabbitMQ.Client.Impl.SimpleBlockingRpcContinuation.GetReply(TimeSpan timeout) at RabbitMQ.Client.Impl.ModelBase.ModelRpc(MethodBase method, ContentHeaderBase header, Byte[] body) at RabbitMQ.Client.Framing.Impl.Model._Private_ChannelOpen(String outOfBand) at RabbitMQ.Client.Framing.Impl.AutorecoveringConnection.CreateNonRecoveringModel() at RabbitMQ.Client.Framing.Impl.AutorecoveringConnection.CreateModel() at Volo.Abp.RabbitMQ.RabbitMqMessageConsumer.TryCreateChannelAsync()`

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I used the steps you provided, there is no problem. I can't reproduce it.

    Can you provide a project to me that can reproduce? shiwei.liang@volosoft.com thanks.

  • User Avatar
    0
    amansharma created

    Hello I have shared on one drive, is that okay?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Ok, please send the link to my email. shiwei.liang@volosoft.com

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I used the project you provided, I think maybe it has something to do with your environment. Can I check it remotely?

  • User Avatar
    0
    amansharma created

    Hello Yes sure, that would be great as this is a bit urgent.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Please email me when you are available. shiwei.liang@volosoft.com

  • User Avatar
    1
    liangshiwei created
    Support Team Fullstack Developer

    Solved, the problem related to RabbitMQ server.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06