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

Drop table does not return "object in use" message when using 2 connections and classic/embedded mode [CORE1032] #1449

Open
firebird-automations opened this issue Nov 30, 2006 · 6 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Bill Oliver (verbguy)

Relate to CORE6382

Votes: 1

2 connections in ISQL. The first connection creates a table and inserts a record. The 2nd attemps to drop the table. The 2nd user hangs.

The "hang" occurs only in Classic or Embedded mode. This was found in testing Vulcan embedded. In other locking modes, the 2nd user gets "OBJECT IN USE" message, much better.

Here it is expressed w ISQL:

TX1> create database 't3.fdb';
TX2> connect 't3.fdb';
TX1> create table t (I integer);
TX1> insert into t values (3);
TX1> commit;
TX2> commit;
TX1> insert into t values (4);
TX2> drop table t; <HANG>

Dmitry confirmed this issue and said:

You create/attach the database using local connection string, so the FB server handles both connections via XNET, i.e. superserver with a shared cache is in game. In debugger, I see that relation->useCount == 2, so the LCK call just doesn't happen, hence no delay/hang. And I see the same for Vulcan, if it's used in the server mode (via localhost).

However, your test case involves the Vulcan embedded mode by default, causing two processes to share a database file through the lock manager. This is equal to FB classic server mode. And I see exactly the same behaviour if running your test case against fb_inet_server. So, in fact, this is not a regression in Vulcan, but some issue inherited from the Borland times.

While I agree it's worth fixing, I'm not ready to assign it a high priority at the moment, sorry.

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Dmitry Yemanov [ dimitr ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 11366 ] => Firebird [ 15372 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Fix Version: 3.0 Alpha 1 [ 10331 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Fix Version: 3.0 Beta 1 [ 10332 ]

Fix Version: 3.0 Alpha 1 [ 10331 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Fix Version: 3.0 Beta 1 [ 10332 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: Sean Leyne (seanleyne)

Link: This issue relate to CORE6382 [ CORE6382 ]

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