38184fca0234ef4da34b84497b2cd0f4009a9c5b,perfkitbenchmarker/providers/aws/aws_managed_relational_db.py,AwsManagedRelationalDb,_IsInstanceReady,#AwsManagedRelationalDb#Any#Any#,480

Before Change


      if (datetime.datetime.now() - start_time).seconds >= timeout:
        logging.exception("Timeout waiting for sql instance to be ready")
        return False
      stdout, _, _ = vm_util.IssueCommand(cmd, suppress_warning=True)

      try:
        json_output = json.loads(stdout)

After Change


      if (datetime.datetime.now() - start_time).seconds >= timeout:
        logging.exception("Timeout waiting for sql instance to be ready")
        return False
      json_output = self._DescribeInstance(instance_id)
      try:
        state = json_output["DBInstances"][0]["DBInstanceStatus"]
        pending_values = json_output["DBInstances"][0]["PendingModifiedValues"]
        logging.info("Instance state: %s", state)
        if pending_values:
          logging.info("Pending values: %s", (str(pending_values)))

        if state == "available" and not pending_values:
          break
      except:
        logging.exception("Error attempting to read stdout. Creation failure.")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 38184fca0234ef4da34b84497b2cd0f4009a9c5b
Time: 2018-03-08
Author: nathante@google.com
File Name: perfkitbenchmarker/providers/aws/aws_managed_relational_db.py
Class Name: AwsManagedRelationalDb
Method Name: _IsInstanceReady


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: e564b61c0684b00e597a30a3cf16fc400c5d71d7
Time: 2019-04-15
Author: nathante@google.com
File Name: perfkitbenchmarker/providers/aws/aws_managed_relational_db.py
Class Name: AwsManagedRelationalDb
Method Name: _Exists


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 4da37abc3937edf62249daa010f5e522c6c04fd4
Time: 2018-03-07
Author: tohaowu@google.com
File Name: perfkitbenchmarker/providers/aws/aws_managed_relational_db.py
Class Name: AwsManagedRelationalDb
Method Name: _IsInstanceReady