Skip to content
CAI
Software that uses CAICheck a score

OpenRiak/riak_core

61.3

Adequate · 15 November 2026

42.9k

lines of production code

Erlang

primary language

4

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Initial import of Riak Core with Apache 2.0 license and OpenRiak dependencies

This entry represents the initial import of the Riak Core distributed systems framework into the OpenRiak organization, establishing the project's foundational structure. The repository is now licensed under the Apache License, Version 2.0, replacing any prior licensing terms. The build system has been standardized on rebar3, with the Makefile updated to use the \rebar3\ executable for compilation, testing, and dialyzer checks. The project now targets Erlang/OTP 24.0 or later and pulls its dependencies (including poolboy, clique, eleveldb, riak\_ensemble, and exometer\_core) from specific OpenRiak GitHub branches rather than external package managers or older version tags.

(repo-wide) · high confidence

Introduce background resource management and expand vnode request types

The include files now define a new background manager API (riak\_core\_bg\_manager.hrl) for coordinating shared resources via locks and tokens, and introduce bucket type constants (riak\_core\_bucket\_type.hrl). Vnode requests are expanded with new records for coverage (riak\_coverage\_req\_v1) and a v2 fold request (riak\_core\_fold\_req\_v2) that supports forwarding and options, while the default sender for vnode requests changes from 'noreply' to 'ignore'. Handoff capabilities are enhanced with batch support (PT\_MSG\_BATCH), detailed statistics tracking (ho\_stats), and a unified ho\_type covering ownership, hinted, repair, and resize operations. Additionally, cluster metadata types are defined (riak\_core\_metadata.hrl), the ring version is bumped to 2 (riak\_core\_ring.hrl), and DTrace integration headers are added (riak\_core\_dtrace.hrl).

include · high confidence

Introduce chashbin module for efficient ring representation

Added the chashbin module, a new binary-based representation of the Riak Core hash ring that replaces the previous list-based chash structure. This change provides optimized functions for ring operations, including creating the binary structure from a chash, converting it back, and iterating over partitions. The module supports efficient index lookups, owner resolution, and bulk iteration, which improves performance for ring management tasks such as handoffs and partition ownership calculations.

src · high confidence

New riak\_core configuration schema with validation and default settings

A new configuration schema file (priv/riak\_core.schema) has been introduced to define and validate riak\_core settings via cuttlefish. This adds support for configuring default bucket properties (n\_val), ring size with power-of-2 and range validation, repair span (pair/double\_pair), and handoff parameters including concurrency limits, batch thresholds, timeouts, and IP/port bindings. It also introduces validators for IP addresses and sets sensible defaults for cluster transfer limits and overlapping partition prevention (disabled by default).

priv · high confidence

Architecture

Removal of riak\_core.app from ebin directory

The riak\_core.app file has been removed from the ebin directory, indicating a shift in how the application metadata is managed (likely moving to src/riak\_core.app.src as suggested by commit history). This change affects the build and deployment process, as the application resource file is no longer present in the compiled output directory.

ebin · high confidence

Test coverage

Added QuickCheck property tests for core Riak components; Added test suite for background manager and ring claim behavior.

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 61 → 61 (+0.6)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 72 → 71 (-0.9)
  • Architecture 89 → 100 (+11.2)
  • Maturity 45 → 45 (+0.0)
  • Readiness 64 → 64 (+0.0)
  • Security 97 → 97 (+0.0)
  • Event Sourcing 100 → 100 (+0.0)

Resolved (7)

  • Duplicated block (14 lines × 4) (src/riak_core_security.erl)
  • Duplicated block (15–16 lines × 2) (src/riak_core_security.erl)
  • Duplicated block (17 lines × 2) (src/riak_core_claim_sim.erl)
  • Duplicated block (5 lines × 3) (src/gen_nb_server.erl)
  • Duplicated block (7 lines × 2) (src/gen_nb_server.erl)
  • Off-boarding risk: anonymized user #1
  • Projects may be oversized for their cohesion

New (55)

  • Duplicated block (14 lines × 4) (src/riak_core_security.erl)
  • Duplicated block (15–16 lines × 2) (src/riak_core_security.erl)
  • Duplicated block (5 lines × 3) (src/gen_nb_server.erl)
  • Duplicated block (7 lines × 2) (src/gen_nb_server.erl)
  • Edited copies of one member (3 members, 7+ corresponding lines) (src/riak_core_gen_server.erl)
  • Edited copies of one member (3 members, 7+ corresponding lines) (src/riak_core_stat_calc_sup.erl)
  • Edited copies of one member (4 members, 6+ corresponding lines) (src/riak_core_apl.erl)
  • Edited copy of a member (10 corresponding lines) (src/riak_core_metadata_exchange_fsm.erl)
  • Edited copy of a member (11 corresponding lines) (src/riak_core_claim_util.erl)
  • Edited copy of a member (12 corresponding lines) (src/riak_core_apl.erl)
  • Edited copy of a member (12 corresponding lines) (src/riak_core_vnode_manager.erl)
  • Edited copy of a member (13 corresponding lines) (src/hashtree.erl)
  • Edited copy of a member (13 corresponding lines) (src/riak_core_membership_claim.erl)
  • Edited copy of a member (13 corresponding lines) (src/riak_core_metadata.erl)
  • Edited copy of a member (13 corresponding lines) (src/riak_core_util.erl)
  • Edited copy of a member (14 corresponding lines) (src/riak_core.erl)
  • Edited copy of a member (14 corresponding lines) (src/riak_core_claim_swapping.erl)
  • Edited copy of a member (14 corresponding lines) (src/riak_core_gen_server.erl)
  • Edited copy of a member (15 corresponding lines) (src/riak_core_console.erl)
  • Edited copy of a member (15 corresponding lines) (src/riak_core_ring.erl)
  • …and 35 more

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

OpenRiak/riak_core was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 15 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit df6f92663a5bcc5996665516fcbde6e99d966d26 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.