-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(storagenode): change append rpc from unary to stream
This PR changes the Append RPC lifestyle from a unary to a bidirectional stream. However, it neither adds nor updates stream-styled Append. Therefore, this change is transparent for users. This is starting point to support streaming Append API, and LocalOrderClient mentioned on #433.
- Loading branch information
Showing
10 changed files
with
391 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package client | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/require" | ||
|
||
"github.com/kakao/varlog/proto/snpb" | ||
"github.com/kakao/varlog/proto/varlogpb" | ||
) | ||
|
||
func TestNewLogClient(t *testing.T, rpcClient snpb.LogIOClient, target varlogpb.StorageNode) *LogClient { | ||
require.NotNil(t, rpcClient) | ||
require.False(t, target.StorageNodeID.Invalid()) | ||
require.NotEmpty(t, target.Address) | ||
return &LogClient{ | ||
rpcClient: rpcClient, | ||
target: target, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.