-
Notifications
You must be signed in to change notification settings - Fork 486
[server] UpdateMetadata RPC should update tablePath and physicalTablePath cache #890
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
Conversation
3691681 to
be96873
Compare
be96873 to
129214a
Compare
|
@wuchong @loserwang1024 @luoyuxia pr ready. Could you pls take a look? thx. |
720c486 to
7662e6e
Compare
fluss-server/src/main/java/com/alibaba/fluss/server/coordinator/CoordinatorEventProcessor.java
Outdated
Show resolved
Hide resolved
fluss-server/src/main/java/com/alibaba/fluss/server/coordinator/CoordinatorRequestBatch.java
Show resolved
Hide resolved
fluss-server/src/main/java/com/alibaba/fluss/server/coordinator/CoordinatorRequestBatch.java
Show resolved
Hide resolved
fluss-server/src/main/java/com/alibaba/fluss/server/coordinator/CoordinatorRequestBatch.java
Show resolved
Hide resolved
...s-server/src/main/java/com/alibaba/fluss/server/metadata/CoordinatorServerMetadataCache.java
Outdated
Show resolved
Hide resolved
3edf628 to
7e791ac
Compare
wuchong
left a comment
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.
Thanks @swuferhong , I left some comments. And please fix the failed cases.
fluss-server/src/main/java/com/alibaba/fluss/server/tablet/TabletService.java
Outdated
Show resolved
Hide resolved
fluss-server/src/main/java/com/alibaba/fluss/server/tablet/TabletService.java
Show resolved
Hide resolved
fluss-server/src/main/java/com/alibaba/fluss/server/tablet/TabletService.java
Outdated
Show resolved
Hide resolved
...test/java/com/alibaba/fluss/server/coordinator/statemachine/TableBucketStateMachineTest.java
Outdated
Show resolved
Hide resolved
fluss-server/src/test/java/com/alibaba/fluss/server/coordinator/TableManagerITCase.java
Show resolved
Hide resolved
fluss-common/src/main/java/com/alibaba/fluss/metadata/Schema.java
Outdated
Show resolved
Hide resolved
fluss-server/src/main/java/com/alibaba/fluss/server/metadata/TabletServerMetadataCache.java
Outdated
Show resolved
Hide resolved
fluss-server/src/main/java/com/alibaba/fluss/server/metadata/TabletServerMetadataCache.java
Outdated
Show resolved
Hide resolved
fluss-server/src/main/java/com/alibaba/fluss/server/coordinator/CoordinatorRequestBatch.java
Show resolved
Hide resolved
...s-server/src/main/java/com/alibaba/fluss/server/metadata/CoordinatorServerMetadataCache.java
Outdated
Show resolved
Hide resolved
ca922c0 to
8c59340
Compare
8c59340 to
252fe12
Compare
|
@wuchong comments addressed, pr ready. |
wuchong
left a comment
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.
Looks good in general. I left some minor comments.
fluss-server/src/main/java/com/alibaba/fluss/server/metadata/BucketMetadata.java
Outdated
Show resolved
Hide resolved
fluss-server/src/main/java/com/alibaba/fluss/server/coordinator/CoordinatorRequestBatch.java
Outdated
Show resolved
Hide resolved
...s-server/src/main/java/com/alibaba/fluss/server/metadata/CoordinatorServerMetadataCache.java
Outdated
Show resolved
Hide resolved
...server/src/test/java/com/alibaba/fluss/server/replica/RemoveOfflineReplicaFromIsrITCase.java
Outdated
Show resolved
Hide resolved
fluss-server/src/main/java/com/alibaba/fluss/server/RpcServiceBase.java
Outdated
Show resolved
Hide resolved
fluss-server/src/main/java/com/alibaba/fluss/server/utils/ServerRpcMessageUtils.java
Outdated
Show resolved
Hide resolved
fluss-server/src/main/java/com/alibaba/fluss/server/utils/ServerRpcMessageUtils.java
Outdated
Show resolved
Hide resolved
|
@wuchong comments addressed. |
wuchong
left a comment
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.
LGTM.
Purpose
Linked issue: #757
Currently, UpdateMetadata RPC only updates coordinator and tablet server informations in the cluster, but we should also update table path information in the cluster. This has already added in the RPC protocol, but didn't implement in Coordinator side and TabletServer side. So this pr is aims to make
UpdateMetadata RPCupdate tablePath and physicalTablePath of ServerMetadata cache.Brief change log
Tests
API and Format
Documentation