Skip to content
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.

fix registry._setup_database.lock remove issue and rollback the session after UNIQUE constraint failed exception #917

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Jan 29, 2015

  1. fix registry._setup_database.lock remove issue

    It will try to remove non-existing registry._setup_database.lock
    when search_backend setting to sqlalchemy
    
    Signed-off-by: Harrison Feng <[email protected]>
    harrisonfeng committed Jan 29, 2015
    Configuration menu
    Copy the full SHA
    1009c49 View commit details
    Browse the repository at this point in the history
  2. rollback the session after UNIQUE constraint failed exception

    Here is the error message:
    InvalidRequestError: This Session's transaction has been rolled
    back due to a previous exception during flush. To begin a new
    transaction with this Session, first issue Session.rollback().
    Original exception was: (IntegrityError) UNIQUE constraint failed:
    version.id u'INSERT INTO version (id) VALUES (?)' (1,)
    
    Signed-off-by: Harrison Feng <[email protected]>
    harrisonfeng committed Jan 29, 2015
    Configuration menu
    Copy the full SHA
    0f085f3 View commit details
    Browse the repository at this point in the history