Project

General

Profile

Actions

action #11676

closed

Add support for barriers in lockAPI

Added by dzyuzin about 8 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-04-20
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

For multi-machine testing barrier functions are very important, they implemented as mutex_create/mutex_lock wrapper in lib/hacluster.pm for two nodes cluster, but this cannot be done for three and more machines.

We need to have equivalent of pthread_barrier_wait() for thread synchronisation. Something like

  • barrier_create(name, number_of_threads)

  • barrier_wait(name) --- the calling job should block execution until the function is called $number_of_threads times (in different jobs)

  • barrier_destroy(name)

Actions #1

Updated by okurz over 7 years ago

  • Status changed from New to Resolved

barriers are in use in our tests since commit d1f7dd7
Author: Denis Zyuzin dzyuzin@suse.com
Date: Thu Sep 29 16:39:43 2016 +0200

Replace mutexes to barriers in HA cluster tests

New lockapi has barriers included in https://github.com/os-autoinst/os-autoinst/pull/579,
to support this all fake barriers implemented in lib/hacluster.pm were replaced to the new API.
This will allow more sophisticated HA tests with multinodes clusters.
Actions

Also available in: Atom PDF