Uploaded image for project: 'aaa'
  1. aaa
  2. AAA-80

H2Store tries to create tables multiple times

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • General
    • None
    • Operating System: All
      Platform: All

    • 4782

    Description

      AAA H2Store code surrounding table creation is not synchronized, resulting in dangerous race conditions. Below is one such example of this:

      2015-12-15 04:50:42,923 | INFO | qtp2032590313-78 | DomainStore | 235 - org.opendaylight.aaa.h2-store - 0.3.0.SNAPSHOT | in dbConnect, domains Table does not exist, creating table
      2015-12-15 04:50:42,923 | INFO | config-pusher | DomainStore | 235 - org.opendaylight.aaa.h2-store - 0.3.0.SNAPSHOT | in dbConnect, domains Table does not exist, creating table
      2015-12-15 04:50:42,947 | ERROR | config-pusher | StoreException | 235 - org.opendaylight.aaa.h2-store - 0.3.0.SNAPSHOT | Cannot connect to database server org.h2.jdbc.JdbcSQLException: Table "DOMAINS" already exists; SQL statement:
      CREATE TABLE DOMAINS (domainid VARCHAR(128) PRIMARY KEY,name VARCHAR(128) UNIQUE NOT NULL, description VARCHAR(128) , enabled INTEGER NOT NULL) [42101-185]

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              rgoulding Ryan Goulding
              rgoulding Ryan Goulding
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: