Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Get the leaders for all the tables in the cluster 

GET /leader/tables 

lead controller resource enabledlead controller resource disabled
{
  "leadControllerResourceEnabled": true,
  "leadControllerEntryMap": {
    "leadControllerResource_0": {
      "tableNames": [
        "testTable1_OFFLINE"
      ],
      "leadControllerId": "Controller_172.25.124.150_9000"
    },
    ...
    "leadControllerResource_23": {
      "tableNames": ["testTable2_REALTIME"],
      "leadControllerId": "Controller_172.25.124.150_9008"
    }
  }
}
{
  "leadControllerResourceEnabled": false,
  "leadControllerEntryMap": {
"leadControllerResource_0": { "tableNames": [ "testTable_OFFLINE" ], "leadControllerId": "172.25.124.150_9000"
}
, ... "leadControllerResource_23": {

"tableNames": ["testTable2_REALTIME"], "leadControllerId": "172.25.124.150_9000" } }
}

Given a table name, return whether lead controller resource is enabled, the partition id and lead controller instance id 

GET /leader/tables/{tableName} 

lead controller resource enabledlead controller resource disabled
{
  "leadControllerResourceEnabled": true,
  "leadControllerEntryMap": {
    "leadControllerResource_7": {
      "tableNames": [
        "testTable_OFFLINE"
      ],
      "leadControllerId": "Controller_172.25.124.150_9000"
    }
  }
}
{
  "leadControllerResourceEnabled": false,
  "leadControllerEntryMap": {
"leadControllerResource_7": { "tableNames": [ "testTable_OFFLINE" ], "leadControllerId": "172.25.124.150_9000" }
}
}


Test Plans and Schedule

Once the final plan has been adjusted and finalized, we can do the following steps. 

...