We have been running an EventStore for the last 6 months, and now we need to re-generate our read models from the event streams.
This operation - which we have tried many times before, suddenly does not work. Only the first 500 events are read, and then we are seeing heartbeat timeouts.
Sample code can be seen here: https://gist.github.com/mbp/a8d7625ba280b10016e0
We are using this build: 3.0.0.0 (master/8ef23af341976d4f92580cdae28921bd0e325393, Wed, 15 Jan 2014 13:31:15 +0000)
I can only reproduce it on our production database. On my local database, there are no problems.
The output of the client application is as follows:
[14,07:13:21.127,DEBUG] Connected to [172.31.50.209:1113, L192.168.1.102:62196,{8155c3df-8b48-4456-8fe4-a3f0069b07ba}].
OnConnected
15-04-2014 07:13:22 EventAppeared 0
15-04-2014 07:13:22 EventAppeared 1
[manually trimmed output here]
15-04-2014 07:13:22 EventAppeared 498
15-04-2014 07:13:22 EventAppeared 499
[11,07:13:25.512,INFO] EventStoreConnection ‘ES-aee8292d-7860-4009-a181-37ce2e69e61b’: closing TCP connection [172.31.50.209:1113, L192.168.1.102:62196, {8155c3df-8b48-4456-8fe4-a3f0069b07ba}] due to HEARTBEAT TIMEOUT at pkgNum 2.
[11,07:13:25.515,INFO] [07:13:25.515: N172.31.50.209:1113, L192.168.1.102:62196, {8155c3df-8b48-4456-8fe4-a3f0069b07ba}]:
Received bytes: 4018530, Sent bytes: 133
Send calls: 4, callbacks: 4
Receive calls: 809, callbacks: 808
Close reason: [Success] EventStoreConnection ‘ES-aee8292d-7860-4009-a181-37ce2e69e61b’: closing TCP connection [172.31.50.209:1113, L192.168.1.102:62196, {8155c3df-8b48-4456-8fe4-a3f0069b07ba}] due to HEARTBEAT TIMEOUT at pkgNum 2.
[11,07:13:25.518,DEBUG] Connection [172.31.50.209:1113, L192.168.1.102:62196, {8155c3df-8b48-4456-8fe4-a3f0069b07ba}] was closed cleanly.
OnDisconnected
OnReconnecting
[17,07:13:25.758,DEBUG] Connected to [172.31.50.209:1113, L192.168.1.102:62197,{166adb6e-408c-4719-b063-9e4fefb6e94d}].
OnConnected