xy720 commented on code in PR #32738:
URL: https://github.com/apache/doris/pull/32738#discussion_r1538567698
##########
fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java:
##########
@@ -2666,11 +2671,45 @@ public void updateVisibleVersionAndTime(long
visibleVersion, long visibleVersion
// During `getNextVersion` and `updateVisibleVersionAndTime` period,
// the write lock on the table should be held continuously
public long getNextVersion() {
- return tableAttributes.getNextVersion();
+ if (!Config.isCloudMode()) {
+ return tableAttributes.getNextVersion();
+ } else {
+ return getVisibleVersion() + 1;
+ }
}
public long getVisibleVersion() {
- return tableAttributes.getVisibleVersion();
+ if (Config.isCloudMode()) {
+ return tableAttributes.getVisibleVersion();
+ } else {
+ // get version rpc
+ Cloud.GetVersionRequest request =
Cloud.GetVersionRequest.newBuilder()
Review Comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]