Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[ISSUE#8142] Show time of create topic and subScriptionGroup#8143

Merged
RongtongJin merged 3 commits intoapache:developapache/rocketmq:developfrom
superdev42:developsuperdev42/rocketmq:developCopy head branch name to clipboard
May 20, 2024
Merged

[ISSUE#8142] Show time of create topic and subScriptionGroup#8143
RongtongJin merged 3 commits intoapache:developapache/rocketmq:developfrom
superdev42:developsuperdev42/rocketmq:developCopy head branch name to clipboard

Conversation

@superdev42
Copy link
Copy Markdown
Contributor

execution time of create topic and subscription

Fixes #8142

show time of create topic and subScriptionGroup

add logs of execution time of create topic and subscription

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 15, 2024

Codecov Report

❌ Patch coverage is 87.50000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 42.85%. Comparing base (2fdafd2) to head (06bb759).
⚠️ Report is 473 commits behind head on develop.

Files with missing lines Patch % Lines
...ocketmq/broker/processor/AdminBrokerProcessor.java 87.50% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #8143      +/-   ##
=============================================
- Coverage      42.95%   42.85%   -0.11%     
+ Complexity     10384    10355      -29     
=============================================
  Files           1270     1270              
  Lines          88690    88696       +6     
  Branches       11401    11402       +1     
=============================================
- Hits           38097    38010      -87     
- Misses         45899    45978      +79     
- Partials        4694     4708      +14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

response.setRemark(null);
long endTime = System.currentTimeMillis();
long executionTime = endTime - startTime;
LOGGER.info("" + config.getGroupName() + " is " + executionTime + "ms");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

这里为什么开头要加一个空字符串?

while (iterator.hasNext()) {
ConsumerFilterData filterData = iterator.next();


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No need blank line

long endTime = System.currentTimeMillis();
long executionTime = endTime - startTime;
LOGGER.info("" + config.getGroupName() + " is " + executionTime + "ms");
LOGGER.info("" + config.getGroupName() + " is " + executionTime + "ms");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Repeated line

Comment on lines +519 to +521
long endTime = System.currentTimeMillis();
long executionTime = endTime - startTime;
LOGGER.info("executionTime of create topic:" + topic + " is " + executionTime + "ms");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you simplify the code?

Copy link
Copy Markdown
Contributor

@guyinyou guyinyou left a comment

Choose a reason for hiding this comment

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

lgtm

@RongtongJin
Copy link
Copy Markdown
Contributor

ping @humkum Do you have any more suggestions?

@RongtongJin RongtongJin merged commit 256217f into apache:develop May 20, 2024
RongtongJin pushed a commit that referenced this pull request Jul 19, 2025
* show time of create topic and subScriptionGroup

* show time of create topic and subScriptionGroup again

* show time of create topic and subScriptionGroup changed

---------

Co-authored-by: wengxiaolong <22260113@zju.edu.cn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

execution time of create topic and subscription

7 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.