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

[ISSUE #2898] Resolve rocketmq-example project failed during checkstyle execution. #2899

Merged
merged 1 commit into from
May 19, 2021

Conversation

zhangjidi2016
Copy link
Contributor

Make sure set the target branch to develop

What is the purpose of the change

#2898

@coveralls
Copy link

coveralls commented May 17, 2021

Coverage Status

Coverage decreased (-0.02%) to 52.359% when pulling fbb35d3 on zhangjidi2016:develop into be6eaf8 on apache:develop.

Copy link
Member

@francisoliverlee francisoliverlee left a comment

Choose a reason for hiding this comment

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

as i build with lastest codes, all is fine.
check your local IDE config

@zhangjidi2016
Copy link
Contributor Author

When I use the CheckStyle plugin to check the code following the checkstyle.xml specification in RocketMQ, the check does not pass
image
image

@codecov-commenter
Copy link

Codecov Report

Merging #2899 (fbb35d3) into develop (be6eaf8) will decrease coverage by 0.08%.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #2899      +/-   ##
=============================================
- Coverage      46.67%   46.58%   -0.09%     
+ Complexity      4418     4413       -5     
=============================================
  Files            552      552              
  Lines          36500    36500              
  Branches        4828     4828              
=============================================
- Hits           17035    17003      -32     
- Misses         17344    17376      +32     
  Partials        2121     2121              
Impacted Files Coverage Δ Complexity Δ
...ain/java/org/apache/rocketmq/test/util/MQWait.java 43.24% <0.00%> (-16.22%) 3.00% <0.00%> (-1.00%)
...org/apache/rocketmq/common/stats/StatsItemSet.java 43.28% <0.00%> (-8.96%) 17.00% <0.00%> (-3.00%)
...ketmq/client/impl/consumer/PullMessageService.java 75.55% <0.00%> (-4.45%) 9.00% <0.00%> (-1.00%)
...he/rocketmq/client/impl/consumer/ProcessQueue.java 58.60% <0.00%> (-3.73%) 31.00% <0.00%> (-2.00%)
...nt/impl/consumer/ConsumeMessageOrderlyService.java 38.98% <0.00%> (-3.62%) 16.00% <0.00%> (ø%)
...a/org/apache/rocketmq/store/StoreStatsService.java 29.50% <0.00%> (-1.32%) 26.00% <0.00%> (-2.00%)
...etmq/client/latency/LatencyFaultToleranceImpl.java 50.00% <0.00%> (-1.29%) 8.00% <0.00%> (ø%)
...java/org/apache/rocketmq/logging/inner/Logger.java 51.67% <0.00%> (-0.96%) 28.00% <0.00%> (ø%)
...org/apache/rocketmq/store/DefaultMessageStore.java 55.31% <0.00%> (-0.30%) 109.00% <0.00%> (-1.00%)
...mq/client/impl/producer/DefaultMQProducerImpl.java 44.89% <0.00%> (+0.24%) 83.00% <0.00%> (ø%)
... and 7 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 be6eaf8...fbb35d3. Read the comment docs.

@vongosling
Copy link
Member

Yes, you are correct. Note that we have bound checkstyle to verify the phase now. If bound to the validate phase, it would check the code prior to compiling the code. If the code is invalid, the parsing errors reported by checkstyle may be different than what would be expected from the javac compiler. However, it's guaranteed to run. But for verify phase which would run much later (and allow the javac compiler to flag invalid code prior to checkstyle). However, if developers generally just use "mvn test" prior to pushing changes, checkstyle would not run as verify occurs after the test phase.

@vongosling vongosling merged commit d26f507 into apache:develop May 19, 2021
vongosling added a commit that referenced this pull request May 19, 2021
* [ISSUE #1233] Fix CVE-2011-1473

* fix Multiple instances in the same application share MQClientInstance

* [ISSUE #2748] Fix deleteSubscriptionGroup not remove consumer offset

* [ISSUE #2745] Changed the support time of the request/reply feature to 4.6.0.

Co-authored-by: von gosling <vongosling@apache.org>

* [ISSUE #2729] Replace with Math.min method call

* [ISSUE #2801]Fix NamesrvAddr connot set in Producer

* [ISSUE 2800] optimize: the spelling of topicSynFlag

Co-authored-by: ph3636 <tianxingguang@kanzhun.com>

* [ISSUE #2803] Fix the endpoint cannot get instanceId without http (#2804)

* fix the endpoint cannot get instanceId without http

* fix the endpoint cannot get instanceId without http

* add unit test

* add unit test

* add unit test

Co-authored-by: panzhi33 <wb-pz502261@alibaba-inc.com>

* fix messageArrivingListener NPE

* [ISSUE #2538]Optimize log output when message trace saving fails

* [ISSUE #2811] Fix the wrong topic was consumed in the DefaultMessageStoreTest test program

* [ISSUE #2821] Overriding the ServiceThread#shutdown in HAClient class

* [ISSUE #2805] remove redundant package imports

* [ISSUE #2833] Support trace for TranscationProducer (#2834)

* [ISSUE #2732] Fix message loss problem when rebalance with LitePullConsumer (#2832)

* [ISSUE #2732] Fix message loss problem when rebalance with LitePullConsumer

* Fix message loss problem when rebalance with LitePullConsumer, update 2

* [ISSUE #2846]fix -E might not port to other systems

* fix some nonconformity after checkstyle

* Support OpenTracing(#2861)

* [ISSUE #2872] remove log files created by integration test when mvn clean

* [ISSUE #2872] move log files created by integration test to target dir

* Change log level to debug: "Half offset {} has been committed/rolled back"

* Fix unit test stability

Bump mockito-core to 3.10.0, remove powermock dependency, suppress useless logging

* [ISSUE #2898] Resolve rocketmq-example project failed during checkstyle execution (#2899)

Co-authored-by: SSpirits <shadowyspirits@outlook.com>
Co-authored-by: panzhi33 <wb-pz502261@alibaba-inc.com>
Co-authored-by: panzhi <panzhi33@qq.com>
Co-authored-by: ArronHuang <41609451+ArronHuang@users.noreply.github.com>
Co-authored-by: von gosling <vongosling@apache.org>
Co-authored-by: drgnchan <40224023+drgnchan@users.noreply.github.com>
Co-authored-by: zhangjidi2016 <zhangjidi@cmss.chinamobile.com>
Co-authored-by: ph3636 <38041490+ph3636@users.noreply.github.com>
Co-authored-by: ph3636 <tianxingguang@kanzhun.com>
Co-authored-by: BurningCN <1015773611@qq.com>
Co-authored-by: francis lee <francislee.cn@outlook.com>
Co-authored-by: 灼华 <43363120+BurningCN@users.noreply.github.com>
Co-authored-by: yuz10 <845238369@qq.com>
Co-authored-by: huangli <areyouok@gmail.com>
Co-authored-by: chenrl <raymond2366@outlook.com>
Co-authored-by: ayanamist <ayanamist@gmail.com>
Co-authored-by: zhangjidi2016 <1017543663@qq.com>
@zhangjidi2016 zhangjidi2016 deleted the develop branch May 19, 2021 08:21
GenerousMan pushed a commit to GenerousMan/rocketmq that referenced this pull request Aug 12, 2022
pulllock pushed a commit to pulllock/rocketmq that referenced this pull request Oct 19, 2023
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.

Resolve rocketmq-example project failed during checkstyle execution.
5 participants