Skip to content
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

Closed
firebird-automations opened this issue Jun 11, 2016 · 10 comments
Closed

Regression: Can not create large index [CORE5271] #5549

firebird-automations opened this issue Jun 11, 2016 · 10 comments

Comments

@firebird-automations
Copy link
Collaborator

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

@firebird-automations
Copy link
Collaborator Author

Modified by: @aafemt

assignee: Dimitry Sibiryakov [ aafemt ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @aafemt

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 4.0 Alpha 1 [ 10731 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

QA Status: No test => Done successfully

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @aafemt

In test suite already enough tests for external sort. Adding another one is just a waste of time.

@firebird-automations
Copy link
Collaborator Author

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.
It's no problem to remove this test from the suite but we must know what's number of another test which does exactly the same.

@firebird-automations
Copy link
Collaborator Author

Commented by: @aafemt

On my notebook even with databases on RAM disk running of all tests takes 9 hours with debug version of Firebird.
bugs.core_2966 surely causes external sort. Some other tests run trace or create external tables and UDF, which also was broken by this regression.

@firebird-automations
Copy link
Collaborator Author

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)

@firebird-automations
Copy link
Collaborator Author

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/

@firebird-automations
Copy link
Collaborator Author

Commented by: @pavel-zotov

On my PC I don't use batch at all.
I speak about batch that is launched by scheduler on FB "Test Host" (where nightly FB snapshots build also is done).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant