Uploaded image for project: 'Hue (READ ONLY)'
  1. Hue (READ ONLY)
  2. HUE-5272

[core] Warning messages when performing migrate

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.10.0, 3.11.0
    • Fix Version/s: 3.12.0
    • Component/s: core.api
    • Labels:
      None

      Description

      I've got couple of error messages when running ./build/env/bin/hue migrate:

      [09/Nov/2016 04:58:55 +0000] models       ERROR    error syncing beeswax
      Traceback (most recent call last):
      ...
        File "/host/private-hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/backends/sqlite3/base.py", line 452, in execute
          return Database.Cursor.execute(self, query, params)
      OperationalError: no such column: beeswax_savedquery.is_redacted
      
      [09/Nov/2016 04:58:55 +0000] models       ERROR    error syncing search
      Traceback (most recent call last):
      ...
        File "/host/private-hue/desktop/libs/libsolr/src/libsolr/api.py", line 52, in SolrApi
          def __init__(self, solr_url, user, security_enabled=SECURITY_ENABLED.get(), ssl_cert_ca_verify=SSL_CERT_CA_VERIFY.get()):
      AttributeError: 'Config' object has no attribute 'get'
      

      First error message can be fixed by adding migration dependency, like in this files:
      ./apps/pig/src/pig/migrations/0001_initial.py
      ./apps/oozie/src/oozie/migrations/0025_change_examples_path_format.py

      Second error message I see only when search app is blacklisted.
      The problem is that there is import of libsolr.api.SolrApi inside search.models.
      And this import fails, because libsolr.api.SolrApi uses confs from search app inside class initialization.

      I've fixed this by using default value for search.conf.SECURITY_ENABLED in SolrApi, when search is blacklisted. Also, this will fix similar error messages in couple of other places.

      I've attached fixes for both error messages.

        Attachments

          Activity

            People

            • Assignee:
              andybraslavskiy Andy Braslavskiy
              Reporter:
              andybraslavskiy Andy Braslavskiy
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: