Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-6

CI: Some tests leak temporary stores and/or buffers.

    XMLWordPrintable

    Details

    • Type: Task
    • Status: In Progress
    • Resolution: Unresolved
    • Affects Version/s: QUADS_QUERY_BRANCH
    • Fix Version/s: None
    • Component/s: CI, Project Management
    • Labels:
      None

      Description

      Some unit tests in CI are leaking unit tests and/or direct buffers. Typically this is caused by a test which does not close() a Journal, a TemporaryRawStore, a TemporaryStoreFactory.

      One possible source of a leak is [1]. Notice also that the inner IJournal classes do not allow close() so nobody is closing those TemporaryStoreFactory instances. This would effect test suites using full or read-only transactions which access a temporary store using that factory. Also, notice that the TemporaryStoreFactory does not have an explicit finalizer but the individual TemporaryRawStore instances do have a finalized and could be finalized during the execution of a follow on unit test, causing a false report of an unbalanced temporary store close in that unit test.

      [1] http://sourceforge.net/apps/trac/bigdata/ticket/316 (AbstractTask uses a per-tx TemporaryStoreFactory).

        Attachments

          Activity

            People

            Assignee:
            bryanthompson bryanthompson
            Reporter:
            bryanthompson bryanthompson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: