```
[db-sync- node:Info :64] [2020-11-07 15:28:05.27 UTC] chainSyncClient ์์ ์ค
[db-sync- node:Info :64] [2020-11-07 15:28:05.31 UTC] Cardano.Db ํ์ ์ฌ๋กฏ 13132763, ๋ธ๋ก 4917327์ ์์ต๋๋ค.
[db-sync- node:Info :69] [2020-11-07 15:28:05.31 UTC] DB ์ฐ๋ ๋ ์คํ ์ค
[db-sync- node:Info :69] [2020-11-07 15:28:06.16 UTC] ์ฌ๋กฏ 13132763์ผ๋ก ๋กค๋ฐฑ, ํด์ c19c89792973fe2fff25e5b715e785d549da9647c2f9b7
[db-sync- node:Info :69] [2020-11-07 15:28:06.17 UTC] ๋ฒํธ๊ฐ ๋งค๊ฒจ์ง ์ฌ๋กฏ ์ญ์ : []
[db-sync- node:Error :69] [2020-11-07 15:28:08.93 UTC] runDBThread: Panic! applyHeaderTransition ์คํจ: [[NewEpochFailure(EpochFailure(NewPpFailure(UnexpectedDepositPot(Coin 804642000000)(Coin 8046400000000)))]]
CallStack(HasCallStack์์):
์ค๋ฅ, shelley-spec-ledger-0.1.0.0- inplace:Shelley.Spec.Ledger.API.Validation์ src/Shelley/Spec/Ledger/API/Validation.hs:92:15์์
[db-sync- node:Error :64] [2020-11-07 15:28:08.93 UTC] ChainSyncWithBlocksPtcl: ํจ๋! applyHeaderTransition ์คํจ: [[NewEpochFailure(EpochFailure(NewPpFailure(UnexpectedDepositPot(Coin 804642000000)(Coin 8046400000000)))]]
CallStack(HasCallStack์์):
์ค๋ฅ, shelley-spec-ledger-0.1.0.0- inplace:Shelley.Spec.Ledger.API.Validation์ src/Shelley/Spec/Ledger/API/Validation.hs:92:15์์
[db-sync-node.Sub ๊ตฌ๋
:์ค๋ฅ :60] [2020-11-07 15:28:08.93 UTC] [๋ฌธ์์ด "์ ํ๋ฆฌ์ผ์ด์
์์ธ: LocalAddress {getFilePath = \"/opt/cardano/cnode/sockets/node0. socket\"} ํจ๋! applyHeaderTransition ์คํจ: [[NewEpochFailure (EpochFailure (NewPpFailure (UnexpectedDepositPot (Coin 804642000000) (Coin 804640000000)))]]\nCallStack (From HasCallStack):\n Spec/Shelley์์ ํธ์ถ๋ ์ค๋ฅ shelley-spec-ledger-0.1.0.0- inplace:Shelley.Spec.Ledger.API.Validation ",๋ฌธ์์ด "SubscriptionTrace"]์ ์์ฅ/API/Validation.hs:92:15]
[db-sync-node.Er rorPolicy:์ค๋ฅ :4] [2020-11-07 15:28:08.93 UTC] [๋ฌธ์์ด "ErrorPolicyUnhandledApplicationException ํจ๋! applyHeaderTransition ์คํจ: [[NewEpochFailure (EpochFailure (NewPpFailure(UnexpectedDepositPot)004inDepositPot(Co04inDepositPot) ์ฝ์ธ 804640000000)))]]\nCallStack(HasCallStack์์):\n ์ค๋ฅ, src/Shelley/Spec/Ledger/API/Validation.hs:92:15์์ ํธ์ถ๋จ shelley-spec-ledger-0.1.0.0- inplace :Shelley.Spec.Ledger.API.Validation ",๋ฌธ์์ด "ErrorPolicyTrace",๋ฌธ์์ด "LocalAddress {getFilePath = \"/opt/cardano/cnode/sockets/node0.socket\"}"]
```
๋ฉ์ธ๋ท์ธ๊ฐ์? ์ํํธ์จ์ด์ ํ ๋ฒ์ ์์ ๋ค๋ฅธ ๋ฒ์ ์ผ๋ก ์ ๊ทธ๋ ์ด๋ํ๊ณ ์์ต๋๊น?
~์ค๋ฅ ๋ฉ์์ง์ NewEpochFailure
๋ถ๋ถ์ db-sync
๋ฒ์ ์ด node
๋ฒ์ ๊ณผ ํธํ๋์ง ์์์ ๋ํ๋
๋๋ค.~
๋ฒ์ 6.0.x
์ db-sync
์ ํธํ 1.21.x
๋
ธ๋์.
์, ๋ฉ์ธ๋ท, ์ DB๋ฅผ ๊ตฌ์ถํ๊ณ ํ์ฌ ๋์ผํ ๋ฒ์ ์ผ๋ก ์๋ํ๋ฏ๋ก ๋ฌด์จ ์ผ์ด ์ผ์ด ๋ฌ๋์ง ํ์คํ์ง ์์ต๋๋ค.
๋ซ์ต๋๋ค.
๋ฒ์ ์
๋ฐ์ดํธ์ ๊ฐ์ ๊ด์ฌ ์ฌํญ์ ๋ณ๊ฒฝ ์์ด cardano-graphql
CI ์๋ฒ์์ ๋ฐฉ๊ธ ํ์ต๋๋ค. ์ด ๊ตฌ์ฑ ์ผ๋ก ๋ฉ์ธ๋ท์ ์ฐ๊ฒฐํฉ๋๋ค.
[db-sync-node:Error:62741] [2020-11-12 06:02:09.50 UTC] runDBThread: Panic! applyHeaderTransition failed: [[NewEpochFailure (EpochFailure (NewPpFailure (UnexpectedDepositPot (Coin 831366000000) (Coin 831368000000))))]]
CallStack (from HasCallStack):
error, called at src/Shelley/Spec/Ledger/API/Validation.hs:92:15 in shelley-spec-ledger-0.1.0.0-3QeazRqhkmeDSfJ73hDh1U:Shelley.Spec.Ledger.API.Validation
[db-sync-node:Error:62736] [2020-11-12 06:02:09.50 UTC] ChainSyncWithBlocksPtcl: Panic! applyHeaderTransition failed: [[NewEpochFailure (EpochFailure (NewPpFailure (UnexpectedDepositPot (Coin 831366000000) (Coin 831368000000))))]]
CallStack (from HasCallStack):
error, called at src/Shelley/Spec/Ledger/API/Validation.hs:92:15 in shelley-spec-ledger-0.1.0.0-3QeazRqhkmeDSfJ73hDh1U:Shelley.Spec.Ledger.API.Validation
[db-sync-node.Subscription:Error:62732] [2020-11-12 06:02:09.50 UTC] [String "Application Exception: LocalAddress {getFilePath = \"/node-ipc/node.socket\"} Panic! applyHeaderTransition failed: [[NewEpochFailure (EpochFailure (NewPpFailure (UnexpectedDepositPot (Coin 831366000000) (Coin 831368000000))))]]\nCallStack (from HasCallStack):\n error, called at src/Shelley/Spec/Ledger/API/Validation.hs:92:15 in shelley-spec-ledger-0.1.0.0-3QeazRqhkmeDSfJ73hDh1U:Shelley.Spec.Ledger.API.Validation",String "SubscriptionTrace"]
[db-sync-node.ErrorPolicy:Error:4] [2020-11-12 06:02:09.50 UTC] [String "ErrorPolicyUnhandledApplicationException Panic! applyHeaderTransition failed: [[NewEpochFailure (EpochFailure (NewPpFailure (UnexpectedDepositPot (Coin 831366000000) (Coin 831368000000))))]]\nCallStack (from HasCallStack):\n error, called at src/Shelley/Spec/Ledger/API/Validation.hs:92:15 in shelley-spec-ledger-0.1.0.0-3QeazRqhkmeDSfJ73hDh1U:Shelley.Spec.Ledger.API.Validation",String "ErrorPolicyTrace",String "LocalAddress {getFilePath = \"/node-ipc/node.socket\"}"]
[db-sync-node.Handshake:Info:62759] [2020-11-12 06:02:17.54 UTC] [String "Send (ClientAgency TokPropose,MsgProposeVersions (fromList [(NodeToClientV_1,TInt 764824073),(NodeToClientV_2,TInt 764824073),(NodeToClientV_3,TInt 764824073)]))",String "LocalHandshakeTrace",String "ConnectionId {localAddress = LocalAddress {getFilePath = \"\"}, remoteAddress = LocalAddress {getFilePath = \"/ipc/node.socket\"}}"]
[db-sync-node.Handshake:Info:62759] [2020-11-12 06:02:17.54 UTC] [String "Recv (ServerAgency TokConfirm,MsgAcceptVersion NodeToClientV_3 (TInt 764824073))",String "LocalHandshakeTrace",String "ConnectionId {localAddress = LocalAddress {getFilePath = \"\"}, remoteAddress = LocalAddress {getFilePath = \"/ipc/node.socket\"}}"]
[db-sync-node:Info:62763] [2020-11-12 06:02:17.54 UTC] Starting chainSyncClient
[db-sync-node:Info:62763] [2020-11-12 06:02:17.55 UTC] Cardano.Db tip is at slot 13564796, block 4938498
[db-sync-node:Info:62768] [2020-11-12 06:02:17.55 UTC] Running DB thread
[db-sync-node:Info:62768] [2020-11-12 06:02:18.01 UTC] Rolling back to slot 13564796, hash 5d8ea0d4cf2d4f46cc91aa48e83c029691f836d7200e11e26402f9a2bcb25987
[db-sync-node:Info:62768] [2020-11-12 06:02:18.01 UTC] Deleting slots numbered: []
[db-sync-node:Error:62768] [2020-11-12 06:02:19.47 UTC] runDBThread: Panic! applyHeaderTransition failed: [[NewEpochFailure (EpochFailure (NewPpFailure (UnexpectedDepositPot (Coin 831366000000) (Coin 831368000000))))]]
CallStack (from HasCallStack):
error, called at src/Shelley/Spec/Ledger/API/Validation.hs:92:15 in shelley-spec-ledger-0.1.0.0-3QeazRqhkmeDSfJ73hDh1U:Shelley.Spec.Ledger.API.Validation
[db-sync-node:Error:62763] [2020-11-12 06:02:19.47 UTC] ChainSyncWithBlocksPtcl: Panic! applyHeaderTransition failed: [[NewEpochFailure (EpochFailure (NewPpFailure (UnexpectedDepositPot (Coin 831366000000) (Coin 831368000000))))]]
CallStack (from HasCallStack):
error, called at src/Shelley/Spec/Ledger/API/Validation.hs:92:15 in shelley-spec-ledger-0.1.0.0-3QeazRqhkmeDSfJ73hDh1U:Shelley.Spec.Ledger.API.Validation
[db-sync-node.Subscription:Error:62759] [2020-11-12 06:02:19.47 UTC] [String "Application Exception: LocalAddress {getFilePath = \"/node-ipc/node.socket\"} Panic! applyHeaderTransition failed: [[NewEpochFailure (EpochFailure (NewPpFailure (UnexpectedDepositPot (Coin 831366000000) (Coin 831368000000))))]]\nCallStack (from HasCallStack):\n error, called at src/Shelley/Spec/Ledger/API/Validation.hs:92:15 in shelley-spec-ledger-0.1.0.0-3QeazRqhkmeDSfJ73hDh1U:Shelley.Spec.Ledger.API.Validation",String "SubscriptionTrace"]
[db-sync-node.ErrorPolicy:Error:4] [2020-11-12 06:02:19.47 UTC] [String "ErrorPolicyUnhandledApplicationException Panic! applyHeaderTransition failed: [[NewEpochFailure (EpochFailure (NewPpFailure (UnexpectedDepositPot (Coin 831366000000) (Coin 831368000000))))]]\nCallStack (from HasCallStack):\n error, called at src/Shelley/Spec/Ledger/API/Validation.hs:92:15 in shelley-spec-ledger-0.1.0.0-3QeazRqhkmeDSfJ73hDh1U:Shelley.Spec.Ledger.API.Validation",String "ErrorPolicyTrace",String "LocalAddress {getFilePath = \"/node-ipc/node.socket\"}"]
~Slack์์ Rhys์ ์ฑํ
ํ ํ ์ด ์ค๋ฅ๊ฐ ๋ฐ์ํ๊ธฐ ์ ์ db-sync
๊ฒฝ์ฐ
๋ฌธ์ ๋ Epoch ๋กค์ค๋ฒ์์ ๋ฐ์ํฉ๋๋ค.
@rhyslbw ์ @mmahut ์ ๋ชจ๋ ๋์ผํ ๋ง์ง๋ง ์ ์ฉ๋ ๋ธ๋ก์ธ hash 5d8ea0d4cf2d4f46cc91aa48e83c029691f836d7200e11e26402f9a2bcb25987
barfed๋ฅผ ์ก์์ต๋๋ค. ๊ทธ๊ฒ์ ์ฐ์ฐ์ ์ผ์น์ผ ๊ฐ๋ฅ์ฑ์ด ๋งค์ฐ ๋ฎ์ต๋๋ค.
ํด๋น ๋ธ๋ก์ด ์๋ก์ด ์๋์ ์ฒซ ๋ฒ์งธ ๋ธ๋ก์ผ ๊ฐ๋ฅ์ฑ์ด ๋์ต๋๋ค.
@rhyslbw ์ฌ์ฉ ์ค์ธ db-sync
๋ฒ์ ์ git ํด์๋ ๋ฌด์์
๋๊น?
@mmahut ์ด #404์์ ์ฌ์ฉํ ๊ฒ์ https://github.com/input-output-hk/cardano-db-sync/commit/6187081a7ea66954c86094578bd37e01bca8aaec ์ปค๋ฐ์ด ๋๋ฝ๋ ์ปค๋ฐ https://github.com/input-output-์
๋๋ค. hk/cardano-db-sync/commit/afe68e08cf5f8b3b1b6690e411670908bc0f5942 ์๋ ์์ฅ ์ํ ๊ตฌ์ฑ์ ๋ํ ๋ณ๊ฒฝ ์ฌํญ์ด ํฌํจ๋์ด ์์ต๋๋ค. ์ด ๋ฌธ์ ๋ ์์ฅ ์ํ ๊ด๋ จ ์ฝ๋์์ ์ฃฝ์ด๊ฐ๋ ๊ฒ์ ๊ดํ ๊ฒ์ด์ง๋ง ๊ทธ ๋ณ๊ฒฝ์ด ๋ฉ์ธ๋ท์ ์ํฅ์ ๋ฏธ์น์ง ์์์ผ ํฉ๋๋ค. 6.0.0
ํ๊ทธ ๋ ๋ ๋ฒ์งธ ์ปค๋ฐ ์ดํ์ ์์ต๋๋ค.
์ด๊ฒ์ https://github.com/input-output-hk/cardano-db-sync/issues/256 ์ ๋ํ ์์ ์์ด ๋๋ฒ๊ทธํ๋ ๋ฐ ํฐ ๊ณ ํต์ ๋๋ค.
@erikd ๋ฆด๋ฆฌ์ค ํ๊ทธ ์ปค๋ฐ 3e68f3011bb156b9b799ccf056f9a73281479f9c
์ด ๋ฌธ์ ๋ฅผ ์ฌํํ๊ธฐ ์ํด ๋ง์ ๋ ธ๋ ฅ์ ๊ธฐ์ธ์์ง๋ง ๊ฒฐ์ ์ ์ด์ง๋ ์์ต๋๋ค . ์ ๋ ํ์ฌ ์ค๋ฅ๋ฅผ ๋ ์ ์ก์๋ด๊ณ ์ฆ์ ์ค๋จํด์ผ ํ๋ ์ด ์ฝ๋ ๋ฒ์ ์ ์คํํ๊ณ ์์ต๋๋ค. ์ง๊ธ๋ถํฐ ์ฝ 14์๊ฐ ํ์ ๋ฐ์ํ๋ ๋ค์ ์ํฌํฌ ๊ฒฝ๊ณ์์ ์ด๋ฅผ ๋ค์ ํธ๋ฆฌ๊ฑฐํ ๊ธฐํ๊ฐ ์๊ธฐ๋ฅผ ๋ฐ๋๋๋ค.
10๊ฐ์ ๋ ธ๋, ๋ชจ๋ ์ด ํน์ ๋ฒ๊ทธ๋ก ์ธํด
65bce9e6463a324d612d24588afbdecc 13996555.lstate
77b5e894f8a22cb49605b9bfd474588a 13996568.lstate
12c4be3b0fac587d1b6485284e218404 13996582.lstate
f0b29f6768c836e7283f7033799ce146 13996626.lstate
ba72f63cf8185150c8120f3466756479 13996646.lstate
a2b45038665701084196a238b3beb329 13996669.lstate
7e8cccd8f0f1c3ac519ef7471a998ac1 13996713.lstate
ab304c279c8209e4b21a623b1a6dd80f 13996756.lstate
git rev 6187081a7ea66954c86094578bd37e01bca8aaec
( 6.0.0
ํ๊ทธ ๋ค์ ์๋ ๋ช ๊ฐ์ง ์ปค๋ฐ)๋ฅผ ์ฌ์ฉํฉ๋๋ค.
ํ์ฌ ๊ฐ์ค์ ์์ฅ ์ํ๊ฐ ์ด๋ ์์ ์์ ์์๋๊ณ ์์์ ์ํฌํฌ ๊ฒฝ๊ณ์์๋ง ๊ฐ์ง ๋๋ค๋ ๊ฒ์ ๋๋ค.
๋ฌดํ ๋ฃจํ NewEpochFailue
99d3e16a319a20ff689ca9582425ddae 13996555.lstate
8205deb9c2b3ad946a99bc7692d4434e 13996568.lstate
8eeb20d372cf5214db7c8287a052707b 13996582.lstate
7133fb72aa8194efa80e95c3fa4af1fb 13996626.lstate
f7199d4a131c6fd4649a76a51167275f 13996646.lstate
faa8d71771e8cc68703fa4f1f08dfce7 13996669.lstate
f6cbf62dad57439dc126f8b56061a863 13996713.lstate
504ea06cb925868c25c100d7d05d6afd 13996756.lstate
cardano-db-sync-extended 6.0.0 - linux-x86_64 - ghc-8.6
git revision 3e68f3011bb156b9b799ccf056f9a73281479f9c
์ธ์คํด์ค 3๊ฐ ์ค 2๊ฐ์์ NewEpochFailue
์ค๋ฅ๊ฐ ๋ฐ์ํ์ต๋๋ค.
์์ ์์ 3e68f3011bb156b9b799ccf056f9a73281479f9c
0eb144b880dcb07c8347b560ea77db27 13996555.lstate
6ee65fc1f5d47fbb858e92770e109f0f 13996568.lstate
c526b055c731173bb7a94cbf3144855d 13996582.lstate
932f8a4807537c43332a4b9a91c0c4a7 13996626.lstate
95163e7b5351b04ae5909d221a4ee2e2 13996646.lstate
c584485911b8f246d01e37572b0f4175 13996669.lstate
449a7c5b2669288dfec995867507211a 13996713.lstate
ba8c8f7f1657727c826ca07be4f7d2e2 13996756.lstate
์ํฅ์ ๋ฐ์ง ์์ ์ธ์คํด์ค์ ์ค๋ ์ท์ด ๋กค์์๋์์ต๋๋ค.
๋์ผํ ์์ฅ ์ํ ํ์ผ(์: 13996756.lstate
์ 3๊ฐ์ ๋ค๋ฅธ ํด์๊ฐ ์๋ค๋ ์ฌ์ค์ ์ฝ๊ฐ ์์์น ๋ชปํ ๊ฒ์
๋๋ค.
์์ธ์ด ์์๋ ์์ฅ ์ํ์ธ ๊ฒฝ์ฐ ์๋ง๋ ์ด๊ฒ๊ณผ #405๊ฐ ๊ฐ์ ๋ฌธ์ ์ผ ๊ฒ์ ๋๋ค.
@SebastienGllmt ๋ค, ๊ฐ๋ฅํ์ง๋ง ์์ง #405๋ฅผ ๋ณผ ๊ธฐํ์กฐ์ฐจ ์์์ต๋๋ค.
4๊ฐ ์ค 2๊ฐ์ ์ธ์คํด์ค๊ฐ ์ค๋จ๋จ
์คํจํ ์ธ์คํด์ค์ MD5 ์ฒดํฌ์ฌ:
189def79f03972649fdcdcd811def1bb 13996555.lstate
dc6865de6149fdf4879a4659bcf02ef0 13996568.lstate
85bf1965fdadee3ee42c10dfd32e0bdb 13996582.lstate
c452477105dc4041c17d718a32f12056 13996626.lstate
9eb0f1fd0a165a8eff3ec4835f370d6d 13996646.lstate
4d5180ba656234020a71f2d46f1d9d0e 13996669.lstate
521ae28570c1630a18bc721cc4707eaa 13996713.lstate
9a2485e192578c1d3c22059648fba79f 13996756.lstate
(๋ค๋ฅธ ์คํจํ ์ธ์คํด์ค๊ฐ ๋ค๋ฅธ ํด์๋ฅผ ๊ฐ์ง)
์ ์ ์ธ์คํด์ค:
98d46070c972d7b4ec564e4053e29eda 14033709.lstate
5c2443fe558a928a86606136337f3648 14033754.lstate
6c180d350ba7becf0f02d698ac160397 14033800.lstate
d655e560b8a43e064b671266795d262c 14033812.lstate
99bfbf88ec497e7e40865c920f8e8e26 14033839.lstate
bec82d94fe348d843389853cd24a3e5b 14033845.lstate
14faba941a24f02b236d784af85f8d32 14033890.lstate
c96d18f7bdadebed8e3b723b4e6691fc 14033936.lstate
bcd82d0a3eada57fdf7cc71670a46c9b3b80464f
์ปค๋ฐ ์ 10๊ฐ์ ๋ค๋ฅธ ์ธ์คํด์ค๋ฅผ ๋ค์ ๋๊ธฐํํ๋ ค๊ณ ํ์ต๋๋ค(๋ฉํ๋ฐ์ดํฐ ๊ธฐ๋ฅ์ด ํ์ํ๊ธฐ ๋๋ฌธ์).
10๊ฐ ์ค 2๊ฐ์๋ ์์ฅ ์ํ ํ์ผ์ ์์๋ ๋ฒ์ ์ด ์์์ต๋๋ค(๋๋จธ์ง์ ๋ค๋ฆ). ์ฌ๋ฐ๋ฅธ ํฉ๊ณ๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
/var/lib/csyncdb/14040345.lstate | b1df6bdb2cf6f798d9baf83373a4698f
/var/lib/csyncdb/14040390.lstate | 5694a00b12b47052125178175289ba24
/var/lib/csyncdb/14040394.lstate | b45a5e4b82362def92225a3eec5d1afb
/var/lib/csyncdb/14040412.lstate | 8319589d1b66dffd97f5233c3dcfddd0
/var/lib/csyncdb/14040436.lstate | 9d0fec3f4693bd78f426c34c5aaa5d5d
/var/lib/csyncdb/14040462.lstate | 8afe16d592a57ed5ef79a27adf0803d9
/var/lib/csyncdb/14040481.lstate | bcc2648eb09b0d5503f6397569b33e67
/var/lib/csyncdb/14040527.lstate | 588d787363bfe02cf0fd34ac8f412dd4
/var/lib/csyncdb/14040553.lstate |ย e1f2f42a1ac49d2ec3a53351d1b267b5
๋ํ ํ์ผ์์ ๋ถ์ผ์น๋ฅผ ๋ฐ๊ฒฌํ์ต๋๋ค. ์ธ์คํด์ค์ ์ ๋ฐ์์ 14040345.lstate
๊ฐ ๋๋ฝ๋์์ง๋ง ์ด ์ธ์คํด์ค์๋ ๋์ 14040553.lstate
๊ฐ ์์ต๋๋ค.
์ฐธ๊ณ ๋ก, Epoch 230 ์ ํ์์ ๋์ผํ ๋ฌธ์ ๊ฐ ๋ค์ ๋ฐ์ํฉ๋๋ค.
์๊ฒ ์ต๋๋ค. ๋ฌธ์ ์ ์์ธ์ ์๊ณ ์์ต๋๋ค. ์ด๊ฒ์ ๊ณ ์น๋ ๊ฒ์ ๋น๊ต์ ๊ฐ๋จํฉ๋๋ค. ์์ฅ ์ํ๊ฐ ์ด๋ฏธ ์์๋์ง ์์ ํ ์์ ํ๋ก๊ทธ๋จ์๋ db ์ฌ๋๊ธฐํ๊ฐ ํ์ํ์ง ์์ต๋๋ค(์ํํธ์จ์ด์ ๊ณ ์ ๋ฒ์ ์์ ๊ฐ์ง๋จ).
๋ฌธ์ ๋:
db-sync
๋ ์ด๋ฏธ ๋
ธ๋์ ์ํด ๊ฒ์ฆ๋ ๋ธ๋ก์ ๊ฐ์ ธ์ค๊ธฐ ๋๋ฌธ์ ๋น ๋ฅธ ๋ฒ์ ์ ์ฌ์ฉํ๋ ๊ฒ์ด ํ๋ช
ํด ๋ณด์์ต๋๋ค.@erikd ์ ์ฒด ๊ฒ์ฌ์ ๋น ๋ฅธ ๊ฒ์ฌ ์ฌ์ด์์ ๊ตฌ์ฑ์ ํ ๊ธํ๋๋ก ํ ์ ์์ต๋๊น? ๋ชจ๋ ๊ฒ์ "์์ " ๋ชจ๋๋ก ์คํํ๊ณ ์ถ๊ฐ ๋ฆฌ์์ค๋ฅผ ์ฌ์ฉํ์ฌ ๊ณ์ ์๋ํ๋์ง ํ์ธํ๊ณ ์ถ์ต๋๋ค.
@CyberCyclone ํด์๊ฐ ํ์ธ๋๋ฉด 256๋นํธ ํด์ ์ถฉ๋ ๊ฐ๋ฅ์ฑ๋ณด๋ค ๋ ํฐ ํ๋ฅ ๋ก ์๋ชป ๋ ์ ์๋ ๋ค๋ฅธ ๊ฒ์ ์์ต๋๋ค. ํด์๋ฅผ ํ์ธํ์ด์ผ ํฉ๋๋ค. ํ์ธ ์ค์ด๋ผ๊ณ ์๊ฐํ์ต๋๋ค. ํ ๋ฒ ํ์ธ๋๋ฉด ๋ ์ด์ ํ์ธํ ์ด์ ๊ฐ ์์ต๋๋ค.
๊ต์ฅํ๋ค, ๋ฃ๊ธฐ ์ข๋ค! ๋ ๋ง์ ์ผ์ด ์ผ์ด๋๊ณ ์๋ ๊ฒ์ฒ๋ผ ๋ค๋ ธ๋ค. ๊ทธ๋ฌ๋ ์, ํด์ ์ถฉ๋์ ๊ฑฑ์ ํ ํ์๊ฐ ์์ต๋๋ค.
๋น ๋ฅธ ๋ฒ์ ์ ์ฌ์ฉ ์ค์ด๊ณ ์ฝ๋๊ฐ ์ง์ ๋ ์ฌ๋กฏ์ผ๋ก ๋กค๋ฐฑ๋๊ธฐ ๋๋ฌธ์ ์ฌ๋ฐ๋ฅธ ์ฌ๋กฏ ๋ฒํธ๋ก ๋กค๋ฐฑํ ์ ์์ง๋ง ์๋ชป๋ ๋ธ๋ก(์: ์ฌ๋กฏ ๋ฒํธ๋ ์ ํํ์ง๋ง ์๋ชป๋ ํด์๋ก ์ธํด ์๋ชป๋ ๋ธ๋ก)์ผ๋ก ๋กค๋ฐฑํ ์ ์์ต๋๋ค.
_์ฌ๋ฐ๋ฅธ ์ฌ๋กฏ ๋ฒํธ๋ก ๋กค๋ฐฑํ ์ ์์ด์ผ ํ์ง๋ง ์๋ชป๋ ๋ธ๋ก์_ ํด์ผ ํฉ๋๋ค.
์ฒด์ธ ๋๊ธฐํ๋ ์ฒด์ธ์ ์ง์ ๋ ์ง์ (์ง์ ์ ์ฌ๋กฏ+ํด์)์ผ๋ก ๋กค๋ฐฑํ๋๋ก ์ง์ํ์ง๋ง ์ด ์ง์ ์ ์๋น์์ ์ฒด์ธ์ ๋ฐ๋์ ์กด์ฌํฉ๋๋ค. ์, ํ์ธํ๋ ๊ฒ์ด ๋งค์ฐ ํฉ๋ฆฌ์ ์ด์ง๋ง ์ด ํ์ธ์ด ์คํจํ๋ฉด ์ด๋๊ฐ์ ๋ ผ๋ฆฌ ๋ฒ๊ทธ๊ฐ ์์์ ๋ํ๋ ๋๋ค.
๊ทธ๋์ ๋๋ ์ด๊ฒ์ ์์ ์ด๋ผ๊ณ ๋ถ๋ฅด๊ธฐ ์ ์ ๋ ๋ง์ ์กฐ์ฌ๊ฐ ํ์ํ๋ค๊ณ ์๊ฐํฉ๋๋ค. ์ฃผ์ฅ์ ์ถ๊ฐํ๋ฉด ์ํฌํฌ ๊ฒฝ๊ณ์์ ํจ์ฌ ๋์ค์๊ฐ ์๋๋ผ ๋ฌธ์ ๊ฐ ๋ฐ์ํ ์ง์ ์์ ํจ์ฌ ๋ ์ ์ํ๊ฒ ๋ฌธ์ ๋ฅผ ๊ฐ์งํด์ผ ํฉ๋๋ค. ๋ฌผ๋ก ์ฃผ์ฅ์ ์ถ๊ฐํ๋ ๊ฒ ์์ฒด๊ฐ ํด๊ฒฐ ๋ฐฉ๋ฒ์ ์๋๋๋ค.
์ฌ๋ฐ๋ฅธ ์ฌ๋กฏ ๋ฒํธ๊ฐ ์๋ ์๋ชป๋ ๋ธ๋ก์ผ๋ก ๋กค๋ฐฑํ ์ ์์ด์ผ ํฉ๋๋ค.
๋กค๋ฐฑ์ด ์ฌ๋กฏ ๋ฒํธ๋ง ํ์ธํ๊ณ ํด์๋ ํ์ธํ์ง ์๋ ๊ฒฝ์ฐ ๊ฐ๋ฅํฉ๋๋ค.
๋ก๊น ์ ์ด์ ๋ค์์ ์์ฑํ์ต๋๋ค.
[db-sync-node:Info:39] [2020-11-19 08:47:21.84 UTC] Rolling back to slot 8092720,
hash e1e78605937bb8cfc842d1ee7280b92fa9fce813c26fa66a88eaca74d7af9f05
[db-sync-node:Info:39] [2020-11-19 08:47:21.84 UTC] Deleting slots numbered: [8092760]
Ledger state hash mismatch. Ledger expects 6f1940937d806865a6e96b25a640deb8c1393852fd3d311dbd648e2bfa89056e
but block provides e1e78605937bb8cfc842d1ee7280b92fa9fce813c26fa66a88eaca74d7af9f05.
์กฐ๊ธ ์ด์ํฉ๋๋ค. ๋ค์ ์์ํ๋ฉด ๋ค์๊ณผ ๊ฐ์ ๊ฒฐ๊ณผ๊ฐ ๋ํ๋ฉ๋๋ค.
```
[db-sync- node:Info :34] [2020-11-19 09:06:15.54 UTC] ๋ฐ์ดํฐ๋ฒ ์ด์ค ํ์ ์ฌ๋กฏ 8092720, ๋ธ๋ก 389107์ ์์ต๋๋ค.
[db-sync- node:Info :39] [2020-11-19 09:06:15.54 UTC] DB ์ฐ๋ ๋ ์คํ ์ค
[db-sync- node:Info :42] [2020-11-19 09:06:15.55 UTC] getHistoryInterpreter: ํ๋
[db-sync- node:Info :39] [2020-11-19 09:06:15.55 UTC] ์ฌ๋กฏ 8092720์ผ๋ก ๋กค๋ฐฑ,
ํด์ e1e78605937bb8cfc842d1ee7280b92fa9fce813c26fa66a88eaca74d7af9f05
[db-sync- node:Info :39] [2020-11-19 09:06:15.56 UTC] ๋ฒํธ๊ฐ ๋งค๊ฒจ์ง ์ฌ๋กฏ ์ญ์ : []
````
์ด์ ๋ํ ์ฝ๋๋ฅผ ํ์ธํด์ผ ํฉ๋๋ค.
์ด์ ๋ํ ์์ ํด๊ฒฐ ๋ฐฉ๋ฒ์ด ์์ต๋๋ค. ํด๊ฒฐ ๋ฐฉ๋ฒ์ ์งํ ์ค์ธ ๋๋ฒ๊น ๋ถ๊ธฐ์์ ์ ๊ณต๋์ง๋ง ์ ์ฒด ํ ์คํธ, QA ๋๋ ๋ฆด๋ฆฌ์ค๋์ง ์์์ต๋๋ค.
๋๊ตฐ๊ฐ 6.0.0
๋ฆด๋ฆฌ์ค๋ฅผ ์คํ ์ค์ด๊ณ ~12์๊ฐ ๋ด์ ๋ฐ์ํ๋ ์ํฌํฌ ๋กค์ค๋ฒ์ ๋ํด ๊ฑฑ์ ํ๋ ๊ฒฝ์ฐ ํด๊ฒฐ ๋ฐฉ๋ฒ์ด ํฌํจ๋ erikd/tmp-fix-6.0.x
๋ถ๊ธฐ(์ปค๋ฐ 3a6e7199c1f2)๊ฐ ์์ต๋๋ค. ํด๊ฒฐ ๋ฐฉ๋ฒ์ ์๋ชป๋ ๊ฒ์ ๊ฐ์งํ๊ณ ํจ๋์ ์ผ์ผํค๊ณ ๋ ๋์ ์์ค์์ ์์ธ๋ฅผ ๋ค์ ์๋ํ ๋ค์ db-sync๋ฅผ ๊ณ์ํฉ๋๋ค.
6.0.0
๊ด๋ จ๋ ๋ฐ์ดํฐ๋ฒ ์ด์ค ๋ณ๊ฒฝ ์ฌํญ์ด ์์ผ๋ฏ๋ก ์ฌ๋๊ธฐํ๊ฐ ํ์ํ์ง ์์ต๋๋ค.
๊ทธ๋ฌ๋ ์ด ๋ฒ์ ์ ์คํํ๋ฉด ์ด๋ฏธ ์์๋ ์์ฅ ์ํ๋ฅผ ๊ฐ์งํ ์ ์์ต๋๋ค(์ด๋ค ๋ชจ์์ธ์ง๋ ํ์คํ์ง ์์). ์ด ๊ฒฝ์ฐ ์ฌ๋๊ธฐํ๊ฐ ํ์ํฉ๋๋ค.
๋ง์ ๋๋ฒ๊ทธ ์ฝ๋๋ฅผ ์ถ๊ฐํ ๋ค์ ๋ฌธ์ ๊ฐ ํธ๋ฆฌ๊ฑฐ๋ ๋๊น์ง ๊ธฐ๋ค๋ฆฝ๋๋ค.
์ด ๋ฌธ์ ๋ ๊ฒฝ์ ์กฐ๊ฑด์ ๋๋ค. ๋ก๊ทธ์์:
[2020-11-21 08:27:09.90 UTC] insertShelleyBlock: epoch 230, slot 14380936, block 4978632,
hash f984eead753a149efad752dd58471d0c53c3fcf973d281acf4fdcbc6fda799c7
[2020-11-21 08:27:34.22 UTC] insertShelleyBlock: epoch 230, slot 14380962, block 4978633,
hash bfe35e62b322d397fa6c5080ccd8294c0d2eaca5695e604df59f27f82292227a
[2020-11-21 08:27:36.69 UTC] loadLedgerState: slot 14380962
hash bfe35e62b322d397fa6c5080ccd8294c0d2eaca5695e604df59f27f82292227a
[2020-11-21 08:27:37.15 UTC] insertShelleyBlock: epoch 230, slot 14380964, block 4978634,
hash 1ef4771244b95d35c59371521d19fc145646f89f28bf7a18c4f6c8d7485da2b3
[2020-11-21 08:27:40.01 UTC] Rolling back to slot 14380962,
hash bfe35e62b322d397fa6c5080ccd8294c0d2eaca5695e604df59f27f82292227a
[2020-11-21 08:27:40.02 UTC] Deleting slots numbered: [14380964]
[2020-11-21 08:27:40.35 UTC] ChainSyncWithBlocksPtcl: FatalError {fatalErrorMessage = "Ledger state hash
mismatch. Ledger head is slot 14380964 hash
1ef4771244b95d35c59371521d19fc145646f89f28bf7a18c4f6c8d7485da2b3 but block previous hash is
bfe35e62b322d397fa6c5080ccd8294c0d2eaca5695e604df59f27f82292227a and block current
hash is 136956bd1c6ce536e3c3bb0cef07b3e380441522317c88274f1455a7b11ca2d5."}
[2020-11-21 08:27:41.35 UTC] Starting chainSyncClient
[2020-11-21 08:27:41.36 UTC] Database tip is at slot 14380962, block 4978633
[2020-11-21 08:27:41.36 UTC] Running DB thread
[2020-11-21 08:27:41.54 UTC] Rolling back to slot 14380962,
hash bfe35e62b322d397fa6c5080ccd8294c0d2eaca5695e604df59f27f82292227a
[2020-11-21 08:27:41.54 UTC] Deleting slots numbered: []
[2020-11-21 08:27:42.54 UTC] loadLedgerState: slot 14380962
hash bfe35e62b322d397fa6c5080ccd8294c0d2eaca5695e604df59f27f82292227a
๊ธฐ๋ณธ์ ์ผ๋ก ๋ฐ์ํ๋ ์ผ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
์์ ์ฌํญ์ ์ฝ๋๋ฅผ ํ์ ์ฐ๊ธฐ ๋์์ ์ฝ๊ธฐ ๋์ผ๋ก ๋กค๋ฐฑ ์์ฅ ์ํ๋ก ์ด๋ํ๋ ๊ฒ์ ๋๋ค.
https://github.com/input-output-hk/cardano-db-sync/pull/413 ์ ๋ง์คํฐ์์ ์์ ๋์์ต๋๋ค.
์ด ๋ฌธ์ ๋ฅผ ์์ ํ๋ 6.0.1
๋ฆด๋ฆฌ์ค๋ ์์ต๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์๊ฒ ์ต๋๋ค. ๋ฌธ์ ์ ์์ธ์ ์๊ณ ์์ต๋๋ค. ์ด๊ฒ์ ๊ณ ์น๋ ๊ฒ์ ๋น๊ต์ ๊ฐ๋จํฉ๋๋ค. ์์ฅ ์ํ๊ฐ ์ด๋ฏธ ์์๋์ง ์์ ํ ์์ ํ๋ก๊ทธ๋จ์๋ db ์ฌ๋๊ธฐํ๊ฐ ํ์ํ์ง ์์ต๋๋ค(์ํํธ์จ์ด์ ๊ณ ์ ๋ฒ์ ์์ ๊ฐ์ง๋จ).
๋ฌธ์ ๋:
db-sync
๋ ์ด๋ฏธ ๋ ธ๋์ ์ํด ๊ฒ์ฆ๋ ๋ธ๋ก์ ๊ฐ์ ธ์ค๊ธฐ ๋๋ฌธ์ ๋น ๋ฅธ ๋ฒ์ ์ ์ฌ์ฉํ๋ ๊ฒ์ด ํ๋ช ํด ๋ณด์์ต๋๋ค.