Skip to content

Commit

Permalink
Reducing riak_core (#94)
Browse files Browse the repository at this point in the history
* Updated gitignore. Removed old mercurial config. Removed travis for fork. Updated rebar3 version

* Merged fork Kyorai/riak_core. Compile and test ok

* Replaced calls to lager with logger

* Missing occurences

* Removed stuff on riak_ensemble

* Removed rebar_erl_vsn plugin

- Cleaned up usage of get_stacktrace
- Removed different versions for hash and random numbers

* Ported files from other fork

* Fixed race condition in riak core security tests (#32)

* Removed cuttlefish and placed default config in app.src

* Updated maintainer

* Removed riak_core_security

* Added syntax_tools and compiler needed for mochiglobal. Refactor formatting.

* Removed bg_manager, only used for AAE

* Removed deprecated copy of old supervisor

* Removed riak_kv code from riak_core

* unused module

* Moved eqc to own folder

* Replaced bucket type calls to return only default bucket type. Tests pass, ready to remove sub-system

* Removed bucket_type completely

* Removed detached metadata subsystem

* Purged eleveldb

* Purged eleveldb config

* Removed metadata supervisor

* Fixed chash keyfun usage

* Removed metadata exchange broadcast server

* Added function clause for broadcast

* Removed unused broadcast module

* Removed unused dtrace module

* Removed unused tracer module

* Removed unused new_claim module

* Removed net_ticktime capability

* Removed unused module repair

* Removed unused coverage_fsm for now

* Removed new_claim test part from simulation

* Moved claim sim test util to test folder

* Removed coverage plan module for new (see coverage_fsm)

* Removed unused tcp_mon module

* Removed handoff status since clique was also removed

* Removed calls to outside cluster_info modules, not part of riak_core

* Replaced deprecated function call

* Removed capabilities sub-system

* removed delayed start

* Removed riak_core_format

* Removed unused throttle module

* Removed unused riak_core_console_table module

* Removed ssl and encryption library. Removed unused perftool and table owner module

* Removed dead code including bucket types

* Removed dead code in eqc

* Removed unused claim_v1 and buggy claim_v3

* Minor refactoring

* Removed sequential start of vnodes

* Fixed bug for handoff refactoring

* Removed unused env and removed resize conditions for riak_kv

* Removed unused include files and riak_kv dialyzer special case

* Cleaned up test setup files and logs. eunit now clean

* Removed macros, towards statem refactor

* Replaced module internal calls with api calls

Co-authored-by: bieniusa <[email protected]>
  • Loading branch information
2 people authored and Albert Schimpf committed Mar 21, 2022
1 parent f15acd3 commit 278a84e
Show file tree
Hide file tree
Showing 148 changed files with 2,725 additions and 24,714 deletions.
21 changes: 13 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.eunit/*
log
deps/*
priv/*
ebin/*
Expand All @@ -12,12 +13,16 @@ doc/*
dialyzer_warnings
dialyzer_unhandled_warnings
.rebar
.rebar3
_build
rebar.lock
.DS_Store
nonode@nohost
data/*
test/*.beam
log/*

_build/
data/
nonode@nohost/
ring_manager_eunit/
sim.out
.eqc
compile_commands.json
rebar3.crashdump
.rebar3/
core_vnode_eqc.log
.idea
*.iml
5 changes: 0 additions & 5 deletions .hgignore

This file was deleted.

9 changes: 0 additions & 9 deletions .hgtags

This file was deleted.

45 changes: 26 additions & 19 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,27 +1,34 @@
.PHONY: compile rel cover test dialyzer eqc
REBAR=./rebar3
PULSE_TESTS = worker_pool_pulse

compile:
$(REBAR) compile
.PHONY: deps test

clean:
$(REBAR) clean
all: compile

cover:
$(REBAR) eunit --cover
$(REBAR) cover
compile: deps
./rebar3 compile

test: compile
$(REBAR) eunit
clean: clean-test
./rebar3 clean

dialyzer:
$(REBAR) dialyzer

xref:
$(REBAR) xref
distclean: clean

eqc:
$(REBAR) as test eqc --testing_budget 120
$(REBAR) as eqc eunit
clean-test:
rm -rf t1000
rm -rf t2000
rm -rf t1
rm -rf t2
rm -rf ring_manager_eunit/test.ring
rm -rf ring_manager_eunit
rm -rf nonode@nohost
rm -rf log.nonode@nohost
rm -rf data.nonode@nohost
rm -rf data

check: test dialyzer xref
# You should 'clean' before your first run of this target
# so that deps get built with PULSE where needed.
pulse:
./rebar3 compile -D PULSE
./rebar3 eunit -D PULSE skip_deps=true suite=$(PULSE_TESTS)

include tools.mk
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# What is riak_core_antidote?

The 'antidote' version of riak core is a minimal and up-to-date version of riak core.

# Riak Core

[![Erlang CI Actions Status](https://github.com/basho/riak_core/workflows/Erlang%20CI/badge.svg)](https://github.com/basho/riak_core/actions)
![Language](https://img.shields.io/badge/language-erlang-blue.svg)
![Release](https://img.shields.io/badge/release-R21-9cf.svg)
![Build](https://img.shields.io/badge/build-rebar3%203.9.0-brightgreen.svg)

[![Build Status](https://travis-ci.com/albsch/riak_core.svg?branch=master)](https://travis-ci.com/albsch/riak_core.svg?branch=master)


Riak Core is the distributed systems framework that forms the basis of
how [Riak](http://github.com/basho/riak) distributes data and scales.
Expand Down
64 changes: 0 additions & 64 deletions docs/hashtree.md

This file was deleted.

Binary file removed docs/hashtree.png
Binary file not shown.
116 changes: 0 additions & 116 deletions docs/node_worker_pool.md

This file was deleted.

Loading

0 comments on commit 278a84e

Please sign in to comment.