BIND 10 #326: Race condition in first startup (when database file does not exist)
BIND 10 Development
do-not-reply at isc.org
Thu Jul 14 15:34:26 UTC 2011
#326: Race condition in first startup (when database file does not exist)
-------------------------------------+-------------------------------------
Reporter: jelte | Owner:
Type: | Status: reopened
defect | Milestone:
Priority: major | Resolution:
Component: data | Sensitive: 0
source | Sub-Project: DNS
Keywords: | Estimated Difficulty: 0.0
Defect Severity: | Total Hours: 0
Medium |
Feature Depending on Ticket: |
Add Hours to Ticket: 0 |
Internal?: 0 |
-------------------------------------+-------------------------------------
Comment (by shane):
Here's a full trace:
{{{
Traceback (most recent call last):
File "/opt/bind10/lib/python3.2/site-
packages/isc/datasrc/sqlite3_ds.py", line 81, in open
cur.execute("SELECT version FROM schema_version")
sqlite3.OperationalError: no such table: schema_version
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/bind10/libexec/bind10-devel/b10-xfrout", line 682, in
<module>
xfrout_server = XfroutServer()
File "/opt/bind10/libexec/bind10-devel/b10-xfrout", line 577, in
__init__
self._start_notifier()
File "/opt/bind10/libexec/bind10-devel/b10-xfrout", line 589, in
_start_notifier
self._notifier = notify_out.NotifyOut(datasrc)
File "/opt/bind10/lib/python3.2/site-packages/isc/notify/notify_out.py",
line 120, in __init__
self._init_notify_out(datasrc_file)
File "/opt/bind10/lib/python3.2/site-packages/isc/notify/notify_out.py",
line 132, in _init_notify_out
for zone_name, zone_class in sqlite3_ds.get_zones_info(datasrc_file):
File "/opt/bind10/lib/python3.2/site-
packages/isc/datasrc/sqlite3_ds.py", line 160, in get_zones_info
conn, cur = open(dbfile)
File "/opt/bind10/lib/python3.2/site-
packages/isc/datasrc/sqlite3_ds.py", line 84, in open
create(cur)
File "/opt/bind10/lib/python3.2/site-
packages/isc/datasrc/sqlite3_ds.py", line 36, in create
cur.execute("CREATE TABLE schema_version (version INTEGER NOT NULL)")
sqlite3.OperationalError: table schema_version already exists
}}}
--
Ticket URL: <http://bind10.isc.org/ticket/326#comment:3>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list