Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-8044

JDBC persistence-store should use BIGINT type for IDs in database tables

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 7.1.0.DR12
    • 7.1.0.DR9
    • ActiveMQ
    • None

    Description

      Artemis creates file table with ID of type INT [1]. This may not be enough from long term POV.

      Suggestion for improvement: Use BIGINT type.

      [1]

      createFileTableSQL = "CREATE TABLE " + tableName +
          "(ID INT AUTO_INCREMENT, FILENAME VARCHAR(255), EXTENSION VARCHAR(10), DATA BLOB, PRIMARY KEY(ID))";
      

      Customer impact: In production It may happen that ID number exceeds the maximum of type INT what will lead to inability of Artemis to work properly.

      Attachments

        Issue Links

          Activity

            People

              fnigro Francesco Nigro
              eduda_jira Erich Duda (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: