Skip to content

Commit

Permalink
patch ODC 413bp10 bug fix:adaption for OBInstanceType
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachThinking committed Apr 1, 2024
1 parent 881e650 commit 34b954d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ public ConnectionConfig innerCreate(@NotNull @Valid ConnectionConfig connection,

if (connection.getPasswordSaved()) {
PreConditions.notNull(connection.getPassword(), "connection.password");
} else {
connection.setPassword(null);
}
connectionEncryption.encryptPasswords(connection);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ private ConnectionConfig reqToConnectionConfig(TestConnectionReq req) {

OBTenantEndpoint endpoint = req.getEndpoint();
if (Objects.nonNull(endpoint) && OceanBaseAccessMode.IC_PROXY == endpoint.getAccessMode()) {
config.setClusterName(null);
config.setEndpoint(endpoint);
}
if (StringUtils.isNotBlank(req.getOBTenantName())) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ public enum OBInstanceStatus {

ABNORMAL("ABNORMAL"),

OFFLINE("OFFLINE");
OFFLINE("OFFLINE"),

PENDING_STOP("PENDING_STOP"),

STOPPED("STOPPED"),

PENDING_START("PENDING_START");

private String name;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ public enum OBInstanceType implements Translatable {
MYSQL_TENANT("mtenant"),
ORACLE_TENANT("otenant"),
MYSQL_SERVERLESS("mtenant_serverless"),
ORACLE_SERVERLESS("otenant_serverless");
ORACLE_SERVERLESS("otenant_serverless"),
DEDICATED("DEDICATED");

@Getter
private String value;
Expand Down

0 comments on commit 34b954d

Please sign in to comment.