OpenJPA
  1. OpenJPA
  2. OPENJPA-1296 WriteBehindCache Problems
  3. OPENJPA-1237

WriteBehind configuration exception not thrown when it should be

    Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.1.0
    • Fix Version/s: None
    • Component/s: writebehind
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      It seems like there should be exception(s) thrown when the new writebehind cache is not configured properly. For example, this is not a valid PU configuration since there is no DataCache specified.

      <persistence-unit name="WriteBehind_JSE_INVALID_PU1">
      <mapping-file>META-INF/orm.xml</mapping-file>
      <properties>
      <property name="openjpa.DataCache" value="false"/>
      <property name="openjpa.WriteBehindCache" value="true"/>
      <property name="openjpa.WriteBehindCallback" value="true(sleepTime=15000)"/>
      </properties>
      </persistence-unit>

      Yet there is no error or exception thrown when this statement is executed:

      emf = Persistence.createEntityManagerFactory("WriteBehind_JSE_INVALID_PU1");

        Activity

        Tim McConnell created issue -
        Tim McConnell made changes -
        Field Original Value New Value
        Patch Info [Patch Available]
        Tim McConnell made changes -
        Attachment OPENJPA-1237.patch [ 12416164 ]
        Tim McConnell made changes -
        Attachment OPENJPA-1237-2.patch [ 12416280 ]
        Tim McConnell made changes -
        Attachment OPENJPA-1237.patch [ 12416164 ]
        Tim McConnell made changes -
        Attachment OPENJPA-1237-3.patch [ 12416650 ]
        Tim McConnell made changes -
        Attachment OPENJPA-1237-2.patch [ 12416280 ]
        Tim McConnell made changes -
        Component/s writebehind [ 12312973 ]
        Component/s kernel [ 12311302 ]
        Tim McConnell made changes -
        Parent OPENJPA-1296 [ 12435519 ]
        Issue Type Bug [ 1 ] Sub-task [ 7 ]
        Donald Woods made changes -
        Assignee Tim McConnell [ mcconne ] Donald Woods [ drwoods ]
        Donald Woods made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Donald Woods made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Assignee Donald Woods [ drwoods ] Michael Dick [ mikedd ]
        Fix Version/s 2.0.0-M3 [ 12314148 ]
        Fix Version/s 2.0.0 [ 12314019 ]
        Resolution Fixed [ 1 ]
        Michael Dick made changes -
        Affects Version/s 2.1.0 [ 12314542 ]
        Affects Version/s 2.0.0 [ 12314019 ]
        Fix Version/s 2.1.0 [ 12314542 ]
        Fix Version/s 2.0.0-M3 [ 12314148 ]
        Michael Dick made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Michael Dick made changes -
        Assignee Michael Dick [ mikedd ]
        Fix Version/s 2.1.0 [ 12314542 ]
        Michael Dick made changes -
        Status Reopened [ 4 ] Closed [ 6 ]
        Resolution Won't Fix [ 2 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Tim McConnell
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development