-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Crash after creating a lot of replications #48
Comments
This is caused because of content ID 272, the [
{
"content": {
"ID": 272,
"name": "bafybeicp65k7lorewtgy3pwzihu42nbgren3fkbixiobn7u3qkehz7fagy",
"size": 18259852128,
"cid": "bafybeicp65k7lorewtgy3pwzihu42nbgren3fkbixiobn7u3qkehz7fagy",
"requesting_api_key": "ESTc978971e-05a3-475b-ba13-7081317ddef6ARY",
"piece_commitment_id": 264,
"status": "deal-proposal-sent",
"request_type": "",
"connection_mode": "import",
"auto_retry": false,
"last_message": "",
"created_at": "2023-04-20T01:24:49.056356252-07:00",
"updated_at": "2023-04-20T01:25:20.857570787-07:00"
},
"deal_proposals": null,
"deals": [
{
"ID": 257,
"content": 272,
"propCid": "bafyreidhvmw25ss3if3wv3s4vk7oeijp4u5swrut3u637tzjexgyxn2gzq",
"dealUuid": "659a0d9b-79df-4895-8fc8-e1d109a995e2",
"miner": "f01963614",
"dealId": 0,
"failed": false,
"verified": true,
"slashed": false,
"failedAt": "0001-01-01T00:00:00Z",
"dtChan": "",
"transferStarted": "0001-01-01T00:00:00Z",
"transferFinished": "0001-01-01T00:00:00Z",
"onChainAt": "0001-01-01T00:00:00Z",
"sealedAt": "0001-01-01T00:00:00Z",
"lastMessage": "deal-proposal-sent",
"deal_protocol_version": "/fil/storage/mk/1.2.0",
"created_at": "2023-04-20T01:25:14.320848402-07:00",
"updated_at": "2023-04-20T01:25:20.966850735-07:00"
}
],
"piece_commitments": [
{
"ID": 264,
"cid": "bafybeicp65k7lorewtgy3pwzihu42nbgren3fkbixiobn7u3qkehz7fagy",
"piece": "baga6ea4seaqjecwhh6izfw724rkmqc4y57la6zfgg4fcwmsvoo7iuogdx5fvwia",
"size": 18259852128,
"padded_piece_size": 34359738368,
"unnpadded_piece_size": 0,
"status": "committed",
"last_message": "",
"created_at": "2023-04-20T01:24:48.948468667-07:00",
"updated_at": "2023-04-20T01:25:20.749870253-07:00"
}
]
}
] The case CONTENT_DEAL_PROPOSAL_SENT:
toUpdate = append(toUpdate, Replication{
Status: StatusSuccess,
ProposalCid: deal.DealProposals[0].Signed,
ContentCommP: deal.PieceCommitments[0].Piece,
DeltaContentID: deal.Content.ID,
DeltaMessage: deal.Content.LastMessage,
}) @alvin-reyes I haven't seen this happen before. It looks like the deal was successful but for some reason delta left |
Use
I think its better to have a fail safe checks for the arrays.
|
I created 50 replications with the POST /replications api and DDM crashed, is unable to start now with the following error message.
The text was updated successfully, but these errors were encountered: