@Raimondas
Thank you for suggestion. We have just tried to start reading stream from 0/0 positions. Everything seemed OK. Subscriber did not report any errors.
@Greg
A database should be able to come up and join providing its an empty
database. If however it actually has a database (let’s say by starting
it up first and letting it create one) then it will get this exact
error. You should however be able to bring up a node with an empty
database and let it join into the cluster.
We have tried to wipe one node once again but it did not help. This time we made sure that other two nodes are alive. For some time it was catching up but then it got stuck in PreReplica state requesting epochs that other nodes did not have.
Also can you give the full error here?
Here is a fraction of log file. I have highlighted few interesting log entries. Also I have attached full log file of that day. I am not sure if this is relevant anymore since subscriber caught up successfully after reseting positions to 0/0.
[21350,10,22:58:25.858] ELECTIONS: STARTING ELECTIONS.
[21350,10,22:58:25.859] ELECTIONS: (V=112) SHIFT TO LEADER ELECTION.
[21350,10,22:58:25.859] ELECTIONS: (V=112) VIEWCHANGE FROM [10.2.40.41:2112, {f83dfb62-b43e-4a6f-a54b-2c697e479166}].
[21350,10,22:58:25.871] ELECTIONS: (V=112) PREPARE FROM [10.2.40.42:2112, {4e1d20c4-000d-46eb-a4b6-db9ca9f805aa}].
[21350,07,22:58:26.723] SLOW QUEUE MSG [StorageWriterQueue]: WritePrepares - 871ms. Q: 3/4.
[21350,10,22:58:26.723] ELECTIONS: (V=112) SHIFT TO REG_NONLEADER.
[21350,10,22:58:26.724] SLOW BUS MSG [MainBus]: Prepare - 852ms. Handler: ElectionsService.
[21350,10,22:58:26.724] SLOW QUEUE MSG [MainQueue]: Prepare - 853ms. Q: 0/5.
[21350,10,22:58:26.725] ELECTIONS: (V=113) VIEWCHANGE FROM [10.2.40.42:2112, {4e1d20c4-000d-46eb-a4b6-db9ca9f805aa}].
[21350,10,22:58:26.725] ELECTIONS: (V=113) SHIFT TO LEADER ELECTION.
[21350,10,22:58:26.725] ELECTIONS: (V=113) VIEWCHANGE FROM [10.2.40.41:2112, {f83dfb62-b43e-4a6f-a54b-2c697e479166}].
[21350,10,22:58:26.727] ELECTIONS: (V=113) MAJORITY OF VIEWCHANGE.
[21350,10,22:58:26.727] ELECTIONS: (V=113) SHIFT TO PREPARE PHASE.
[21350,10,22:58:26.728] ELECTIONS: (V=113) PREPARE_OK FROM 10.2.40.41:2112,{f83dfb62-b43e-4a6f-a54b-2c697e479166}.
[21350,10,22:58:26.734] ELECTIONS: (V=113) PREPARE_OK FROM 10.2.40.42:2112,{4e1d20c4-000d-46eb-a4b6-db9ca9f805aa}.
[21350,10,22:58:26.734] ELECTIONS: (V=113) SHIFT TO REG_LEADER.
[21350,10,22:58:26.734] ELECTIONS: (V=113) SENDING PROPOSAL CANDIDATE: 10.2.40.41:2112,{f83dfb62-b43e-4a6f-a54b-2c697e479166}, ME: 10.2.40.41:2112,{f83dfb62-b43e-4a6f-a54b-2c697e479166}.
[21350,10,22:58:26.735] ELECTIONS: (V=113) ACCEPT FROM [10.2.40.41:2112,{f83dfb62-b43e-4a6f-a54b-2c697e479166}] M=[10.2.40.41:2112,{f83dfb62-b43e-4a6f-a54b-2c697e479166}]).
[21350,21,22:58:26.739] Error during processing ReadAllEventsForward request.
Log record at actual pos 225498550 has too large length: 1701474162 bytes, while limit is 16777216 bytes. In chunk #0-0 (chunk-000000.000000).
[21350,23,22:58:26.739] Internal TCP connection accepted: [Normal, 10.2.40.48:32820, L10.2.40.41:1112, {4b4cbd74-d68b-4e13-930e-4df67c0ccd8d}].
[21350,10,22:58:26.740] ELECTIONS: (V=113) ACCEPT FROM [10.2.40.48:2112,{e73a2c0e-c470-4a68-aefb-b717af2070d7}] M=[10.2.40.41:2112,{f83dfb62-b43e-4a6f-a54b-2c697e479166}]).
[21350,21,22:58:26.743] SLOW QUEUE MSG [StorageReaderQueue #1]: ReadAllEventsForward - 889ms. Q: 0/0.
[21350,10,22:58:26.743] ELECTIONS: (V=113) DONE. ELECTED MASTER = 10.2.40.41:2112,{f83dfb62-b43e-4a6f-a54b-2c697e479166}. ME=10.2.40.41:2112,{f83dfb62-b43e-4a6f-a54b-2c697e479166}.
[21350,10,22:58:26.743] ELECTIONS: (V=113) ACCEPT FROM [10.2.40.42:2112,{4e1d20c4-000d-46eb-a4b6-db9ca9f805aa}] M=[10.2.40.41:2112,{f83dfb62-b43e-4a6f-a54b-2c697e479166}]).
[21350,10,22:58:26.744] ========== [10.2.40.41:2112] PRE-MASTER STATE, WAITING FOR CHASER TO CATCH UP…
[21350,10,22:58:27.106] ========== [10.2.40.41:2112] IS MASTER!!! SPARTA!!!
[21350,07,22:58:27.106] === Writing E2826@248452405:{3b38f4c9-3612-43ca-a69c-a23aeebd2ec2} (previous epoch at 248452177).
[21350,10,22:58:27.106] There are FEW MASTERS according to gossip, need to start elections. MASTER: [InstanceId: {f83dfb62-b43e-4a6f-a54b-2c697e479166}, InternalTcp: 10.2.40.41:1112, InternalSecureTcp: , ExternalTcp: 10.2.40.41:1113, ExternalSecureTcp: , InternalHttp: 10.2.40.41:2112, ExternalHttp: 10.2.40.41:2113].
GOSSIP:
VND {e73a2c0e-c470-4a68-aefb-b717af2070d7} [Master, 10.2.40.48:1112, n/a, 10.2.40.48:1113, n/a, 10.2.40.48:2112, 10.2.40.48:2113] 248451949/248482985/248467475/E2823@241474092:{535b2247-811d-4fc0-8b40-76d44f832c74} | 2015-06-25 22:58:26.508
VND {4e1d20c4-000d-46eb-a4b6-db9ca9f805aa} [PreReplica, 10.2.40.42:1112, n/a, 10.2.40.42:1113, n/a, 10.2.40.42:2112, 10.2.40.42:2113] 248436442/248451949/248451949/E2823@241474092:{535b2247-811d-4fc0-8b40-76d44f832c74} | 2015-06-25 22:58:26.861
VND {f83dfb62-b43e-4a6f-a54b-2c697e479166} [Master, 10.2.40.41:1112, n/a, 10.2.40.41:1113, n/a, 10.2.40.41:2112, 10.2.40.41:2113] 248436442/248452405/248452405/E2825@248452177:{9314b0b8-3ee1-46d1-bc09-a8dd77f6501b} | 2015-06-25 22:58:27.106
[21350,10,22:58:27.108] ELECTIONS: STARTING ELECTIONS.
[21350,10,22:58:27.108] ELECTIONS: (V=114) SHIFT TO LEADER ELECTION.
[21350,10,22:58:27.109] ELECTIONS: (V=114) VIEWCHANGE FROM [10.2.40.41:2112, {f83dfb62-b43e-4a6f-a54b-2c697e479166}].
[21350,10,22:58:27.115] ELECTIONS: (V=114) VIEWCHANGE FROM [10.2.40.42:2112, {4e1d20c4-000d-46eb-a4b6-db9ca9f805aa}].
[21350,10,22:58:27.115] ELECTIONS: (V=114) MAJORITY OF VIEWCHANGE.
[21350,10,22:58:27.119] ELECTIONS: (V=114) VIEWCHANGE FROM [10.2.40.48:2112, {e73a2c0e-c470-4a68-aefb-b717af2070d7}].
[21350,10,22:58:27.119] ELECTIONS: (V=114) PREPARE FROM [10.2.40.48:2112, {e73a2c0e-c470-4a68-aefb-b717af2070d7}].
[21350,10,22:58:27.119] ELECTIONS: (V=114) SHIFT TO REG_NONLEADER.
[21350,07,22:58:31.664] === Update Last Epoch E2826@248452405:{3b38f4c9-3612-43ca-a69c-a23aeebd2ec2} (previous epoch at 248452177).
[21350,07,22:58:31.665] SLOW QUEUE MSG [StorageWriterQueue]: BecomeMaster - 4558ms. Q: 0/4.
[21350,10,22:58:31.665] SLOW BUS MSG [MainBus]: Prepare - 4544ms. Handler: ElectionsService.
[21350,10,22:58:31.665] SLOW QUEUE MSG [MainQueue]: Prepare - 4545ms. Q: 0/45.
[21350,10,22:58:31.665] ELECTIONS: (V=114) PROPOSAL FROM [10.2.40.48:2112,{e73a2c0e-c470-4a68-aefb-b717af2070d7}] M=10.2.40.41:2112,{f83dfb62-b43e-4a6f-a54b-2c697e479166}. ME=10.2.40.41:2112,{f83dfb62-b43e-4a6f-a54b-2c697e479166}.
[21350,10,22:58:31.666] ELECTIONS: (V=114) ACCEPT FROM [10.2.40.48:2112,{e73a2c0e-c470-4a68-aefb-b717af2070d7}] M=[10.2.40.41:2112,{f83dfb62-b43e-4a6f-a54b-2c697e479166}]).
[21350,10,22:58:31.666] ELECTIONS: (V=114) ACCEPT FROM [10.2.40.41:2112,{f83dfb62-b43e-4a6f-a54b-2c697e479166}] M=[10.2.40.41:2112,{f83dfb62-b43e-4a6f-a54b-2c697e479166}]).
[21350,10,22:58:31.666] ELECTIONS: (V=114) DONE. ELECTED MASTER = 10.2.40.41:2112,{f83dfb62-b43e-4a6f-a54b-2c697e479166}. ME=10.2.40.41:2112,{f83dfb62-b43e-4a6f-a54b-2c697e479166}.
[21350,10,22:58:31.668] ELECTIONS: (V=114) ACCEPT FROM [10.2.40.42:2112,{4e1d20c4-000d-46eb-a4b6-db9ca9f805aa}] M=[10.2.40.41:2112,{f83dfb62-b43e-4a6f-a54b-2c697e479166}]).
[21350,10,22:58:31.668] SUBSCRIBE REQUEST from [10.2.40.42:1112,C:{bedf5f67-a1c3-4db2-b298-c207e417de07},S:{60555ee1-e79e-47c9-b2de-f467c63f39fd},248451949(0xECF136D),E2823@241474092:{535b2247-811d-4fc0-8b40-76d44f832c74}, E2822@233693566:{78e2432c-c6f5-4dbd-b0e2-b6213d99a9b2}, E2821@233672202:{db7c4656-c379-4851-a771-d629c895e862}, E2820@233671974:{23d90da0-9d29-4c44-8fcd-ac16f39a49cd}, E2819@233671281:{cbc94a1f-e6d7-46f1-b9d3-6b2c43a93b94}, E2818@233035997:{53a25250-9a95-48ac-8095-001e514dca0f}, E2817@232556112:{43480f3c-12df-4290-aedc-a72e673649d1}, E2816@232540412:{ef9363bd-f7c0-4e89-89e7-596f5a29a3ff}, E2815@232540184:{5b96f231-b6fe-4747-99f9-6eebe86f0f24}, E2814@232524443:{16b09ccf-0af2-48eb-be95-2d4db52e97bb}, E2813@232425374:{38f52dd9-258b-41f4-8b9a-8315a132b903}, E2812@232357132:{0eea0f4f-56cc-43ff-b4a1-9b378fa29597}, E2811@230965221:{0de90a8b-99fb-4baf-a74c-ecce9472d054}, E2810@230206919:{ecdbead5-8b38-4695-bbd5-ffd9baabc90f}, E2809@229881481:{b4fc212d-9948-4f05-98d3-1a92659c3660}, E2808@226095054:{2604677b-413d-4355-9f63-c452112bf27a}, E2807@226094826:{9b239fcf-2330-4f9a-b984-e680bc0db85f}, E2806@226017464:{d668618e-4f9a-4aa3-97c9-3c0448cee926}, E2805@225847482:{22a50963-a88d-4bc8-85ca-9c6a82dd57cc}, E2804@225569437:{b641e747-8021-4863-88c2-36c886c91544}]…
[21350,10,22:58:31.669] Subscribed replica [10.2.40.42:1112,S:60555ee1-e79e-47c9-b2de-f467c63f39fd] for data send at 248451949 (0xECF136D).
[21350,10,22:58:31.670] CLUSTER HAS CHANGED (gossip received from [10.2.40.42:2112])
Old:
VND {e73a2c0e-c470-4a68-aefb-b717af2070d7} [Master, 10.2.40.48:1112, n/a, 10.2.40.48:1113, n/a, 10.2.40.48:2112, 10.2.40.48:2113] 248451949/248482985/248467475/E2823@241474092:{535b2247-811d-4fc0-8b40-76d44f832c74} | 2015-06-25 22:58:26.508
VND {4e1d20c4-000d-46eb-a4b6-db9ca9f805aa} [PreReplica, 10.2.40.42:1112, n/a, 10.2.40.42:1113, n/a, 10.2.40.42:2112, 10.2.40.42:2113] 248436442/248451949/248451949/E2823@241474092:{535b2247-811d-4fc0-8b40-76d44f832c74} | 2015-06-25 22:58:26.861
VND {f83dfb62-b43e-4a6f-a54b-2c697e479166} [Master, 10.2.40.41:1112, n/a, 10.2.40.41:1113, n/a, 10.2.40.41:2112, 10.2.40.41:2113] 248436442/248452405/248452405/E2825@248452177:{9314b0b8-3ee1-46d1-bc09-a8dd77f6501b} | 2015-06-25 22:58:27.106
New:
VND {e73a2c0e-c470-4a68-aefb-b717af2070d7} [PreReplica, 10.2.40.48:1112, n/a, 10.2.40.48:1113, n/a, 10.2.40.48:2112, 10.2.40.48:2113] 248467475/248482985/248482985/E2823@241474092:{535b2247-811d-4fc0-8b40-76d44f832c74} | 2015-06-25 22:58:27.392
VND {4e1d20c4-000d-46eb-a4b6-db9ca9f805aa} [PreReplica, 10.2.40.42:1112, n/a, 10.2.40.42:1113, n/a, 10.2.40.42:2112, 10.2.40.42:2113] 248436442/248451949/248451949/E2823@241474092:{535b2247-811d-4fc0-8b40-76d44f832c74} | 2015-06-25 22:58:27.506
VND {f83dfb62-b43e-4a6f-a54b-2c697e479166} [Master, 10.2.40.41:1112, n/a, 10.2.40.41:1113, n/a, 10.2.40.41:2112, 10.2.40.41:2113] 248436442/248452633/248452633/E2826@248452405:{3b38f4c9-3612-43ca-a69c-a23aeebd2ec2} | 2015-06-25 22:58:31.669
``
I have also attached a full log file of the node.
eventstore.out-20150626.zip (372 KB)