Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • S ssg
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 18
    • Issues 18
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • sds
  • ssg
  • Merge requests
  • !15

WIP: added group hash

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Matthieu Dorier requested to merge dev-hash into master Jan 09, 2021
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 6

This PR adds a "group hash", computed and maintained up to date as follows:

hash = 0
foreach member_id in group {
    hash = xor(hash, member_id)
}

It is a preliminary addition to enable services/processes to check whether they have the same view of a group, and could be used in a future ssg_group_refresh function to issue an RDMA operation only if the hash differs.

I'm marking this PR as a WIP; it should be rebased onto master once master gets updated with the branch that adds better error codes.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: dev-hash