Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
10.4.2.0, 10.5.1.1
-
None
-
None
Description
If you try to insert a row which would violate a unique constraint,
the insert is rolled back, but the space is not reclaimed.
This was mentioned in a comment to DERBY-4028 (26/Jan/09):
> Out of curiosity, I tried this code:
>
> s.execute("create table d4028(x int unique)");
> while (true) {
> try
catch (SQLException e)
{ > System.out.println(e); > }> }
>
> Even though it only inserts one row, the disk footprint just keeps
> growing. It's the disk footprint of the table that's growing, though,
> not the index, so it looks like the free space in the index is reused.
Attachments
Attachments
Issue Links
- duplicates
-
DERBY-691 committed deleted row space reclamation may be missed if delete is actually an aborted insert.
- Closed
- is related to
-
DERBY-4050 Multithreaded clob update causes growth in table that does not get reclaimed
- Closed
-
DERBY-4057 Space is not reclaimed if transaction is rolled back
- Closed
-
DERBY-5356 Tracking for Derby space reclamation issues
- Open