-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update import_sstpb and fix go & rust docker image build #1224
Conversation
Signed-off-by: lance6716 <[email protected]>
proto/import_sstpb.proto
Outdated
@@ -283,6 +283,7 @@ message Pair { | |||
message WriteBatch { | |||
uint64 commit_ts = 1; | |||
repeated Pair pairs = 2; | |||
uint64 start_ts = 3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you add some comments about this field? I guess the start_ts
is more like a hint that needed to be provided while uploading a SST in write CF.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Also I guess such field should also be stored in SstMeta
somehow. Because the observer can only get information about the SST in SstMeta
.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can move start_ts into SstMeta, do you think it's enough? just to avoid the two places have different values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: lance6716 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest LGTM
proto/import_sstpb.proto
Outdated
@@ -283,6 +283,7 @@ message Pair { | |||
message WriteBatch { | |||
uint64 commit_ts = 1; | |||
repeated Pair pairs = 2; | |||
uint64 start_ts = 3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Also I guess such field should also be stored in SstMeta
somehow. Because the observer can only get information about the SST in SstMeta
.)
scripts/check.sh
Outdated
@@ -20,8 +20,7 @@ check-protos-compatible() { | |||
export PATH=$GOPATH/bin:$PATH | |||
|
|||
if [ ! -f "$GOPATH/bin/protolock" ]; then | |||
GO111MODULE=off go get github.com/nilslice/protolock/cmd/protolock | |||
GO111MODULE=off go install github.com/nilslice/protolock/cmd/protolock | |||
GO111MODULE=off go install github.com/nilslice/protolock/cmd/protolock@latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please specify protolock version to keep proto.lock
consistent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To avoid making unnecessary changes to kvproto, let's hold this PR until everything is working as expected.
commit c5325a8 Author: hillium <[email protected]> Date: Tue Feb 20 18:38:01 2024 +0800 added more comments Signed-off-by: hillium <[email protected]> commit e6198f3 Author: hillium <[email protected]> Date: Mon Feb 19 16:17:21 2024 +0800 added file format for pitr Signed-off-by: hillium <[email protected]> Signed-off-by: hillium <[email protected]>
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
proto/brpb.proto
Outdated
@@ -644,6 +644,11 @@ enum FileType { | |||
Put = 1; | |||
} | |||
|
|||
enum FileFormat { | |||
KvStream = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enum tag 0 should be unknown or unspecified in proto3.
Please follow Proto Best Practices, thanks! https://protobuf.dev/programming-guides/dos-donts/#unspecified-enum
…)" This reverts commit 3fa61fc.
) * Revert "update import_sstpb and fix go & rust docker image build (#1224)" This reverts commit 3fa61fc. * some scripts don't need to be reverted Signed-off-by: lance6716 <[email protected]> --------- Signed-off-by: lance6716 <[email protected]>
the CI is broken: |
ref tikv/tikv#16533
this PR still has C++ make entry error
I don't know how to fix it.