[
https://issues.apache.org/jira/browse/DERBY-5493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13241269#comment-13241269
]
Rick Hillegas commented on DERBY-5493:
--------------------------------------
Attaching derby-5493-01-ab-plusMoreTests.diff. This rev of the patch adds tests
for correctness, user-visible features, and garbage collection. Regression
tests passed cleanly for me.
My plan going forward is to address Mike's concerns:
1) I will add a header tuple to SYSGHOST so that the boot-time expense of
garbage collection is reduced to one page read in most situations.
2) I will test the concurrency of this solution. If the single transaction
controller turns out to be a bottleneck, then I will try adding a transaction
controller per sequence.
Touches the following additional files:
----------
M
java/testing/org/apache/derbyTesting/functionTests/tests/upgradeTests/Changes10_9.java
Various upgrade tests.
----------
A java/testing/org/apache/derbyTesting/functionTests/tests/lang/t_5494.sh
This is a standalone test for the related correctness bug, DERBY-5494. I didn't
wire this test into the JUnit test runs because the test case requires that you
crash the VM.
> Same value returned by successive calls to a sequence generator.
> ----------------------------------------------------------------
>
> Key: DERBY-5493
> URL: https://issues.apache.org/jira/browse/DERBY-5493
> Project: Derby
> Issue Type: Bug
> Components: SQL
> Affects Versions: 10.6.1.0, 10.6.2.1, 10.7.1.1, 10.8.1.2, 10.8.2.2,
> 10.9.0.0
> Reporter: Rick Hillegas
> Assignee: Rick Hillegas
> Labels: derby_triage10_9
> Attachments: derby-5493-01-aa-correctnessPlusPeekerPlusTest.diff
>
>
> The following script shows the same value being returned from a sequence
> generator by two successive NEXT VALUE FOR calls. Thanks to Knut for finding
> this:
> connect 'jdbc:derby:memory:db;create=true';
> create table t (x int);
> create sequence s;
> autocommit off;
> select count(*) from sys.syssequences with rs;
> values next value for s;
> drop table t;
> rollback;
> -- same value as previous call
> values next value for s;
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira