Hi everyone,
I am doing some experiments looking forward to a task of Stream renaming discussed here.
Today I have started my day with a really simple projection just to warm myself up after a week on other tasks, the projection is a basic raw counter:
fromAll()
** .when({**
** $init: function() {**
** return { counter: 0 };**
** },**
** $any: function(state, event) {**
** state.counter++;**
** }**
** })**
When projection was at 81% EventStore crashed. I was not logged via SSH but the web interface was giving me a 503. I ssh into the machine and I have restarted the EventStore, but now it goes down after 4-5 minutes.
There are no strange warnings, the only two signs are:
[PID:09092:013 2014.04.03 08:17:58.735 ERROR QueuedHandlerAutoRes] Error while processing message EventStore.Projections.Core.Messaging.UnwrapEnvelopeMessage in queued handler ‘Projection Core #0’.
System.NullReferenceException: Object reference not set to an instance of an object
at System.Collections.Generic.InternalStringComparer.GetHashCode (System.String obj) [0x00000] in :0
at System.Collections.Generic.HashSet`1[System.String].GetItemHashCode (System.String item) [0x00000] in :0
at System.Collections.Generic.HashSet`1[System.String].Contains (System.String item) [0x00000] in :0
at EventStore.Projections.Core.Services.Processing.EventByTypeIndexEventReader+TfBased.Handle (EventStore.Core.Messages.ReadAllEventsForwardCompleted message) [0x00000] in :0
at EventStore.Core.Messaging.SendToThisEnvelope.ReplyWith[ReadAllEventsForwardCompleted] (EventStore.Core.Messages.ReadAllEventsForwardCompleted message) [0x00000] in :0
at EventStore.Projections.Core.Messaging.PublishToWrapEnvelop+c__AnonStorey2`1[EventStore.Core.Messages.ClientMessage+ReadAllEventsForwardCompleted].<>m__0 () [0x00000] in :0
at EventStore.Projections.Core.Messaging.UnwrapEnvelopeHandler.Handle (EventStore.Projections.Core.Messaging.UnwrapEnvelopeMessage message) [0x00000] in :0
at EventStore.Core.Bus.MessageHandler`1[EventStore.Projections.Core.Messaging.UnwrapEnvelopeMessage].TryHandle (EventStore.Core.Messaging.Message message) [0x00000] in :0
at EventStore.Core.Bus.InMemoryBus.Publish (EventStore.Core.Messaging.Message message) [0x00000] in :0
at EventStore.Core.Bus.InMemoryBus.Handle (EventStore.Core.Messaging.Message message) [0x00000] in :0
at EventStore.Core.Bus.QueuedHandlerAutoReset.ReadFromQueue (System.Object o) [0x00000] in :0
And
This is not version 3 but 2.0.1 for Mono. How can I understand what is happening?
Cheers,
Mirko