db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristian Waagan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-4834) Add helper class for working with index statistics in JUnit tests
Date Thu, 02 Dec 2010 13:42:11 GMT

     [ https://issues.apache.org/jira/browse/DERBY-4834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Kristian Waagan updated DERBY-4834:

    Attachment: derby-4834-3a-timeout.diff

Attached patch 3a. Committed to trunk with revision 1041374.
>From the commit msg:

"Introduced a timeout value and expected count when fetching statistics from
the system table. If a specific number of statistics entries is expected, the
system table will be queried repeatedly until the correct number is obtained or
the query times out. The motivation behind this is that the arrival of
entries in SYS.SYSSTATISTICS isn't that easy to predict since the work is
carried out in a background task.

Also some cleanups in Utilities:
 o fixed some JavaDoc
 o fixed formatting
 o added method sleep
 o simplified repeatChar

> Add helper class for working with index statistics in JUnit tests
> -----------------------------------------------------------------
>                 Key: DERBY-4834
>                 URL: https://issues.apache.org/jira/browse/DERBY-4834
>             Project: Derby
>          Issue Type: Sub-task
>          Components: Test
>    Affects Versions:
>            Reporter: Kristian Waagan
>            Assignee: Kristian Waagan
>            Priority: Minor
>         Attachments: derby-4834-1a-indexstats_utility_class.diff, derby-4834-2a-assertNoStatsTable.diff,
> Dealing with index statistics in the JUnit tests require some tedious work, like looking
up table and index ids,  doing selects on the SYS.SYSSTATISTICS table, and analyzing the results
of these queries.
> To make life easer and the tests easier to read, a set of utility methods will be added
to a new class living in the JUnit test framework package.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message