microsoftarchive / cqrs-journey

Microsoft patterns & pratices CQRS Journey sample application
http://cqrsjourney.github.com/
Other
1.38k stars 460 forks source link

Conference Registration: MessageEntityNotFound exception is thrown when the azure tables are removed and tried to register for a conference again. #470

Closed vravelu closed 12 years ago

vravelu commented 12 years ago
  1. deploy the RI to portal
  2. create and register for conference and i am able to complete an end to end happy path scenario.
  3. remove the azure tables - event store, message log, WADPerformanceCounter, WADLogsTable
  4. Try running the application from portal and try registering for a conference
  5. once 'Order Now' (RegisterToConference command is sent) is clicked, the page remains with "cannot determine the state of the registration" and MessageEntityNotFound exception was logged in the newly created WADLogsTable.

Below is the error that has been logged.

An error occurred while processing the message (MessageId: fb7ed560-d77c-4e19-8cdc-5e38514f2eaf) and will be abandoned: Infrastructure.EntityNotFoundException: SeatsAvailability: de5fcb50-5cf0-41c1-a77b-a880c9af73bb at Infrastructure.Azure.EventSourcing.AzureEventSourcedRepository`1.Get(Guid id) in C:\CQRS\0529\source\mspnp-cqrs-journey-code-7a6acb5\source\Infrastructure\Azure\Infrastructure.Azure\EventSourcing\AzureEventSourcedRepository.cs:line 73 at Registration.Handlers.SeatsAvailabilityHandler.Handle(MakeSeatReservation command) in C:\CQRS\0529\source\mspnp-cqrs-journey-code-7a6acb5\source\Conference\Registration\Handlers\SeatsAvailabilityHandler.cs:line 40 at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid2[T0,T1](CallSite site, T0 arg0, T1 arg1) at Infrastructure.Azure.Messaging.Handling.CommandProcessor.ProcessMessage(String traceIdentifier, Object payload) in C:\CQRS\0529\source\mspnp-cqrs-journey-code-7a6acb5\source\Infrastructure\Azure\Infrastructure.Azure\Messaging\Handling\CommandProcessor.cs:line 76 at Infrastructure.Azure.Messaging.Handling.MessageProcessor.OnMessageReceived(Object sender, BrokeredMessageEventArgs args) in C:\CQRS\0529\source\mspnp-cqrs-journey-code-7a6acb5\source\Infrastructure\Azure\Infrastructure.Azure\Messaging\Handling\MessageProcessor.cs:line 151; TraceSource 'WaWorkerHost.exe' event

vravelu commented 12 years ago

i even tried deleting the deployment and redeployed, but the same issue remains.