indexer icon indicating copy to clipboard operation
indexer copied to clipboard

Indexer rules incorrectly reallocate and allocate

Open uchu opened this issue 2 years ago • 1 comments

We've adjusted our existing allocations to allocationLifetime 1 to have them reallocated, hoping to get them in the same transaction with the new ones. 6 new allocations were added. Allocations amounts have been distributed accordingly between the subgraphs, keeping in mind that we take from the existing ones and allocate that portion on the new ones. All commands to set allocations lifetime and start the new ones have been launched almost simultaneously, by pasting a prepared script of commands to the command line. That was a few seconds after the "Reconcile with the network" log.

What was expected: 1 transaction and all existing subgraphs updated with new amounts. The new subgraphs should be added with the correct parameters.

What happened: Just 2 of 5 existing subgraphs were updated with the new amounts, and we've got a bunch of IE013 in the actions queue for the rest of subgraphs.

Example. Here's a part of the actions queue at the moment it happened:

  {
    "id": 31,
    "type": "reallocate",
    "deploymentID": "QmbQhySwMw3U5pkMaacXkcxMW2LJrxMJG8EJZAgDAuGLke",
    "allocationID": "0x...",
    "amount": "31125.0",
    "poi": null,
    "force": null,
    "priority": 0,
    "status": "failed",
    "source": "indexerAgent",
    "failureReason": "IE013",
    "transaction": null,
    "reason": "deployment:always:allocationExpiring"
  },
  {
    "id": 30,
    "type": "allocate",
    "deploymentID": "QmU1VSMTPxRA7YNhGPSWQ1MMeAp5BSX2PUTTxB3UUUE6NX",
    "allocationID": null,
    "amount": "100000.0",
    "poi": null,
    "force": null,
    "priority": 0,
    "status": "failed",
    "source": "indexerAgent",
    "failureReason": "IE013",
    "transaction": null,
    "reason": "deployment:always"
  },
  {
    "id": 29,
    "type": "allocate",
    "deploymentID": "QmQohvyxLZLpwouzPF61kTzmLjgawmt6qDWZrPndz1M9EQ",
    "allocationID": null,
    "amount": "100000.0",
    "poi": null,
    "force": null,
    "priority": 0,
    "status": "failed",
    "source": "indexerAgent",
    "failureReason": "IE013",
    "transaction": null,
    "reason": "deployment:always"
  },
  {
    "id": 28,
    "type": "allocate",
    "deploymentID": "QmaTGDUid3KyPrP67jrR9qxiGr8bXD31dFWHHRpmSYeuzk",
    "allocationID": null,
    "amount": "100000.0",
    "poi": null,
    "force": null,
    "priority": 0,
    "status": "failed",
    "source": "indexerAgent",
    "failureReason": "IE013",
    "transaction": null,
    "reason": "deployment:always"
  },
  {
    "id": 27,
    "type": "reallocate",
    "deploymentID": "QmXZiV6S13ha6QXq4dmaM3TB4CHcDxBMvGexSNu9Kc28EH",
    "allocationID": "0x...",
    "amount": "56125.0",
    "poi": null,
    "force": null,
    "priority": 0,
    "status": "success",
    "source": "indexerAgent",
    "failureReason": null,
    "transaction": "0x7b407b3a1e454161e80e8b735868bb86b848ac3d0a70610aa097d02c0bacacb1",
    "reason": "deployment:always:allocationExpiring"
  },
  {
    "id": 26,
    "type": "reallocate",
    "deploymentID": "QmS2S1qgZbM5Cr3Q6DZNcLuHnCavzqbvBFcPksNMCeoDEN",
    "allocationID": "0x...",
    "amount": "31125.0",
    "poi": null,
    "force": null,
    "priority": 0,
    "status": "failed",
    "source": "indexerAgent",
    "failureReason": "IE013",
    "transaction": null,
    "reason": "deployment:always:allocationExpiring"
  },
  {
    "id": 25,
    "type": "reallocate",
    "deploymentID": "QmNPKXuiLWiNfENHoJDQVtEJGehaYcjEaDBaxfs91fFa9r",
    "allocationID": "0x...",
    "amount": "31125.0",
    "poi": null,
    "force": null,
    "priority": 0,
    "status": "failed",
    "source": "indexerAgent",
    "failureReason": "IE013",
    "transaction": null,
    "reason": "deployment:always:allocationExpiring"
  },
  {
    "id": 24,
    "type": "reallocate",
    "deploymentID": "QmYUcrn9S1cuSZQGomLRyn8GbNHmX8viqxMykP8kKpghz6",
    "allocationID": "0x...",
    "amount": "56125.0",
    "poi": null,
    "force": null,
    "priority": 0,
    "status": "success",
    "source": "indexerAgent",
    "failureReason": null,
    "transaction": "0x7b407b3a1e454161e80e8b735868bb86b848ac3d0a70610aa097d02c0bacacb1",
    "reason": "deployment:always:allocationExpiring"
  },
  {
    "id": 23,
    "type": "allocate",
    "deploymentID": "QmRDGLp6BHwiH9HAE2NYEE3f7LrKuRqziHBv76trT4etgU",
    "allocationID": null,
    "amount": "31125.0",
    "poi": null,
    "force": null,
    "priority": 0,
    "status": "failed",
    "source": "indexerAgent",
    "failureReason": "IE013",
    "transaction": null,
    "reason": "deployment:always"
  },
  {
    "id": 22,
    "type": "allocate",
    "deploymentID": "QmZXmDNqvDWTdcyCTwV5HevwLix1tY2MA97B5hkvdHUQFi",
    "allocationID": null,
    "amount": "31125.0",
    "poi": null,
    "force": null,
    "priority": 0,
    "status": "failed",
    "source": "indexerAgent",
    "failureReason": "IE013",
    "transaction": null,
    "reason": "deployment:always"
  },
  {
    "id": 21,
    "type": "allocate",
    "deploymentID": "QmbHg6vAJRD9ZWz5GTP9oMrfDyetnGTr5KWJBYAq59fm1W",
    "allocationID": null,
    "amount": "31125.0",
    "poi": null,
    "force": null,
    "priority": 0,
    "status": "failed",
    "source": "indexerAgent",
    "failureReason": "IE013",
    "transaction": null,
    "reason": "deployment:always"
  }

uchu avatar Feb 25 '23 14:02 uchu

Hey @uchu,

Are you still experiencing this?

Best, Alex

alex-pakalniskis avatar Sep 25 '23 19:09 alex-pakalniskis

Closing, old.

fordN avatar Jul 12 '24 19:07 fordN