Skip to content

Commit

Permalink
enhance: enable write ahead buffer for streaming service
Browse files Browse the repository at this point in the history
- Make a timetick-commit-based write ahead buffer at write side.
- Add a switchable scanner at read side to transfer the state between
  catchup and tailing read

Signed-off-by: chyezh <[email protected]>
  • Loading branch information
chyezh committed Jan 23, 2025
1 parent 44e5e19 commit b5aa2c5
Show file tree
Hide file tree
Showing 33 changed files with 1,413 additions and 390 deletions.
3 changes: 3 additions & 0 deletions internal/.mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ packages:
github.com/milvus-io/milvus/internal/streamingnode/server/wal/interceptors/timetick/inspector:
interfaces:
TimeTickSyncOperator:
github.com/milvus-io/milvus/internal/streamingnode/server/wal/interceptors/wab:
interfaces:
ROWriteAheadBuffer:
google.golang.org/grpc:
interfaces:
ClientStream:
Expand Down
24 changes: 12 additions & 12 deletions internal/mocks/distributed/mock_streaming/mock_WALAccesser.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/streamingnode/server/flusher/flusherimpl/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"math"

"github.com/cockroachdb/errors"
"go.uber.org/zap"

"github.com/cockroachdb/errors"
"github.com/milvus-io/milvus/internal/streamingnode/server/resource"
"github.com/milvus-io/milvus/pkg/log"
"github.com/milvus-io/milvus/pkg/proto/datapb"
Expand Down
Loading

0 comments on commit b5aa2c5

Please sign in to comment.