You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/06/11 07:20:06 UTC

[GitHub] [incubator-inlong] ciscozhou opened a new pull request, #4630: [INLONG-4602][Manager]Remove the ClusterBean class

ciscozhou opened a new pull request, #4630:
URL: https://github.com/apache/incubator-inlong/pull/4630

   ### Prepare a Pull Request
   *(Change the title refer to the following example)*
   
   - Title Example: [INLONG-4602][Manager]Remove the ClusterBean class
   
   *(The following *XYZ* should be replaced by the actual [GitHub Issue](https://github.com/apache/incubator-inlong/issues) number)*
   
   - Fixes #4602 
   
   ### Motivation
   
   *Explain here the context, and why you're making that change. What is the problem you're trying to solve?*
   
   ### Modifications
   
   *Describe the modifications you've done.*
   
   ### Verifying this change
   
   *(Please pick either of the following options)*
   
   - [ ] This change is a trivial rework/code cleanup without any test coverage.
   
   - [ ] This change is already covered by existing tests, such as:
     *(please describe tests)*
   
   - [ ] This change added tests and can be verified as follows:
   
     *(example:)*
     - *Added integration tests for end-to-end deployment with large payloads (10MB)*
     - *Extended integration test for recovery after broker failure*
   
   ### Documentation
   
     - Does this pull request introduce a new feature? (yes / no)
     - If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
     - If a feature is not applicable for documentation, explain why?
     - If a feature is not documented yet in this PR, please create a follow-up issue for adding the documentation
   


-- 
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: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-inlong] healchow merged pull request #4630: [INLONG-4602][Manager] Remove the ClusterBean class

Posted by GitBox <gi...@apache.org>.
healchow merged PR #4630:
URL: https://github.com/apache/incubator-inlong/pull/4630


-- 
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: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-inlong] healchow commented on a diff in pull request #4630: [INLONG-4602][Manager] Remove the ClusterBean class

Posted by GitBox <gi...@apache.org>.
healchow commented on code in PR #4630:
URL: https://github.com/apache/incubator-inlong/pull/4630#discussion_r894993603


##########
inlong-manager/manager-web/src/main/resources/application-prod.properties:
##########
@@ -54,19 +54,10 @@ cluster.tube.master=127.0.0.1:8000,127.0.0.1:8010
 # Tube cluster ID
 cluster.tube.clusterId=1
 
-# Push configuration to the path on ZooKeeper
-cluster.zk.url=127.0.0.1:2181
-cluster.zk.root=inlong_hive
-
-# Application name in Sort
-sort.appName=inlong_app
-
 # Pulsar admin URL
 pulsar.adminUrl=http://127.0.0.1:8080,127.0.0.2:8080,127.0.0.3:8080

Review Comment:
   Please check if those Pulsar parameters are used. If not, it is recommended to delete it.



##########
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/core/impl/ConsumptionServiceImpl.java:
##########
@@ -418,6 +402,12 @@ private void fullConsumptionInfo(ConsumptionInfo info) {
                 streamTopics.forEach(stream -> topicSet.remove(stream.getMqResource()));
                 Preconditions.checkEmpty(topicSet, "topic [" + topicSet + "] not belong to inlong group " + groupId);
             }
+            InlongGroupEntity inlongGroupEntity = groupMapper.selectByGroupId(groupId);
+            if (null != inlongGroupEntity) {
+                info.setTopic(String.format(InlongGroupSettings.PULSAR_TOPIC_FORMAT, "public",

Review Comment:
   The default tenant is `public`, but before the default value, we should query from the cluster first.
   
   Please refer to the `InlongClusterService#getOne` to get more information.



##########
inlong-manager/manager-web/src/main/resources/application-prod.properties:
##########
@@ -54,19 +54,10 @@ cluster.tube.master=127.0.0.1:8000,127.0.0.1:8010
 # Tube cluster ID
 cluster.tube.clusterId=1

Review Comment:
   Please check if this parameter is used. If not, it is recommended to delete it.



-- 
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: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org