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

Sweep could raise error : page 0 is of wrong type (expected 6, found 1) [CORE2879] #3263

Closed
firebird-issue-importer opened this issue Feb 22, 2010 · 6 comments

Comments

@firebird-issue-importer

Submitted by: @hvlad

When GLOBAL TEMPORARY TABLE's is re-created and sweep run at the same time wrong page type error may occurs.
To reproduce run following statement

execute block returns (sql varchar(255))
as
declare n int;
declare i int;
declare s varchar(256);
begin
n = 0;
while (n < 20) do
begin
i = 1;
while (i < 10) do
begin
s = 'tmp' || :i;
sql = 'create global temporary table ' || :s || ' (id int);';
execute statement sql with autonomous transaction;
suspend;

  sql = 'drop table ' \|\| :s \|\| ';';
  execute statement sql with autonomous transaction;
  suspend;

  i = i \+ 1;
end
n = n \+ 1;

end
end

and run gfix -sweep while statement above is executed.

Commits: 521f7a5 12019b8 d940b8c

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Feb 22, 2010

Modified by: @hvlad

assignee: Vlad Khorsun [ hvlad ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Feb 22, 2010

Commented by: @hvlad

I unable to reproduce it at 2.1.4 but backported it anyway

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Feb 22, 2010

Modified by: @hvlad

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

resolution: Fixed [ 1 ]

Fix Version: 2.5 RC3 [ 10381 ]

Fix Version: 2.1.4 [ 10361 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Feb 4, 2011

Modified by: @pcisar

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

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 18, 2016

Modified by: @pavel-zotov

QA Status: No test

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jul 31, 2016

Modified by: @pavel-zotov

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

QA Status: No test => Done successfully

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