Production Upsert - UNKNOWN: Uid: [834751] cannot be greater than lease: [0]

The upgrade is:

  • From an old version you just export the data. Nothing more. Put the cluster with the old version down.
  • Do the bulkload with the New version.
  • When the bulkload finishes, don’t remove the zero instance. Only the Alphas (you should not have Alphas running oO) or even Ratel (but no need to remove Ratel tho).
  • Now you start the rest of the cluster with the zero instance from the bulkload.

If you need to automate this, you can get inspiration from this repo GitHub - MichelDiz/Dgraph-Bulk-Script: Just a simple Sh to use Dgraph's Bulk Loader.

1 Like