[SCM] CTDB repository - branch 1.2-readonly-delegations-test created - ctdb-1.9.1-469-g92ad3a8

Ronnie Sahlberg sahlberg at samba.org
Tue Jul 19 23:57:06 MDT 2011


The branch, 1.2-readonly-delegations-test has been created
        at  92ad3a8265c44e504aee0b44990ff873e5e05c53 (commit)

- Log -----------------------------------------------------------------
commit 92ad3a8265c44e504aee0b44990ff873e5e05c53
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Jul 20 15:47:15 2011 +1000

    ReadOnly: Add a test tool that requests a readonly delegation in a loop

commit 9ea30180a05c2d334a5a8318c477d0d8f52baf2f
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Jul 20 15:43:55 2011 +1000

    ReadOnly: Add a test tool to fetch a record, requesting a readonly delegation and lock the record once

commit 92ddec744900139a1df00d568c57c21553d6572e
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Jul 20 15:37:37 2011 +1000

    ReadOnly: Add clientside code to fetch readonly records

commit d8f6474bf1140be97c858399cdac103210a4e346
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Jul 20 15:31:44 2011 +1000

    ReadOnly: Add a ctdb_ltdb_fetch_readonly() helper function

commit c8155e7a99c4f93866994e488117fe5931e9a647
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Jul 20 15:17:29 2011 +1000

    ReadOnly: Add handlign of readonly requests readwrite requests, delegations and revoking of delegation to the processing loop for CALL requests coming in from a local client via domain socket

commit 77d2514d9710231d9411b518d7592389f918785c
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Jul 20 15:13:47 2011 +1000

    ReadOnly: Add processing for ReadOnly delegation requests and revoke requests to the processing loop for CALL packets we receive from different nodes.
    
    This implements the ReadOnly and ReadWrite request processing, delegation and revoking of delegations for all requests coming in across the network from a remote node.

commit 176aa1f77bd856b7376ae7a395ddb87ff200c4e6
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Jul 20 14:25:29 2011 +1000

    ReadOnly: Once recovery has finished, make sure to free all revoke child processes and trigger the destructors for all deferred calls to re-queue the original packets to the input packet processing function

commit 651e2a08f4814162e4d1c71fa5db40580629001d
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Jul 20 14:23:05 2011 +1000

    ReadOnly: When releasing all deferred calls that blocked during revoke of all previous delegations, add a 1 second grace/delay for any new readonly delegation requests so that the read-write fetch-lock porcess has a chance to make progress

commit dd0643cf5885601ebdc6a8724132ef98eced5d64
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Jul 20 14:21:04 2011 +1000

    ReadOnly: Add a new flag to call request packet to indicate that the client wants a readonly delegation

commit f41a11fcde1c1f7552f0e8d301f7fe2cb849404d
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Jul 20 14:18:43 2011 +1000

    ReadOnly: Add a function to start a revoke of all delegations for a record.
    This triggers a child process to be created to perform the actual potentially blocking calls that are required.

commit 0a5fbb12d014411bcfaf82b38082a5ff13aa4087
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Jul 20 13:49:17 2011 +1000

    ReadOnly: Add functions to register CALLs to a context used to handle deferal of processing of CALL commands.
    Once the contexts are freed, the deferred calls are re-issued to the input packet processing functions again.
    This is needed when/if a CALL can not currently be processed by the main engine due to the record being locked down for revoking of all delegations.
    
    The data is passed through several layers of callbacks, and finally a timed event callback to ensure that the processing of the packet will be restarted again at the topmost eventloop, avoinding event loop nesting.

commit e20107fd48b498e4bda44d78a37a6b844790c11c
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Jul 20 13:30:12 2011 +1000

    ReadOnly: Add an extra flag to ctdb_call_local to specify whether we want to write the record and header back to the tdb (for example we do when performing dmaster migrations)

commit 798342706c5466899d6e49c31adf6aadf6b4f24a
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Jul 20 13:20:32 2011 +1000

    ReadOnly: After recovering all databases, make sure to clear out the tracking database used to track delegations and revoke. This is because the recovery will implicitely result in a revoke of all delegations.

commit 50c05af1ccb17231370b1c2bf06f4d511ed04b2f
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Jul 20 13:15:48 2011 +1000

    ReadOnly: Add "readonly" flag to the ctdb_db_context to indicate if this database supports readonly operations or not. Add a private lock-less tdb file to the ctdb_db_context to use for tracking delegarions for records
    
    Assume all databases will support readonly mode for now and se thte flag for all databases. At later stage we will add support to control on a per database level whether delegations will be supported or not.

commit 50eefc4e6bbc865babfdf3d70895c9ad03b674c3
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Jul 20 13:08:21 2011 +1000

    ReadOnly: After performing a recovery, clear out all flags related to readonly delegations and revoke

commit 1d120a87bd1ebfa9fcbd1e2d1880eac1e0959b91
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Jul 20 12:30:33 2011 +1000

    ReadOnly: Add a new command 'ctdb cattdb'. This fucntion differs from 'ctdb catdb' in that 'cattdb' will always traverse the local tdb file only, while 'catdb' does a cluster traverse.
    
    Since some record flags may differ between nodes in the cluster when read only delegations are in use, cattdb is needed when you need to know the exact flag settings on the current node itself.

commit 4dc6c180de9aa5c3874760e1a5d0c7c1cb660d9b
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Jul 20 12:21:33 2011 +1000

    ReadOnly: Add printing of the record flags when we are traversing a database to print its content.

commit 266341132bc4ee32c0ac6a159203005de96a8810
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Jul 20 12:17:27 2011 +1000

    ReadOnly: Add 4 new record flags to handle read only delegation and revoking of delegations

commit 70915ab8207cb85599c3ff121964442c297bcbdd
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Jul 20 12:13:53 2011 +1000

    ReadOnly: add a new test tool that does a fetchlock on a record, then bunps the RSN by 10 and writes the new content to the record as sprintf("%d", rsn)

commit 99dc10833e47aeb23fa433ead397a3e38cb21f27
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Jul 20 12:06:37 2011 +1000

    ReadOnly: Add clientside functions to send the UPDATE_RECORD control

commit d81eaac0da7744726eb44ca5f9805d8e358f3339
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Jul 20 11:50:14 2011 +1000

    ReadOnly: Add test tool to validate the functions to manipulate and enumerate the bitmap of nodes to where we have readonly delegations

commit 845720f51859660680140a55b48b2391c80daf5e
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Jul 20 11:39:50 2011 +1000

    ReadOnly: Add helper functions to manipulate a TDB_DATA as a bitmap for nodes that we are tracking as having a readonly delegation

commit bc3fb0cceb5817ceaf31eaa698d875239a40dd73
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Jul 20 11:27:05 2011 +1000

    ReadOnly records: Add a new RPC function FETCH_WITH_HEADER.
    This function differs from the old FETCH in that this function will also fetch the record header and not just the record data

-----------------------------------------------------------------------


-- 
CTDB repository


More information about the samba-cvs mailing list