Opened 18 years ago

Closed 18 years ago

Last modified 17 years ago

#142 closed defect (released)

windows tcp-server shared db among threads

Reported by: Mark Hammond Owned by: Olly Betts
Priority: normal Milestone: 1.0.0
Component: Backend-Remote Version: SVN trunk
Severity: normal Keywords:
Cc: Richard Boulton, Sidnei da Silva Blocked By:
Blocking: #118 Operating System: Microsoft Windows

Description (last modified by Richard Boulton)

From Richard on xapian-devel:

I'm not sure what happens for the windows variant of the server (which is a threaded implementation), but I imagine that there the same instance of the database is accessed by each connection: if this is correct, there are likely to be other problems since the database is not safe for concurrent access. A threaded implementation needs to create a new instance of the database for each thread.

Change History (6)

comment:1 by Richard Boulton, 18 years ago

Blocking: 118 added
Cc: richard@… added

I think that this bug, if indeed it is as I imagine, will cause undefined behaviour due to race conditions under load on windows, and should therefore be fixed for 1.0.0. Setting to block #118.

comment:2 by Olly Betts, 18 years ago

Blocked By: 141 added
Status: newassigned

Fixing the first part of bug 141 fixes this too AIUI (and we have a first cut of a patch for that attached to bug 141).

comment:3 by Olly Betts, 18 years ago

Resolution: fixed
Status: assignedclosed

Fixed in SVN HEAD.

comment:4 by Richard Boulton, 18 years ago

Blocked By: 141 removed

comment:5 by Olly Betts, 18 years ago

Operating System: Microsoft Windows
Resolution: fixedreleased

Fixed in 1.0.0 release.

comment:7 by Richard Boulton, 17 years ago

Description: modified (diff)
Milestone: 1.0.0
Note: See TracTickets for help on using tickets.