Skip to content
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

[INLONG-9109][Manager] Fix the issue of streamApi URL errors #9110

Merged
merged 4 commits into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,8 @@ public InlongGroupInfo getGroupInfo(String inlongGroupId) {

if (responseBody.getErrMsg().contains("not exist")) {
return null;
} else {
throw new RuntimeException(responseBody.getErrMsg());
}
throw new RuntimeException(responseBody.getErrMsg());
}

/**
Expand All @@ -130,9 +129,8 @@ public PageResult<InlongGroupBriefInfo> listGroups(String keyword, int status, i
}
if (pageInfoResponse.getErrMsg().contains("not exist")) {
return null;
} else {
throw new RuntimeException(pageInfoResponse.getErrMsg());
}
throw new RuntimeException(pageInfoResponse.getErrMsg());
}

/**
Expand Down Expand Up @@ -263,9 +261,8 @@ public InlongGroupCountResponse countGroupByUser() {
InlongGroupCountResponse.class);
} else if (response.getErrMsg().contains("not exist")) {
return null;
} else {
throw new RuntimeException(response.getErrMsg());
}
throw new RuntimeException(response.getErrMsg());
}

public InlongGroupTopicInfo getTopic(String id) {
Expand All @@ -275,9 +272,8 @@ public InlongGroupTopicInfo getTopic(String id) {
InlongGroupTopicInfo.class);
} else if (response.getErrMsg().contains("not exist")) {
return null;
} else {
throw new RuntimeException(response.getErrMsg());
}
throw new RuntimeException(response.getErrMsg());
}

public List<InlongGroupTopicInfo> listTopics(InlongGroupTopicRequest request) {
Expand All @@ -287,8 +283,7 @@ public List<InlongGroupTopicInfo> listTopics(InlongGroupTopicRequest request) {
return response.getData();
} else if (response.getErrMsg().contains("not exist")) {
return null;
} else {
throw new RuntimeException(response.getErrMsg());
}
throw new RuntimeException(response.getErrMsg());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,8 @@ public InlongStreamInfo getStreamInfo(String groupId, String streamId) {
}
if (response.getErrMsg().contains("not exist")) {
return null;
} else {
throw new RuntimeException(response.getErrMsg());
}
throw new RuntimeException(response.getErrMsg());
}

/**
Expand All @@ -119,9 +118,8 @@ public InlongStreamBriefInfo getStreamBriefInfo(String groupId, String streamId)
}
if (response.getErrMsg().contains("not exist")) {
return null;
} else {
throw new RuntimeException(response.getErrMsg());
}
throw new RuntimeException(response.getErrMsg());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public interface InlongStreamApi {
Call<Response<InlongStreamInfo>> getStream(@Query("groupId") String groupId,
@Query("streamId") String streamId);

@GET("/stream/getBrieft")
@GET("/stream/getBrief")
Call<Response<InlongStreamBriefInfo>> getStreamBriefInfo(@Query("groupId") String groupId,
@Query("streamId") String streamId);

Expand Down