Skip to content

Gorums v0.12.0

Choose a tag to compare

@meling meling released this 25 Oct 23:21
· 322 commits to master since this release
a739a61

API changes reported by gorelease:

# github.com/relab/gorums
## incompatible changes
(*Message).GetMessageID: removed
(*Message).GetMetadata: removed
(*Message).GetProtoMessage: removed
(*Message).GetStatus: changed from func() *google.golang.org/grpc/status.Status to func() *google.golang.org/genproto/googleapis/rpc/status.Status
Async: removed
CallOption: removed
ClientCtx: removed
Closer: removed
Codec: removed
ConfigContext: changed from ConfigContext to github.com/relab/gorums/internal/conn.ConfigContext
Configuration: removed
ContentSubtype: removed
Correctable: changed from Correctable[Resp any] to github.com/relab/gorums/internal/impl.Correctable[Resp]
E_Rpc: removed
EchoServerFn: removed
EnforceVersion: removed
GenVersion: removed
Handler: changed from func(ServerCtx, *Message) (*Message, error) to func(ServerContext, *Message) (*Message, error)
ID: changed from var to type
IgnoreErrors: removed
InsecureDialOptions: removed
Interceptor: removed
Interceptors: removed
LastNodeError: removed
Manager: removed
ManagerOption: removed
MapRequest: changed from func(func(Req, *Node) Req) QuorumInterceptor[Req, Resp] to func(func(Req, *Node) Req) ClientInterceptor[Req, Resp]
MapResponse: changed from func(func(Resp, *Node) Resp) QuorumInterceptor[Req, Resp] to func(func(Resp, *Node) Resp) ClientInterceptor[Req, Resp]
MaxVersion: removed
MinVersion: removed
MultiSorter: removed
Multicast: removed
NewCodec: removed
NewConfig: changed from func(...Option) (Configuration, error) to func(NodeSource, ...DialOption) (Config, func(), error)
NewConfiguration: removed
NewCorrectable: removed
NewManager: removed
NewRequestMessage: removed
NewResponseMessage: changed from func(*github.com/relab/gorums/ordering.Metadata, google.golang.org/protobuf/proto.Message) *Message to func(*Message, google.golang.org/protobuf/proto.Message) *Message
NewResponses: removed
NewSystem: removed
Node: changed from Node to github.com/relab/gorums/internal/conn.Node
NodeContext: changed from NodeContext to github.com/relab/gorums/internal/conn.NodeContext
NodeListOption: removed
NodeResponse: changed from NodeResponse[T any] to github.com/relab/gorums/internal/stream.NodeResponse[T]
Option: removed
OrderedBy: removed
Port: removed
QuorumCall: removed
QuorumCallError: changed from QuorumCallError to github.com/relab/gorums/internal/conn.QuorumCallError
QuorumCallStream: removed
QuorumInterceptor: removed
RPCCall: removed
Range: removed
ResponseSeq: changed from ResponseSeq[T msg] to github.com/relab/gorums/internal/impl.ResponseSeq[T]
Responses: changed from Responses[Resp msg] to github.com/relab/gorums/internal/impl.Responses[Resp]
ServerCtx: removed
ServerIface: removed
StreamBenchmarkServerFn: removed
StreamServerFn: removed
System: removed
TestConfiguration: removed
TestContext: removed
TestNode: removed
TestOption: removed
TestQuorumCallError: removed
TestServers: removed
Unicast: removed
WithBackoff: changed from func(google.golang.org/grpc/backoff.Config) ManagerOption to func(google.golang.org/grpc/backoff.Config) DialOption
WithDialOptions: removed
WithInterceptors: removed
WithLogger: changed from func(*log.Logger) ManagerOption to func(*log.Logger) DialOption
WithManager: removed
WithMetadata: changed from func(google.golang.org/grpc/metadata.MD) ManagerOption to func(google.golang.org/grpc/metadata.MD) DialOption
WithNodeIDs: removed
WithNodeList: changed from func([]string) NodeListOption to func([]string) NodeSource
WithNodeMap: removed
WithPerNodeMetadata: removed
WithPreConnect: removed
WithReceiveBufferSize: removed
WithSendBufferSize: changed from func(uint) ManagerOption to func(uint) DialOption
WithStopFunc: removed
## compatible changes
(*Server).Addr: added
(*Server).ConnectedClients: added
(*Server).ConnectedPeers: added
(*Server).HandleRequest: added
(*Server).ListenAndServe: added
(*Server).NodeID: added
(*Server).PeerConfig: added
(*Server).WaitForAll: added
(*Server).WaitForClients: added
(*Server).WaitForPeers: added
./internal/stream.(*Message).ClearStatus: added
./internal/stream.(*Message).GetEntry: added
./internal/stream.(*Message).GetMessageSeqNo: added
./internal/stream.(*Message).GetMethod: added
./internal/stream.(*Message).GetPayload: added
./internal/stream.(*Message).GetStatus: added
./internal/stream.(*Message).HasStatus: added
./internal/stream.(*Message).ProtoMessage: added
./internal/stream.(*Message).ProtoReflect: added
./internal/stream.(*Message).Reset: added
./internal/stream.(*Message).SetEntry: added
./internal/stream.(*Message).SetMessageSeqNo: added
./internal/stream.(*Message).SetMethod: added
./internal/stream.(*Message).SetPayload: added
./internal/stream.(*Message).SetStatus: added
./internal/stream.(*Message).String: added
AggregateFunc: added
Agreement: added
ByID: added
ByLastError: added
ByLatency: added
Call: added
CallContext: added
ClientInterceptor: added
Config: added
DefaultSendBufferSize: added
DialOption: added
E_Remotecall: added
ErrNodeClosed: added
ErrSendQueueFull: added
ErrSendStalled: added
ErrSkipNode: added
ErrStopped: added
ErrStreamDown: added
LocalServerOption: added
Message.Message: added
Message.Proto: added
MetadataEntry: added
NewLocalServers: added
NewStar: added
NewTree: added
NodeAddress: added
NodeSource: added
OnewayAsync: added
OnewayCall: added
ServerContext: added
ServerInterceptor: added
TLSIdentity: added
TreeConfig: added
TreeOptions: added
WithAddr: added
WithBackChannel: added
WithBufferSizes: added
WithGRPCDialOptions: added
WithLocalDialOptions: added
WithLocalDialOptionsFunc: added
WithLocalListeners: added
WithLocalNodes: added
WithLocalServerOptions: added
WithLocalServerOptionsFunc: added
WithNodes: added
WithPeerChange: added
WithPeers: added
WithServerInterceptors: added
WithStreamDedup: added

# github.com/relab/gorums/benchmark
## incompatible changes
package removed

# github.com/relab/gorums/cmd/benchmark
## incompatible changes
package removed

# github.com/relab/gorums/cmd/protoc-gen-gorums/dev
## incompatible changes
AsyncEmpty: removed
AsyncResponse: removed
Configuration: removed
CorrectableEmpty: changed from *github.com/relab/gorums.Correctable[*google.golang.org/protobuf/types/known/emptypb.Empty] to *github.com/relab/gorums.Correctable[*google.golang.org/protobuf/types/known/emptypb.Empty]
CorrectableResponse: changed from *github.com/relab/gorums.Correctable[*Response] to *github.com/relab/gorums.Correctable[*Response]
GRPCCall: changed from func(*github.com/relab/gorums.NodeContext, *Request) (*Response, error) to func(*NodeContext, *Request) (*Response, error)
Manager: removed
Multicast2: changed from func(*github.com/relab/gorums.ConfigContext, *Request, ...github.com/relab/gorums.CallOption) error to func(*ConfigContext, *Request) *github.com/relab/gorums.OnewayCall[*Request]
Multicast3: changed from func(*github.com/relab/gorums.ConfigContext, *Request, ...github.com/relab/gorums.CallOption) error to func(*ConfigContext, *Request) *github.com/relab/gorums.OnewayCall[*Request]
Multicast4: changed from func(*github.com/relab/gorums.ConfigContext, *google.golang.org/protobuf/types/known/emptypb.Empty, ...github.com/relab/gorums.CallOption) error to func(*ConfigContext, *google.golang.org/protobuf/types/known/emptypb.Empty) *github.com/relab/gorums.OnewayCall[*google.golang.org/protobuf/types/known/emptypb.Empty]
Multicast: changed from func(*github.com/relab/gorums.ConfigContext, *Request, ...github.com/relab/gorums.CallOption) error to func(*ConfigContext, *Request) *github.com/relab/gorums.OnewayCall[*Request]
NewConfig: removed
NewConfiguration: removed
NewManager: removed
Node: changed from github.com/relab/gorums.Node to github.com/relab/gorums/internal/conn.Node
QuorumCall: changed from func(*github.com/relab/gorums.ConfigContext, *Request, ...github.com/relab/gorums.CallOption) *github.com/relab/gorums.Responses[*Response] to func(*ConfigContext, *Request) *github.com/relab/gorums.Call[*Request, *Response]
QuorumCallEmpty2: changed from func(*github.com/relab/gorums.ConfigContext, *Request, ...github.com/relab/gorums.CallOption) *github.com/relab/gorums.Responses[*google.golang.org/protobuf/types/known/emptypb.Empty] to func(*ConfigContext, *Request) *github.com/relab/gorums.Call[*Request, *google.golang.org/protobuf/types/known/emptypb.Empty]
QuorumCallEmpty: changed from func(*github.com/relab/gorums.ConfigContext, *google.golang.org/protobuf/types/known/emptypb.Empty, ...github.com/relab/gorums.CallOption) *github.com/relab/gorums.Responses[*Response] to func(*ConfigContext, *google.golang.org/protobuf/types/known/emptypb.Empty) *github.com/relab/gorums.Call[*google.golang.org/protobuf/types/known/emptypb.Empty, *Response]
QuorumCallStream: changed from func(*github.com/relab/gorums.ConfigContext, *Request, ...github.com/relab/gorums.CallOption) *github.com/relab/gorums.Responses[*Response] to func(*ConfigContext, *Request) *github.com/relab/gorums.Call[*Request, *Response]
QuorumCallStreamWithEmpty2: changed from func(*github.com/relab/gorums.ConfigContext, *google.golang.org/protobuf/types/known/emptypb.Empty, ...github.com/relab/gorums.CallOption) *github.com/relab/gorums.Responses[*Response] to func(*ConfigContext, *google.golang.org/protobuf/types/known/emptypb.Empty) *github.com/relab/gorums.Call[*google.golang.org/protobuf/types/known/emptypb.Empty, *Response]
QuorumCallStreamWithEmpty: changed from func(*github.com/relab/gorums.ConfigContext, *Request, ...github.com/relab/gorums.CallOption) *github.com/relab/gorums.Responses[*google.golang.org/protobuf/types/known/emptypb.Empty] to func(*ConfigContext, *Request) *github.com/relab/gorums.Call[*Request, *google.golang.org/protobuf/types/known/emptypb.Empty]
Unicast2: changed from func(*github.com/relab/gorums.NodeContext, *Request, ...github.com/relab/gorums.CallOption) error to func(*NodeContext, *Request) *github.com/relab/gorums.OnewayCall[*Request]
Unicast: changed from func(*github.com/relab/gorums.NodeContext, *Request, ...github.com/relab/gorums.CallOption) error to func(*NodeContext, *Request) *github.com/relab/gorums.OnewayCall[*Request]
ZorumsServiceServer.GRPCCall: changed from func(github.com/relab/gorums.ServerCtx, *Request) (*Response, error) to func(github.com/relab/gorums.ServerContext, *Request) (*Response, error)
ZorumsServiceServer.Multicast2: changed from func(github.com/relab/gorums.ServerCtx, *Request) to func(github.com/relab/gorums.ServerContext, *Request)
ZorumsServiceServer.Multicast3: changed from func(github.com/relab/gorums.ServerCtx, *Request) to func(github.com/relab/gorums.ServerContext, *Request)
ZorumsServiceServer.Multicast4: changed from func(github.com/relab/gorums.ServerCtx, *google.golang.org/protobuf/types/known/emptypb.Empty) to func(github.com/relab/gorums.ServerContext, *google.golang.org/protobuf/types/known/emptypb.Empty)
ZorumsServiceServer.Multicast: changed from func(github.com/relab/gorums.ServerCtx, *Request) to func(github.com/relab/gorums.ServerContext, *Request)
ZorumsServiceServer.QuorumCall: changed from func(github.com/relab/gorums.ServerCtx, *Request) (*Response, error) to func(github.com/relab/gorums.ServerContext, *Request) (*Response, error)
ZorumsServiceServer.QuorumCallEmpty2: changed from func(github.com/relab/gorums.ServerCtx, *Request) (*google.golang.org/protobuf/types/known/emptypb.Empty, error) to func(github.com/relab/gorums.ServerContext, *Request) (*google.golang.org/protobuf/types/known/emptypb.Empty, error)
ZorumsServiceServer.QuorumCallEmpty: changed from func(github.com/relab/gorums.ServerCtx, *google.golang.org/protobuf/types/known/emptypb.Empty) (*Response, error) to func(github.com/relab/gorums.ServerContext, *google.golang.org/protobuf/types/known/emptypb.Empty) (*Response, error)
ZorumsServiceServer.QuorumCallStream: changed from func(github.com/relab/gorums.ServerCtx, *Request, func(response *Response) error) error to func(github.com/relab/gorums.ServerContext, *Request, func(*Response))
ZorumsServiceServer.QuorumCallStreamWithEmpty2: changed from func(github.com/relab/gorums.ServerCtx, *google.golang.org/protobuf/types/known/emptypb.Empty, func(response *Response) error) error to func(github.com/relab/gorums.ServerContext, *google.golang.org/protobuf/types/known/emptypb.Empty, func(*Response))
ZorumsServiceServer.QuorumCallStreamWithEmpty: changed from func(github.com/relab/gorums.ServerCtx, *Request, func(response *google.golang.org/protobuf/types/known/emptypb.Empty) error) error to func(github.com/relab/gorums.ServerContext, *Request, func(*google.golang.org/protobuf/types/known/emptypb.Empty))
ZorumsServiceServer.Unicast2: changed from func(github.com/relab/gorums.ServerCtx, *Request) to func(github.com/relab/gorums.ServerContext, *Request)
ZorumsServiceServer.Unicast: changed from func(github.com/relab/gorums.ServerCtx, *Request) to func(github.com/relab/gorums.ServerContext, *Request)
## compatible changes
(*Request).GetID: added
(*Request).SetID: added
Config: added
ConfigContext: added
ID: added
NodeContext: added
Request_builder.ID: added

# github.com/relab/gorums/cmd/protoc-gen-gorums/gengorums
## incompatible changes
GenerateDevFiles: changed from func(*google.golang.org/protobuf/compiler/protogen.Plugin, *google.golang.org/protobuf/compiler/protogen.File) to func(*google.golang.org/protobuf/compiler/protogen.Plugin, *google.golang.org/protobuf/compiler/protogen.File) error
GenerateFile: changed from func(*google.golang.org/protobuf/compiler/protogen.Plugin, *google.golang.org/protobuf/compiler/protogen.File) to func(*google.golang.org/protobuf/compiler/protogen.Plugin, *google.golang.org/protobuf/compiler/protogen.File) error
GenerateVersionMarkers: removed

# github.com/relab/gorums/gorumstest
## compatible changes
package added

# github.com/relab/gorums/ordering
## incompatible changes
package removed

# github.com/relab/gorums/runtime/gorumsimpl
## compatible changes
package added

# summary
Inferred base version: v0.11.0
v0.12.0 is a valid semantic version for this release.

What's Changed

  • Fix flaky TestChannelConnectionState by @meling in #251
  • Simplify Configuration API by @meling in #254
  • Make gorums.RPCCall generic to match QuorumCall by @meling in #258
  • Replace proto.Message with msg by @meling in #260
  • Move TestConfigConcurrentAccess to rpc_test.go as TestRPCCallConcurrentAccess by @meling in #261
  • Fix ignore logic in TestMulticastPerNode by @meling in #263
  • Refactor legacy SendMsg/RecvMsg to new type-safe Send/Recv interface by @meling in #265
  • Move Channel implementation to internal/stream by @meling in #270
  • Symmetric Configuration support with separate outbound and inbound channel (Phase 1) by @meling in #276
  • Symmetric Configuration support with dynamic peer registration by @meling in #278
  • Fix message ID bug, fix missing request handler, and fix symmetric configuration tests by @meling in #283
  • Unify node builder logic for both Manager and InboundManager by @meling in #284
  • Self-Node In-Process Dispatch by @meling in #287
  • Expand user guide documentation and storage example with REPL by @meling in #288
  • Fix requeue pending message deadlock by @meling in #290
  • fix: resolve flaky incomplete-call errors in sequential quorum calls by @meling in #292
  • refactor(stream): unify inbound dispatch via RouteInbound by @meling in #293
  • refactor: rename ManagerOption to DialOption by @meling in #302
  • refactor: unexport Manager as outboundManager by @meling in #303
  • refactor: add WithServer dial option, remove (*Server).NewConfig by @meling in #304
  • refactor: simplify NewConfig signature, add Configuration.Close by @meling in #305
  • refactor: update all callers to use new NewConfig API by @meling in #306
  • chore: remove deprecated API, simplify test infrastructure by @meling in #307
  • chore: Inline withRequestHandler logic into WithServer by @meling in #310
  • chore: Make all runtime errors and panics use the gorums: prefix by @meling in #311
  • bug: add test to confirm no race exists anymore by @meling in #312
  • Replace MultiSorter with slices.SortFunc in node sorting by @meling in #318
  • Add tests and document WithConnectCallback and WithConfig onChange by @meling in #319
  • Latency-based node selection by @meling in #321
  • Add support for System.WaitForConfig and WaitForClientConfig by @meling in #324
  • Fix leaking pending entires with IgnoreErrors by @meling in #327
  • gorumstest: extract the test framework from the root package by @meling in #329
  • gorums: rework peer configuration around WithPeers by @meling in #330
  • gorums: rename the public API and fold System into Server by @meling in #331
  • gorums: replace call options with typed call handles by @meling in #332
  • gorums: split the runtime into internal/conn and internal/impl by @meling in #333
  • gorums: add stream deduplication for symmetric peers by @meling in #334
  • benchkit: add the measurement harness as a second module by @meling in #335
  • benchmark: add the Gorums workloads and the benchmark binary by @meling in #336
  • cmd/sweep: add the cluster sweep orchestrator and its Typst report by @meling in #337
  • stream, conn: split channels by direction and simplify stream lifecycle by @meling in #339
  • gorums: harden message unmarshaling and address stream review findings

by @meling in #340

  • build: replace DeepSource with a stricter, pinned golangci-lint by @meling in #341
  • all: clean up naming, file layout, and tests across the codebase by @meling in #342
  • gengorums: ignore generated-file errors when bundling by @meling in #343
  • github: move workflows off Node.js 20 and update dependencies by @meling in #347
  • internal/impl: explain the missing method descriptor error by @meling in #350
  • conn: reject new nodes after Close and lock the node list in Close by @meling in #351
  • conn: return a close function from NewConfig and remove Config.Close by @meling in #352
  • internal/cmd/gorums-release: automate releases with a Go program by @meling in #348
  • benchkit/cmd/sweep: name promoted fields in struct literals by @meling in #354
  • gorums: add the ID alias, Config.Node, and ServerContext.SenderID by @meling in #355
  • conn: keep the configured node address by @meling in #357
  • gorums: add TreeConfig for tree topologies over a Config by @meling in #328
  • Clarify Release() behavior in documentation, tests, and examples by @meling in #363
  • gorums: add per-server options for local server groups by @meling in #361
  • stream: wait out Connecting before watching for GOAWAY by @meling in #365
  • servers: wrap bufconn fake ports within the valid range by @meling in #367
  • gorums: authenticate peers using node TLS identities by @meling in #359
  • stream: fail and back off on refused streams by @meling in #360
  • gorums: fix duplicate error prefix and adopt gerund-style error strings by @meling in #374
  • mockcall: add typed call helpers for mock-service tests by @meling in #375
  • conn: check TLS identities of servers dialed by NewConfig by @meling in #376
  • internal/gentest: run generator tests in process by @meling in #377
  • gorums: add generic terminal methods by @meling in #378
  • gorums: replace async terminals with eager Call.Async dispatch by @meling in #382
  • gorums: use mockcall helpers in tests instead of gorumsimpl calls by @meling in #384
  • gorums: alias ID in generated code and allow an ID field by @meling in #386
  • gorums: release v0.12.0 by @meling in #389

Full Changelog: v0.11.0...v0.12.0