Skip to content

Commit

Permalink
CB-5161 generate workspace id property on dc side (#2653)
Browse files Browse the repository at this point in the history
  • Loading branch information
yagudin10 authored May 27, 2024
1 parent 4e1a593 commit d7658d4
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public synchronized String getApplicationInstanceId() throws DBException {
instanceId = String.join(
"_",
ApplicationRegistry.getInstance().getApplication().getId(),
BaseWorkspaceImpl.readWorkspaceIdProperty(), // workspace id is read from property file
getWorkspaceIdProperty(), // workspace id is read from property file
CommonUtils.toHexString(macAddress),
CommonUtils.toString(getServerPort())
);
Expand All @@ -263,6 +263,11 @@ public synchronized String getApplicationInstanceId() throws DBException {
return instanceId;
}

@NotNull
public String getWorkspaceIdProperty() throws DBException {
return BaseWorkspaceImpl.readWorkspaceIdProperty();
}

public String getApplicationId() {
try {
return getApplicationInstanceId();
Expand Down

0 comments on commit d7658d4

Please sign in to comment.