neoppod:02763c9aa5f3efcac2af3e6bbadcca74590289e9 commitshttps://lab.nexedi.com/nexedi/neoppod/-/commits/02763c9aa5f3efcac2af3e6bbadcca74590289e92012-01-06T18:06:22+01:00https://lab.nexedi.com/nexedi/neoppod/-/commit/02763c9aa5f3efcac2af3e6bbadcca74590289e9Fix handling of error packets2012-01-06T18:06:22+01:00Julien Muchembledjm@nexedi.com
This fixes a regression in commit <a href="/nexedi/neoppod/-/commit/4720ba3319831190ad9ebf2a6283496e092f4370" data-original="4720ba3319831190ad9ebf2a6283496e092f4370" data-link="false" data-link-reference="false" data-project="72" data-commit="4720ba3319831190ad9ebf2a6283496e092f4370" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="Extend Connection.ask so that private data can be forwarded to response handler" class="gfm gfm-commit has-tooltip">4720ba33</a>.https://lab.nexedi.com/nexedi/neoppod/-/commit/d62476dd151a4b708451846002207f353f365bafMake setDown() consistent with update() with a down node.2012-01-06T18:03:46+01:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/8ae3f0eaca03d73360ce471f503dbccf19d8aa6eAutomate startup when all storage nodes of UP_TO_DATE cells are available.2012-01-06T17:45:22+01:00Vincent Pelletiervincent@nexedi.com
Inspired from "mdadm assemble --no-degraded" behaviour, which was brought
up during a discussion on linux-raid mailing list about split-brain
situation detection and avoidance.https://lab.nexedi.com/nexedi/neoppod/-/commit/2d35ac93e4fc3ba14cae2293bce060c186f1fe95Stop using assertions for actual runtime checks.2012-01-06T17:45:22+01:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/c93a786f5f4240e5cab7364e22187b243b4f5ac6Hack to allow restarting twice a cluster in functional tests2012-01-06T17:44:22+01:00Julien Muchembledjm@nexedi.com
PortAllocator is broken by design and the only proper solution to run a NEO
functional test without race condition with another software opening a random
port is to use ... unix sockets.https://lab.nexedi.com/nexedi/neoppod/-/commit/4720ba3319831190ad9ebf2a6283496e092f4370Extend Connection.ask so that private data can be forwarded to response handler2012-01-06T16:40:49+01:00Julien Muchembledjm@nexedi.com
Keyword arguments are kept internally by the handler switcher, which passes
them to the handler when the peer answers.
This will be required by new replicator, so that 'setUnfinishedTIDList'
receives the list of outdated partitions at the time the
'AskUnfinishedTransactions' packet was sent.https://lab.nexedi.com/nexedi/neoppod/-/commit/c810920ce9215e8d62dfcc219c3977159a283e65Fix reset of handler switchers2012-01-06T15:47:14+01:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/13a64cfea559c00308903c5186bc60aeb8f99df4Simplify definition of packets by computing automatically their codes2012-01-06T14:24:44+01:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/10a53cf7a33ec05153b8e06b92f82462745a8c42No need to actually start cluster when there are only masters.2012-01-05T14:13:45+01:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/749706bb2ec9c6a16f12f7856f5e12fbfdab3330Do not hide protocol errors in neoctl.2012-01-05T11:55:01+01:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/597435bff72b9eaf205f786f3fca95d21dd3597bRemove inappropriate XXX.2012-01-05T11:55:01+01:00Vincent Pelletiervincent@nexedi.com
This comment just described the whole purpose of the code, so there is no
XXX there.https://lab.nexedi.com/nexedi/neoppod/-/commit/616328a6954375aee93336ddc1ce537d94a24886Simplify code.2012-01-05T11:55:01+01:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/8dcb5e9b54c12cd6edc84df7614b805285bc9194Avoid error-over-error in test.2012-01-05T11:55:01+01:00Vincent Pelletiervincent@nexedi.com
If start() fails here, it fail in the next test too (and any test until
stop gets called).https://lab.nexedi.com/nexedi/neoppod/-/commit/1dcb885c0fa20621a8e2918ca2e13771c14b71baMake setLastOID consistent with setLastTID.2012-01-03T17:48:23+01:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/3dc40dc692deef65b5e443a06c62c9ac02bd5a1dFactorise code.2012-01-03T17:48:23+01:00Vincent Pelletiervincent@nexedi.com
For easier understanding of answerLastIDs' final else block.https://lab.nexedi.com/nexedi/neoppod/-/commit/142ad156687941094d62d6506f90c8714cd94db5Don't wait for unreachable nodes in election.2012-01-03T17:32:41+01:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/b112366775f2fef848e0c7fecf754f422f3fa8fcGet rid of a "while True".2012-01-03T17:32:41+01:00Vincent Pelletiervincent@nexedi.com
Condition is true from the first iteration, as we just filled
unconnected_master_node_set.https://lab.nexedi.com/nexedi/neoppod/-/commit/96827f57f0fd6d41ac6c38dd39a54f3723d73bc1Merge called-once methods into their caller.2012-01-03T17:32:35+01:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/caeac356247b7ffd66d714adcff3a8a340ad18dbDon't test what was just manually set.2012-01-03T17:29:02+01:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/2385a566f4eb5225b20c51a6db4469e70f9d8411Don't use '/' to separate master addresses.2012-01-03T16:38:39+01:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/5d7dc240482a5ae88aa17d2ed18dae798b167286Use super() to walk up class hierarchy.2012-01-03T15:51:00+01:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/893870890d6547e673c1aa84a4fcd2314a11a0f5Ignore empty nodes.2012-01-03T15:51:00+01:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/99d58abda39e6af2cb82678cb4a2318a8f85081dWord-wrap.2012-01-03T15:51:00+01:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/63aa18aa9e4be251cd3fe5005d65721b9caa00a1Drop support for deprecated '/' separator.2012-01-03T12:03:59+01:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/9cf8379c251f44e876fac22c7ba795fc3f79ec4aReorder condition for simpler code.2012-01-03T11:41:45+01:00Vincent Pelletiervincent@nexedi.com
Also, fix stupid error in error handling path.https://lab.nexedi.com/nexedi/neoppod/-/commit/92c0c67321896264fe226ec4a1d32ade4b179864Use None to mean "not set".2012-01-03T11:20:01+01:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/a811c865dbebbe19550c607a8e7d941e690fb728No need to cast to tuple before returning.2012-01-03T11:20:01+01:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/dfe6d4e5a76f6b3a550c4a2c6b7a780135894075Disallow creating the same node multiple times.2012-01-02T16:37:28+01:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/a57e35d2c2940ca5f927542f3ec6dfe011a5bc26Add sanity check when indexing a node by uuid and address in node manager.2012-01-02T16:37:28+01:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/8552935dbfac1169c8974c24c9572fdbf356b07fUse consistent port/node relationship in tests.2012-01-02T16:37:28+01:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/62f142d389904f90e487a559507f7bdb3d2b4177_cache parameter doesn't exist anymore, so update docstring.2012-01-02T15:36:40+01:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/ddebcc9bb389909ea767de5d7537074b511f2883Clear aborted flag when closing a connection.2011-12-20T15:15:07+01:00Vincent Pelletiervincent@nexedi.com
Fixes a crash when a node aborts a connection and then detecting it as
closed: it would attempt to unregister from event manager twice.https://lab.nexedi.com/nexedi/neoppod/-/commit/a1c75b7ca8aadc91e1fe2afd18e2de0c362ffef6Uniformise checks among test_Connection_writable methods.2011-12-20T12:05:44+01:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/c6b73bcb9cb8517fe2ca616e550153971146019aAssorted comment cleanup.2011-12-20T12:05:03+01:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/91c013beed1540167330c6d33c3883982d4fabf3Reuse dedicated method.2011-12-20T11:55:54+01:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/59e7aafb314acd383c0b32175cbc12def773f768Create masters as we are notified of their existence.2011-12-20T11:29:20+01:00Vincent Pelletiervincent@nexedi.com
This increases cluster on-line flexibility, allowing new masters to be
added without needing a restart of all masters.
Downside is that more responsibility is pushed to cluster admins: they must
update node configurations so they contain enough master nodes to allow
them to join cluster after a restart.https://lab.nexedi.com/nexedi/neoppod/-/commit/a0ad2b8649b30a294e17bf9383cf406b28f55e4eMake threaded test suite executable as a stand-alone module.2011-12-20T11:28:00+01:00Vincent Pelletiervincent@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/5b91bcef44a2e2d194258308efa0fbffeb0e7da7Merge "tests: fix LoggerThreadName class for recent Python"2011-12-20T11:24:08+01:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/dbcc333d99a40c9a2ee12746a3442e7c09060761Merge "tests: fix LoggerThreadName class for recent Python"2011-12-20T11:23:57+01:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/nexedi/neoppod/-/commit/59b83c0453d0707bc4295ce31041c10cb395a80ftests: fix LoggerThreadName class for recent Python2011-12-20T11:22:03+01:00Julien Muchembledjm@nexedi.com
See <a href="http://bugs.python.org/issue13361" rel="nofollow noreferrer noopener" target="_blank">http://bugs.python.org/issue13361</a> ("getLogger does not check its argument").