Commit Graph

68 Commits

Author SHA1 Message Date
ligc
1c0226b313 fix for bug 2844957: wait for clisock to be available in dbc_submit
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4445 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-10-26 09:46:03 +00:00
jbjohnso
df9b3c3b16 -fix mistake in _clear_cache
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4432 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-10-21 16:31:53 +00:00
jbjohnso
cb2bef59b2 -When clearing DB handles, also clear the DB handle list
-Correctly map the database handle per 'realautocommit' (was causing xCAT to be unable to survive even one database disconnect).
-Fix problem where mapping from database handles to dependent objects was not being updated when the database handles changed (was causing xCAT to be unable to survive more than one database disconnect).
-Put in more comments so that people may understand the unusable db handle recovery code


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4401 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-10-16 18:53:28 +00:00
jbjohnso
081d90972e -Swap default to autocommit to be enabled by default and disable only
when a detected transaction is in progress (SQLite only)


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4394 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-10-15 18:32:39 +00:00
jbjohnso
a2da51211c -Have DB worker release potentially conflicting DB handles on startup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4375 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-10-13 19:40:51 +00:00
jbjohnso
4fb91472c7 -Implement emulated autocommit for SQLite backend. Mixing and matching autocommit semantics was creating a deadlock. Emulated autocomment does not guarantee rollback to go back as far as one may expect
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4374 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-10-13 19:37:41 +00:00
jbjohnso
8fe6b85410 -Fix for bug 2873054
-Request to noderange to stop actively preserving cache now also has noderange to actively drop any current cache


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4341 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-10-10 14:50:06 +00:00
jbjohnso
712cb4fb4d -In the event of a bug caught by the DB worker, propogate it up to the client rather than having the client mysteriously hang
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4267 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-09-30 17:42:21 +00:00
jbjohnso
6bc4a63848 -Implement a nodegrpch command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4262 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-09-29 20:41:13 +00:00
ligc
f38e2e552f fix for bug 2867833: wait database initialization in xcatd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4242 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-09-27 03:02:46 +00:00
linggao
420fbc718d fixed Table.pm to get the primary key info in a different way for mysql
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4227 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-09-25 13:44:48 +00:00
jbjohnso
021f0e991a -Allow schema to specify a column to treat in the same special way that we treat 'node'
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4162 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-09-17 18:27:07 +00:00
jbjohnso
d02b8d9de8 -Fix for circumstances where a single Table object lifetime spans the period before DB worker is initialized and after
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4136 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-09-15 15:33:33 +00:00
jbjohnso
8d7d768230 -This guess at the memleak was incorrect and extraneous. It did introduce a bug, so revert it (if DB worker memory usage does not start leaking, no further thought required
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4128 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-09-14 15:49:10 +00:00
jbjohnso
1570da4d20 -Workaround the known place where 2.3 can leak memory, put notes in on how
to produce the memleak for future fix instead of workaround


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4112 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-09-09 20:08:51 +00:00
jbjohnso
43473e700a -Dereference some references before undef, in an attempt to ensure the perl GC can catch more available memory
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4108 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-09-08 20:49:48 +00:00
jbjohnso
15f3af3e40 -Make the regex operator in table more picky about syntax, to make a smaller set of data to be ambiguous
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4101 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-09-04 13:38:44 +00:00
jbjohnso
507446dfe8 -Fix hang when xcatd runs in background mode with stale DB handle fix
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4096 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-09-03 18:00:47 +00:00
jbjohnso
61ee396f44 -Detect dead database handles and recover (mysql haandles expire in 8 hours by default, for example, see wait_timeout to test with mysql)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4095 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-09-03 16:33:55 +00:00
jbjohnso
298ac895e0 -Fix another scenario where cache was unintentionally living beyond it's accuracy
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4087 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-09-02 17:45:20 +00:00
jbjohnso
b2789bdede -Have cache persist a little longer to improve concurrent NodeRange expansion rather that slow it down
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4086 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-09-02 17:20:28 +00:00
linggao
fc986a252b removed the quotes for db columns that has the quotes after getting primary key info
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4064 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-08-31 19:52:33 +00:00
jbjohnso
95c0a1000d -Fix sf bug 2845378, stale cache data being returned in noderange expansions
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4057 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-08-27 19:57:41 +00:00
jbjohnso
ff8e2e21af -Increase db worker queue depth to avoid fatal table access errors
-Increase number of xCAT process slots to 512 from 16
-Increase Listen queue depth of xCAT to 8192 (needs to have proc value for somaxconn upped to actually make a difference)


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4027 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-08-22 13:18:55 +00:00
linggao
974f1dd4b2 bug fix on SQLite problem for getting column info
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4018 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-08-20 14:39:55 +00:00
linggao
15dfd3f270 added support1: newly added columns can by any data type now. support2: able to change the primary keys for a table when xcatd starts if the schema chenages
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4014 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-08-20 03:26:32 +00:00
jbjohnso
1aa8107eda -Make DB worker persist in the event of catastrophe and log the catastophre
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3994 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-08-13 14:32:22 +00:00
jbjohnso
b686ba5a10 -Move more aspects of a Table object to data worker thread, to reduce IPC communication hits
-Fix problem where data worker mode rendered cached operation useless
-Improved performance of data worker IPC communication (one benchmark went from 40 seconds to 2 seconds)


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3969 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-08-09 15:48:38 +00:00
jbjohnso
8172e9e17a -Fix CPU hogging by DB management process
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3967 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-08-07 17:04:43 +00:00
jbjohnso
aeb19d7eec -Change path to socket location of DB worker
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3961 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-08-06 12:58:14 +00:00
jbjohnso
59ad6ec44a -Change init of db worker to return pid
-Change presence of DB worker in ps output to be informative


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3960 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-08-06 12:44:22 +00:00
jbjohnso
5f8f6ae70e -Implement phase 1 of the DB worker, similar feature/performance with fewer db handles (up to two to accomodate some monitoring framework activity)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3941 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-08-04 21:10:32 +00:00
jbjohnso
d9a5adea77 -Initial changes in preparation for db worker thread
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3937 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-08-04 18:38:08 +00:00
nott
81485eced5 Temporary fix for perl INC path issue.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3927 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-08-03 13:07:29 +00:00
linggao
5c0eb55659 get table created when Table->new() is called without -create option
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3838 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-07-21 03:27:23 +00:00
jbjohnso
fd7accf225 -Remove confilicting hosts file entries
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3516 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-06-04 19:12:04 +00:00
linggao
467fa95c49 removed the extra print statement in Table.pm, xcat-Bugs-2777872
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3238 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-04-22 14:06:46 +00:00
jbjohnso
078aca4c5c -Correct typo in a SLES11 template.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3214 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-04-17 16:35:54 +00:00
linggao
37db64b1e8 fix tabrestore to handle columns that are auto increment.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2698 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-02-04 01:53:34 +00:00
linggao
7fba9cb39c added AUTO INCREMENT support for DB columns
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2657 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-01-27 17:53:44 +00:00
lissav
2aa7ab36dc more fixes to support mysql, chtab key=test site -d gives error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2615 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-01-15 17:47:54 +00:00
jbjohnso
e5c3267933 -Prevent sqlite databases from being accessible by non-root users
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2609 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-01-15 15:04:05 +00:00
lissav
3a7ae3f20e fix usage of getAllEntries, adding a flag for all and default only entries that are not disabled
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2605 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-01-14 19:57:39 +00:00
linggao
f69ee3624e minor fix for plugable schema
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2603 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-01-14 19:03:37 +00:00
linggao
dd9da780a0 added support for user plugable database table. Phase 2
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2595 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-01-12 22:12:25 +00:00
jbjohnso
fda20c3ade -Fix problem where explicit nulls were presented subtly differently from implicit nulls
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2585 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-01-08 21:01:36 +00:00
lissav
2986895ee0 fix another place needs quotes for mysql
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2255 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-09-29 12:51:13 +00:00
lissav
5a590d9762 fix handling of tables that have a reserved word as an attribute ( non- key attribute) as in the prodkey table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2233 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-09-26 12:32:23 +00:00
jbjohnso
09c9b1110f -Revert expression modification to Table for now
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2151 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-09-12 13:47:09 +00:00
jbjohnso
98aa5626fd Correct the scope of ''
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2139 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-09-11 01:57:01 +00:00