Mukund Sivaraman
e77ef46d0c
[2268] Use loadZoneData() inside InMemoryClient
2012-10-12 09:51:30 +05:30
Mukund Sivaraman
97a6125c53
[2268] Implement loadZoneData() functions
2012-10-12 09:36:51 +05:30
Mukund Sivaraman
2150123bd6
[2268] Move ZoneDataLoader to a separate file
2012-10-12 09:10:38 +05:30
Mukund Sivaraman
6bceaa250b
[2268] Rename load method to loadInternal()
2012-10-12 09:10:15 +05:30
Mukund Sivaraman
65c54c90ed
[2268] Add a comment about InMemoryClient construction after setThrowCount()
2012-10-12 08:48:14 +05:30
Mukund Sivaraman
c1ce5449aa
[2268] Add any attached RRSIGs when loading from an iterator
...
For example, the MemoryIterator returns TreeNodeRRsets which may have
attached RRSIGs.
This also fixes the failing unittest
MemoryClientTest.loadRRSIGsRdataMixedCoveredTypes.
2012-10-12 08:21:56 +05:30
JINMEI Tatuya
2768eb3551
[1858] cleanup: reorder log messages
2012-10-11 15:41:36 -07:00
JINMEI Tatuya
9c655172a2
[1858] stop sending hopeless signal when it once fails with EPERM.
2012-10-11 15:39:53 -07:00
JINMEI Tatuya
1e0c106c45
[1858] added a test case where killing child process results in exception.
2012-10-11 15:05:01 -07:00
JINMEI Tatuya
9e11459509
[1858] rename terminate_children() kill_... for consistency
2012-10-11 14:49:33 -07:00
JINMEI Tatuya
9dac9afb25
[1858] cleanup: removed unnecessary list() conversion from dict values.
...
dict.values() is an iterable, so we can use it directly in the for statement.
(and we don't modify components within the loop).
2012-10-11 14:42:48 -07:00
JINMEI Tatuya
c9de286421
[1858] refactoring: unify the SIGTERM/KILL cases into a single helper method.
2012-10-11 14:41:47 -07:00
JINMEI Tatuya
92f2cc5147
[1858] explicitly set close_fds to True in sockcreator's Popen().
2012-10-11 14:03:58 -07:00
Michal 'vorner' Vaner
c64356e9fd
[2207] Add missing test file
...
Someone O:-) forgot to add it in the ^^ commit.
2012-10-11 19:54:07 +02:00
Michal 'vorner' Vaner
e5ad36f38f
[2207] Implementation of the zone updater
...
The interface was slightly updated, to suit the needs (added some more
parameters). Some of it might be wrong, but I'm not sure about it.
2012-10-11 19:52:12 +02:00
JINMEI Tatuya
f97ecbe97b
[master] add changelog entry for #2340
2012-10-11 10:42:39 -07:00
JINMEI Tatuya
e78384f8c6
Merge branch 'trac2340' of ssh://git.bind10.isc.org/var/bind10/git/bind10 into trac2340
...
with fixing Conflicts:
2012-10-11 10:35:09 -07:00
JINMEI Tatuya
bc03b9cc89
Merge branch 'master' into trac2340
...
with fixing conflicts in
ChangeLog
examples/README
2012-10-11 10:22:29 -07:00
Michal 'vorner' Vaner
e70da63e4a
[2207] Tests for the zone updater
...
Doesn't compile, there's no (not even empty) implementation of many
methods of the updater.
2012-10-11 19:08:56 +02:00
JINMEI Tatuya
55be177fc4
[2340] removed a bogus 'test' within a test(1) expression.
2012-10-11 10:04:42 -07:00
JINMEI Tatuya
16823263f5
[master] changelog for #2339
2012-10-11 10:04:42 -07:00
JINMEI Tatuya
ecdf1aeb4b
[2339] changed the search order of python executable: seek python3.x first.
...
this works around a bit awkward installation setup where there's a link
from "python3" to "python3.x" but not from "python3-config" to the
corresponding "python3.x-config". That happens for recent versions of
Homebrew.
2012-10-11 10:04:42 -07:00
Michal 'vorner' Vaner
b6501267d7
Compilation fix: usual static_cast<X*>(NULL)
...
Sunstudio is unhappy with plain NULL inside EXPECT_EQ and thinks it is
int. This makes it think otherwise.
2012-10-11 10:04:41 -07:00
Michal 'vorner' Vaner
47cfab4fa9
Remove extra comma at the end of enum
...
This should fix compilation issue on sunstudio.
2012-10-11 10:04:41 -07:00
JINMEI Tatuya
bd7ef43a90
[master] added changelog for #2244
2012-10-11 10:04:41 -07:00
JINMEI Tatuya
aea67d4949
[master] a minor grammar fix to changelog entry.
2012-10-11 10:04:41 -07:00
JINMEI Tatuya
52ba8a9314
[2244] missing update: Component.running() was renamed is_running().
2012-10-11 10:04:41 -07:00
JINMEI Tatuya
ed72f2bf21
[2244] renamed BaseComponent.is_failed() to is_restarting().
...
so it sounds more natural as an English term.
2012-10-11 10:04:40 -07:00
JINMEI Tatuya
ff2fabced6
[2244] fixed a typo in a log message.
2012-10-11 10:04:40 -07:00
JINMEI Tatuya
dda8b3fa72
[2244] rename Componet.running() is_running() for consistency.
...
this branch introduced is_failed() (and failed() was already defined for
a different a purpose), so for consistency it would be better to name
the running version is_xxx too.
2012-10-11 10:04:40 -07:00
JINMEI Tatuya
35bdd068cf
[2244] cleanup: reordered log message file
2012-10-11 10:04:40 -07:00
JINMEI Tatuya
1645116db4
[2244] make sure restarting components only when they are in config.
...
this should fix the main problem of this ticket.
2012-10-11 10:04:40 -07:00
JINMEI Tatuya
6207e0ccf7
[2244] a minor editorial fix to the previous comment update
2012-10-11 10:04:39 -07:00
JINMEI Tatuya
e3079eb5ce
[2244] added comment about has_comonent as it may not be very obvious.
2012-10-11 10:04:39 -07:00
JINMEI Tatuya
5097c34950
[2244] added a simple has_component() method to configurtor.
...
should be pretty trivial, so added a couple of test cases as part of
other tests.
2012-10-11 10:04:39 -07:00
JINMEI Tatuya
9f77979fd6
[2244] make sure configurtor's build_plan() handles 'failed' component.
...
this fixes the test case introduced at the beginning of the branch.
2012-10-11 10:04:39 -07:00
JINMEI Tatuya
a969883cd4
[2244] introduced a new "Failed" state of Component.
2012-10-11 10:04:39 -07:00
JINMEI Tatuya
214377d851
[2244] added a test case that reproduces one aspect of the problem.
...
the configurator should be able to delete a component to be removed
even if the it's failing (unexpectedly). The current implementation
doesn't handle that condition correctly.
2012-10-11 10:04:38 -07:00
JINMEI Tatuya
c76f74659b
[2204] removed an obsolete comment that only made sense for the previous code.
2012-10-11 10:04:38 -07:00
JINMEI Tatuya
64bcd98477
[2204] added notes about future extensions of incremental datasrc config update
2012-10-11 10:04:38 -07:00
JINMEI Tatuya
0fc7d94b29
[2204] grammar fix in documentation
2012-10-11 10:04:38 -07:00
JINMEI Tatuya
5703d87a9e
[2204] updated test comments without using "rollback".
...
as the new code actually doesn't do rollback operation internally,
even though the observable effect is the same.
2012-10-11 10:04:38 -07:00
JINMEI Tatuya
4d27a4533c
[2204] updated comments about releasing old data source client lists
...
the previous one was not really accurate and was confusing.
2012-10-11 10:04:37 -07:00
JINMEI Tatuya
a6cafe644f
[2204] cleanup: removed unused func, and renamed "ClientList" with "DataSrc".
...
getClientListClasses() was removed. It's not used anymore.
a few methods named with "ClientList" were renamed with adding "DataSrc".
The resulting names are a bit long, but since there's no namespace
qualification, simply saying "client" can be confusing (it could be
interpreted to mean DNS clients, for example).
2012-10-11 10:04:37 -07:00
JINMEI Tatuya
52272e7986
[2204] regression fix: make sure the datasrc config is installed to server.
2012-10-11 10:04:37 -07:00
JINMEI Tatuya
ed2aceb01d
[2204] removed server function/template param from configureDataSourceGeneric.
...
This is pure cleanup. This function already doesn't use the server.
2012-10-11 10:04:37 -07:00
JINMEI Tatuya
b15be74974
[2204] extracted swapDataSrcClientLists() from configureDataSource().
...
now configureDataSource() can take time.
2012-10-11 10:04:37 -07:00
JINMEI Tatuya
d7e42bb0c4
[2204] completely replaced setClientList with swapDataSrcClientLists.
...
the test cases using setClientList were updated so they use
swapDataSrcClientLists (some of them work as a test for the "swap" itself).
now we don't need setClientList, so it was removed.
2012-10-11 10:04:36 -07:00
JINMEI Tatuya
919fe74ccb
[2204] simplify configureDataSource by always creating a new lists and swap.
...
so we don't have to worry about what are in the current lists or rollback
operations.
swapDataSrcClientLists() is newly introduced for AuthSrv. No direc tests
yet (technically bad in terms TDD but the definition is very simple), which
will be provided in the next step.
the lock is now moved inside swapDataSrcClientLists().
note: even though this version builds everything, the amount of work
should be mostly the same because the only save is to create the empty
ClientList when the new and old have the same class of client. The expensive
part is ClientList::configure(). This version doesn't need any more call
to configure() than the old version.
2012-10-11 10:04:36 -07:00
JINMEI Tatuya
f44918fd6c
[2204] changed internal representation of auth_srv's "client_lists_" to ptrs.
...
this will be necessary later in this branch.
also renamed the member variable "datasrc_client_lists_" as the mere "client"
can be ambiguous.
2012-10-11 10:04:36 -07:00