Skip to content
Snippets Groups Projects
Unverified Commit fa183487 authored by lni's avatar lni Committed by GitHub
Browse files

Initial commit of LogService and HAKeeper (#2970)

* logservice: initial commit

* logservice: added LogShardManager

* logservice: renamed service.go -> shards.go

* logservice: added hakeeper and tests

* logservice: some cleanups

* logservice: added stateMachine.LeaseHistory

* logservice: added the ability to filter internal entries

* logservice: fixed various issues in LogStore

* logservice: updated store APIs to expose LogRecord and LSN

* logservice: pass meta info to NodeHost

* logservice: allow NodeHostID to be specified

* logservice: added the ability to query serviceAddress

* logservice: added the ability to query shard info

* logservice: minor update

* logservice: truncate log asynchronously in a worker goroutine

* logservice: fixed copyright notice

* logservice: added heartbeat message ready to be sent to HAKeeper

* logservice: use gogofaster to generate .pb.go

* logservice: minor update to reflect dragonboat v4 changes

* logservice: added pb/rpc

* logservice: added server side rpc support

* logservice: bumped cube version to avoid pebble version conflicts

* logservice: added error handling

* logservice: more error handling

* logservice: added some tests

* logservice: minor fixess for errors.go

* logservice: added DN heartbeat messages

* logservice: minor cleanups

* logservice: minor fix for error handling

* logservice: moved hakeeper code to its own directory

* logservice: made logservice rsm a IStateMachine

* hakeeper: use Lookup() for querying shard ID

* logservice: move pb file to matrixone/proto, some other cleanups

* hakeeper: added hakeeper/state.go

* logservice: added methods for updating hakeeper

* hakeeper: minor fix, added some tests

* logservice: added ticker for hakeeper replica

* logservice: minor fix for service.go

* logservice: fixed some issues in transport.go

* logservice: added client.go

* logservice: minor refactoring

* logservice: added client_test.go, fixed a few bugs

* logservice: readonly clients now reject write requests

* logservice: refactored query shard info API

* logservice: added tests for Servide.GetShardInfo

* logservice: fixed a few static-check reported issues
parent 9ad4418c
Branches
Tags
No related merge requests found
Showing
with 3271 additions and 28 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment