Derby
  1. Derby
  2. DERBY-4249

Create a simple store recovery test in JUnit

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 10.6.1.0
    • Fix Version/s: 10.9.1.0
    • Component/s: Test
    • Labels:
      None

      Description

      It would be good to be able to start converting the store recovery tests or at least be able to write new recovery tests in JUnit. We could start by writing a simple recovery test just to establish the framework. The test should.

      • Connect, create a table, commit and shutdown the database.
      • fork a jvm, add one row, commit, add another row, exit the jvm.
      • Reconnect with the first jvm and verify that the first row is there and the second is not.

      I guess the main thing to decide is how to spawn the second jvm and check results. I tend to think the second jvm should actually execute another JUnit test, verify the exit code (assuming a failed test has a non-zero exit code) and then put the output in the fail assertion if it fails so it shows up in the report at the end of the Suite execution. I think we could create a test runner that takes a class and a specific test to run instead of the whole suite, so we could keep our methods consolidated in a single class for the test, but all pure conjecture at this point. I'll have to give it a try, but wanted to first see if folks thought this was a reasonable approach.

      1. d4249.diff
        3 kB
        Siddharth Srivastava
      2. d4249_1.diff
        9 kB
        Siddharth Srivastava
      3. d4249_2.diff
        8 kB
        Siddharth Srivastava
      4. d4249_3.diff
        8 kB
        Siddharth Srivastava
      5. derby4249.diff
        7 kB
        Siddharth Srivastava
      6. derby4249.diff
        7 kB
        Siddharth Srivastava
      7. derby4249_secmgr_diff.txt
        9 kB
        Kathey Marsden
      8. derby4249_showlaunchederr_diff.txt
        2 kB
        Kathey Marsden

        Issue Links

          Activity

          Kathey Marsden created issue -
          Kathey Marsden made changes -
          Field Original Value New Value
          Assignee Kathey Marsden [ kmarsden ] Siddharth Srivastava [ siddharthsrivastava ]
          Siddharth Srivastava made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Siddharth Srivastava made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          Siddharth Srivastava made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Siddharth Srivastava made changes -
          Attachment d4249.diff [ 12486004 ]
          Siddharth Srivastava made changes -
          Attachment d4249_1.diff [ 12486736 ]
          Siddharth Srivastava made changes -
          Attachment d4249_2.diff [ 12487472 ]
          Siddharth Srivastava made changes -
          Attachment d4249_3.diff [ 12487476 ]
          Siddharth Srivastava made changes -
          Attachment derby4249.diff [ 12488307 ]
          Siddharth Srivastava made changes -
          Attachment derby4249.diff [ 12488312 ]
          Kathey Marsden made changes -
          Attachment derby4249_secmgr_diff.txt [ 12490683 ]
          Kathey Marsden made changes -
          Link This issue is blocked by DERBY-4647 [ DERBY-4647 ]
          Kathey Marsden made changes -
          Attachment derby4249_showlaunchederr_diff.txt [ 12490820 ]
          Kathey Marsden made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Fix Version/s 10.9.0.0 [ 12316344 ]
          Resolution Fixed [ 1 ]
          Knut Anders Hatlen made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Gavin made changes -
          Workflow jira [ 12464594 ] Default workflow, editable Closed status [ 12802748 ]

            People

            • Assignee:
              Siddharth Srivastava
              Reporter:
              Kathey Marsden
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development