[koha-commits] main Koha release repository branch 3.14.x updated. v3.14.06-107-g3e56eb1

Git repo owner gitmaster at git.koha-community.org
Tue May 27 12:26:45 CEST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, 3.14.x has been updated
       via  3e56eb19b63a6a0b2ed08d532dd7f54f71d7877b (commit)
       via  a5c1f0452871c6cf98cf557cb6787a49e740dde0 (commit)
       via  7a2d830637e673e7ff9a82613d9f4119f1ed4c34 (commit)
      from  e81749c3b327f4429548f7426a084f3ec5b140ef (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3e56eb19b63a6a0b2ed08d532dd7f54f71d7877b
Author: Galen Charlton <gmc at esilibrary.com>
Date:   Fri Feb 28 22:11:17 2014 +0000

    Bug 11078: (follow-up) tidy code
    
    - fix a couple typos in comments
    - make replace a "$i" with a more descriptive variable name
    - style some of the new code
    
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>
    (cherry picked from commit 160c44d4e9f529fc6e6ecbdab23ffab6bce5630e)
    Signed-off-by: Fridolin Somers <fridolin.somers at biblibre.com>

commit a5c1f0452871c6cf98cf557cb6787a49e740dde0
Author: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Date:   Wed Feb 19 13:58:00 2014 +0100

    Bug 11078: QA Follow-up for missing file permissions on lockfile
    
    The original patch creates a lockfile in the ZEBRA_LOCKDIR.
    It can fall back to /var/lock or even /tmp.
    If the create fails, it dies. This can be considered as very
    exceptional.
    
    This followup adjusts the fallback location in /var/lock or /tmp
    slightly.  It appends the database name to the folder in order to
    prevent interfering between multiple Koha instances. Creation of the
    lockfile has been moved to a subroutine extending directory and file
    creation testing.
    
    In the very unlikely case that we cannot create the lockfile (after
    three separate tries), this follow-up allows you to continue instead
    of die.  This is just as we did before we had file locking here. Every
    time skipping a reindex could cause more harm than continuing and
    having the race condition once in a while.
    
    Test plan:
    Test adding and removing lockdir from your koha-conf.xml. Check fallback.
    Note that fallback in /var/lock or /tmp must contain database name.
    Remove the lockdir config line and remove permissions from fallback. In
    this case the reindex should continue but with a warning.
    
    Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
    Tested with daemon and one-off invocation simultaneously.
    Tested new wait parameter.
    Tried all variations of lock directory (changing permissions etc.)
    
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>
    (cherry picked from commit 07de37f0e5ea8685573794ff6a84ab30e32f1973)
    Signed-off-by: Fridolin Somers <fridolin.somers at biblibre.com>

commit 7a2d830637e673e7ff9a82613d9f4119f1ed4c34
Author: Doug Kingston <dpk at randomnotes.org>
Date:   Tue Feb 18 22:56:58 2014 -0800

    Bug 11078: Add locking to rebuild_zebra
    
    This patch adds locking to rebuild_zebra.pl to ensure that simultaneous
    changes are prevented (as one is likely to overwrite the other).
    Incremental updates in daemon mode will skipped if the lock is busy
    and they will be picked up on the next pass.  Non-daemon mode
    invocations will also exit immediately if they cannot get the lock
    unless the new flag -wait-for-lock is specified, in which case they
    will wait until the get the lock and then proceed.
    
    Supporting changes made to Makefile.PL and templates for the new
    locking directory (paralleling the other zebra lock directories).
    We stash the zebra_lockdir in koha-conf.xml so rebuild_zebra.pl
    can find it.
    
    To address earlier QA concerns we:
    1. added code to check if flock is available and ignore locking if
    it's missing (from M. de Rooy)
    
    2. changed default for adhoc invocations to abort if they cannot
    obtain the lock.  Added option -wait-for-lock if the user prefers
    to wait until the lock is free, and then continue processing.
    
    3. added missing entry to t/db_dependent/zebra_config.pl
    
    4. added a fallback locking directory of /tmp
    
    Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
    Doug merged the original patch with the QA changes.
    Just for the record, noting here that the original patch was tested
    extensively too by Martin Renvoize.
    I have added a followup for some exceptional cases.
    
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>
    (cherry picked from commit 88e7faf8600b64884649f8c02104bf848df37a9b)
    Signed-off-by: Fridolin Somers <fridolin.somers at biblibre.com>

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

Summary of changes:
 Makefile.PL                               |    5 +-
 debian/templates/koha-conf-site.xml.in    |    1 +
 etc/koha-conf.xml                         |    1 +
 misc/bin/koha-zebra-ctl.sh                |    1 +
 misc/migration_tools/rebuild_zebra.pl     |  107 +++++++++++++++++++++++++++--
 skel/var/lock/koha/zebradb/rebuild/README |    1 +
 t/db_dependent/zebra_config.pl            |    1 +
 7 files changed, 109 insertions(+), 8 deletions(-)
 create mode 100644 skel/var/lock/koha/zebradb/rebuild/README


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list