New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression: Can not create large index [CORE5271] #5549
Comments
Modified by: @aafemtassignee: Dimitry Sibiryakov [ aafemt ] |
Modified by: @aafemtstatus: Open [ 1 ] => Resolved [ 5 ] resolution: Fixed [ 1 ] Fix Version: 4.0 Alpha 1 [ 10731 ] |
Modified by: @pavel-zotovstatus: Resolved [ 5 ] => Resolved [ 5 ] QA Status: No test => Done successfully |
Modified by: @pavel-zotovstatus: Resolved [ 5 ] => Closed [ 6 ] |
Commented by: @aafemt In test suite already enough tests for external sort. Adding another one is just a waste of time. |
Commented by: @pavel-zotov On my PC with CPU 3.0 GHz running this test on 4.0.0.262 takes 4.6 ... 4.8 second. |
Commented by: @aafemt On my notebook even with databases on RAM disk running of all tests takes 9 hours with debug version of Firebird. |
Commented by: @pavel-zotov core_2966.fbt was EXCLUDED from batch scenario - you can easy to verify this by looking in http://web.firebirdsql.org/download/prerelease/results/ (for every FB version: 2.5, 3.0 & 4.0) |
Commented by: @aafemt I don't know what batch you run, fbt_run witout further limitations shows different results: http://www.ibphoenix.com/~dsibiryakov/analyze/ |
Commented by: @pavel-zotov On my PC I don't use batch at all. |
Submitted by: @sim1984
Assigned to: @aafemt
set names utf8;
create database 'localhost/3054:test'
user SYSDBA password 'masterkey'
page_size 8192
default character set utf8;
create table t1(
id int not null,
a int
);
commit;
set term !;
execute block
as
declare i int = 0;
begin
while (i < 4000000) do
begin
insert into t1(id) values(:i);
i = i + 1;
end
end!
set term ;!
commit;
alter table t1 add constraint pk_t1 primary key (id);
Unsuccessful execution caused by system error that does not preclude successful execution of subsequent statements.
sort error.
No free space found in temporary directories.
operating system directive CreateFile failed.
Синтаксическая ошибка в имени файла, имени папки или метке тома. .
Empirically found that this error does not occur when you create any index, but only when sorting requires more memory than TempCacheLimit. For example here is a script runs without errors.
create table t2(
id int not null,
a int
);
commit;
set term !;
execute block
as
declare i int = 0;
begin
while (i < 40000) do -- much smaller number of keys
begin
insert into t2(id) values(:i);
i = i + 1;
end
end!
set term ;!
commit;
alter table t2 add constraint pk_t2 primary key (id);
commit;
Commits: 739b993 8830bfb
The text was updated successfully, but these errors were encountered: