Issue Details (XML | Word | Printable)

Key: DERBY-101
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Suresh Thalamati
Reporter: Suresh Thalamati
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby

Limit on Number of log that can be created should be increased (current limit is 4194303)

Created: 10/Dec/04 12:19 AM   Updated: 07/Jun/05 08:55 AM
Return to search
Component/s: Store
Affects Version/s: None
Fix Version/s: 10.1.1.0

Time Tracking:
Not Specified

Resolution Date: 28/May/05 08:55 AM


 Description  « Hide
Number of log files that can be generated on derby is limited to 2^22 -1 (4194303). Once this linit is reached the insert/delete/update and reovery
may not work. I belive this limit could be hit in a very active system that does lot of inserts and deletes.

Just a approximate calculation how this limit could be hit:
If we assume every 1 minute a 1MB (default log file size)log data is generated on a Derby database. It will take just 291 days to hit the limit.

419403 / (60 * 24) = ~291 days.

291 days limit seems to be something a system that does lot of inserts/deletes can possibly hit.

It might be good idea to bump this limit to 2^32 -1 (4294967295).
By following the above assumption of 1M log data per minute with this
linit it will take 8171.55 years:
4294967295 / (60 * 24) = 2982616.17 days (8171.55 years)
I guess this is a resonable limit!!
---

One workaround for this problem is to change the log file size to 10 MB or more, that will reduce the chance of hittig this limit.

Please refer to derby-96 before fixing this issue, LSN format might get changed as part of derby-96 fixes.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Suresh Thalamati added a comment - 28/May/05 08:55 AM
chages: r170686, 178486:
178486: This fix increases the maximum possible log file number to 2^31 -1 and keeps the old limit of 2^22-1 on soft upgrade.

170686: This patch was attempt to increase the max log file number to 2^33 -1 , but that fix created up grade problems because of the additional bits that are used from the file position field, so the limit was reduced to
231-1 by r178486.

Suresh Thalamati made changes - 28/May/05 08:55 AM
Field Original Value New Value
Resolution Fixed [ 1 ]
Fix Version/s 10.1.0.0 [ 10993 ]
Status Open [ 1 ] Resolved [ 5 ]
Suresh Thalamati made changes - 07/Jun/05 08:55 AM
Status Resolved [ 5 ] Closed [ 6 ]