Uploaded image for project: 'Usergrid (Retired)'
  1. Usergrid (Retired)
  2. USERGRID-51

the result from the Setup call (to setup DB) should not say OK when it failed to create KS (or other critical failure)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.2
    • Stack
    • None
    • 3

    Description

      **Need to verify that this is still an issue

      "When the /setup call is run and create UG keyspaces, they could fail (for various reason).

      However, it seems in the result from the call, the status always says OK:

      [root@rut000ea lib]# curl -u superuser:supervisor 0:8080/system/database/setup
      {
      ""action"" : ""cassandra setup"",
      ""status"" : ""ok"",
      ""timestamp"" : 1383342928369,
      ""duration"" : 65
      }

      Here is 1 way to reproduce this problem: in the usergrid properties, define to use NetworkTopologyStrategy AND replication_factor:

      cassandra.keyspace.strategy.options.replication_factor=3
      cassandra.keyspace.strategy.options.us-east=3
      cassandra.keyspace.strategy=org.apache.cassandra.locator.NetworkTopologyStrategy

      In C* 1.2, it becomes stricter on the options used (previously a warning). The above combination of the strategy options is invalid for NetworkTopologyStrategy, and will result in failure of creating the keyspace.

      Hence the status result from the setup call should reflect it."

      Attachments

        Activity

          People

            Unassigned Unassigned
            rockerston Rod Simpson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: