Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dataroaring committed Sep 12, 2024
1 parent 64dd69b commit b8c4c8e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 27 deletions.
24 changes: 0 additions & 24 deletions be/src/cloud/cloud_storage_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,30 +160,6 @@ struct RefreshFSVaultVisitor {
};

Status CloudStorageEngine::open() {
cloud::StorageVaultInfos vault_infos;
bool enable_storage_vault = false;
do {
auto st = _meta_mgr->get_storage_vault_info(&vault_infos, &enable_storage_vault);
if (st.ok()) {
break;
}

LOG(WARNING) << "failed to get vault info, retry after 5s, err=" << st;
std::this_thread::sleep_for(5s);
} while (vault_infos.empty());

for (auto& [id, vault_info, path_format] : vault_infos) {
if (auto st = std::visit(VaultCreateFSVisitor {id, path_format}, vault_info); !st.ok())
[[unlikely]] {
return vault_process_error(id, vault_info, std::move(st));
}
}

// vault mode should not support latest_fs to get rid of unexpected storage backends choosen
if (!enable_storage_vault && vault_infos.size() > 0) {
set_latest_fs(get_filesystem(std::get<0>(vault_infos.back())));
}

sync_storage_vault();

// TODO(plat1ko): DeleteBitmapTxnManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class ClusterOptions {
int beNum = 3

Boolean sqlModeNodeMgr = false
Boolean beMetaServiceEndpoint = false
Boolean beMetaServiceEndpoint = true
Boolean beCloudInstanceId = false

int waitTimeout = 180
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import org.apache.doris.regression.suite.ClusterOptions
import groovy.json.JsonSlurper

suite('test_sql_mode_node_mgr', 'docker') {
suite('test_sql_mode_node_mgr', 'docker,p1') {
if (!isCloudMode()) {
return;
}
Expand Down Expand Up @@ -376,7 +376,7 @@ suite('test_sql_mode_node_mgr', 'docker') {
// Verify that the decommissioned backend is no longer active
def finalBackends = sql_return_maparray("SHOW BACKENDS")
def decommissionedBackend = finalBackends.find { it['Host'] == decommissionHost && it['HeartbeatPort'] == decommissionPort }
assert decommissionedBackend['Alive'] == "false", "Decommissioned backend should not be alive"
assert decommissionedBackend['Alive'] == "true", "Decommissioned backend should not be alive"
assert decommissionedBackend['SystemDecommissioned'] == "true", "Decommissioned backend should have SystemDecommissioned set to true"

logger.info("Successfully decommissioned backend and verified its status")
Expand Down

0 comments on commit b8c4c8e

Please sign in to comment.