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-2161][Feature][Manager] add the sort_cluster_config table for getClusterConfig interface #2287

Merged
merged 2 commits into from
Jan 23, 2022

Conversation

vernedeng
Copy link
Contributor

Title Name: [INLONG-2161][component] Define the sort_cluster_config table

Fixes #2161

Motivation

Define sort_cluster_config table.
Use cluster name to select the corresponding tasks and the sink type of each task.

Modifications

Add mappers of sort_cluster_config
Add invalid cluster name check.
Add UT of blank cluster name

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

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 followup issue for adding the documentation

@codecov-commenter
Copy link

Codecov Report

Merging #2287 (8aa65dc) into master (2dbfa28) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #2287   +/-   ##
=========================================
  Coverage     12.54%   12.54%           
  Complexity     1217     1217           
=========================================
  Files           420      420           
  Lines         36235    36229    -6     
  Branches       5674     5670    -4     
=========================================
  Hits           4545     4545           
+ Misses        30881    30875    -6     
  Partials        809      809           
Impacted Files Coverage Δ
...rg/apache/inlong/tubemq/server/tools/CliUtils.java 0.00% <0.00%> (ø)
...apache/inlong/tubemq/server/broker/TubeBroker.java 0.00% <0.00%> (ø)
...pache/inlong/tubemq/server/master/utils/Chore.java 0.00% <0.00%> (ø)
...ache/inlong/tubemq/server/tools/BdbGroupAdmin.java 0.00% <0.00%> (ø)
...he/inlong/tubemq/server/tools/cli/CliConsumer.java 0.00% <0.00%> (ø)
...he/inlong/tubemq/server/tools/cli/CliProducer.java 0.00% <0.00%> (ø)
...e/inlong/tubemq/server/tools/StoreRepairAdmin.java 0.00% <0.00%> (ø)
...inlong/tubemq/server/tools/cli/CliBrokerAdmin.java 0.00% <0.00%> (ø)
...ng/tubemq/server/master/web/common/BaseResult.java 0.00% <0.00%> (ø)
...bemq/server/broker/msgstore/disk/MsgFileStore.java 0.00% <0.00%> (ø)
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2dbfa28...8aa65dc. Read the comment docs.

@dockerzhang dockerzhang changed the title [INLONG-2161][Feature][Manager] Define the sort_cluster_config table of getClusterConfig interface [INLONG-2161][Feature][Manager] add the sort_cluster_config table for getClusterConfig interface Jan 23, 2022
@dockerzhang dockerzhang added this to the 0.13.0 milestone Jan 23, 2022
@dockerzhang dockerzhang requested review from gosonzhang, dockerzhang and aloyszhang and removed request for gosonzhang January 23, 2022 09:27
Copy link
Contributor

@gosonzhang gosonzhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@dockerzhang dockerzhang requested review from healchow and removed request for aloyszhang January 23, 2022 11:32
@dockerzhang dockerzhang merged commit ab9e725 into apache:master Jan 23, 2022
@vernedeng vernedeng deleted the INLONG-2161 branch January 23, 2022 12:54
private String clusterName;
private String taskName;
private String sinkType;
private static final long serialVersionUID = 1L;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

serialVersionUID is invalid.

enableUpdateByPrimaryKey="true"
enableDeleteByPrimaryKey="true" enableInsert="true"
enableCountByExample="false" enableDeleteByExample="false"
enableSelectByExample="false" enableUpdateByExample="false"/>-->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove unuse code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature][InLong-Manager] Manager support getClusterConfig
5 participants