Open fedor-ivn opened 1 month ago
For the addresses, that failed to fetch, we can introduce the fallback option and try to figure out the address without calling the API.
The reason for "stuck" might be such that the queue is full of addresses that already failed to fetch.
It seems like the problem has occurred again, but the cause might be different this time.
{"time":"2024-10-29T14:03:12.786Z","severity":"error","message":"Error updating address and removing pending operation: {:error, :acquire_pending_address_operation, :not_found, %{acquire_address: %Explorer.Chain.Address{__meta__: #Ecto.Schema.Metadata<:loaded, \"addresses\">, hash: %Explorer.Chain.Hash{byte_count: 20, bytes: <<255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 95, 94>>}, fetched_coin_balance: #Explorer.Chain.Wei<207236925143837812868>, fetched_coin_balance_block_number: 4396805, contract_code: nil, nonce: 155270, decompiled: false, verified: false, has_decompiled_code?: nil, stale?: nil, transactions_count: nil, token_transfers_count: nil, gas_used: nil, ens_domain_name: nil, metadata: nil, implementation: nil, smart_contract: #Ecto.Association.NotLoaded<association :smart_contract is not loaded>, token: #Ecto.Association.NotLoaded<association :token is not loaded>, proxy_implementations: #Ecto.Association.NotLoaded<association :proxy_implementations is not loaded>, contracts_creation_internal_transaction: #Ecto.Association.NotLoaded<association :contracts_creation_internal_transaction is not loaded>, contracts_creation_transaction: #Ecto.Association.NotLoaded<association :contracts_creation_transaction is not loaded>, names: #Ecto.Association.NotLoaded<association :names is not loaded>, decompiled_smart_contracts: #Ecto.Association.NotLoaded<association :decompiled_smart_contracts is not loaded>, withdrawals: #Ecto.Association.NotLoaded<association :withdrawals is not loaded>, inserted_at: ~U[2024-01-24 05:29:37.876170Z], updated_at: ~U[2024-10-29 14:03:06.702959Z], filecoin_id: %Explorer.Chain.Filecoin.IDAddress{value: \"m\"}, filecoin_robust: %Explorer.Chain.Filecoin.NativeAddress{protocol_indicator: 3, actor_id: nil, payload: <<144, 157, 102, 3, 146, 21, 9, 222, 1, 55, 51, 164, 32, 58, ...>>, checksum: <<77, 108, 36, 178>>}, filecoin_actor_type: :account}}}","metadata":{"fetcher":"filecoin_address_info"}}
Amount of pending address operations was decreasing, but then rapidly increased and stucked