Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
260ff49
[HOTFIX] Remove imported dirty file frrm pull request
zhouxinyu Dec 18, 2017
0fc36a8
[HOTFIX] Exclude test cert files from rat check
zhouxinyu Dec 18, 2017
285c780
[HOTFIX] Move pull request template to .github
zhouxinyu Dec 18, 2017
2d43e75
[HOTFIX] Update the out of date test certificates
zhouxinyu Jan 16, 2018
dd8a60f
Add a modified version of ISSUE_TEMPLATE that created by the bookkeep…
zhouxinyu Mar 5, 2018
ed1dfcf
Polish the readme with Github issue link
zhouxinyu Mar 5, 2018
a5d72be
[HOTFIX][ROCKETMQ-356] Change MQVersion to 4.2.0
zhouxinyu Mar 6, 2018
df68b39
polish the issues
vongosling Mar 26, 2018
4a02ce9
Polish the issues template
vongosling Mar 26, 2018
2e5e6c5
Polish the issues template
vongosling Mar 26, 2018
3d56841
Polish end
vongosling Mar 26, 2018
4b6490c
Delete useless file
vongosling Apr 20, 2018
3598ae5
Remove the useless file when release after incubation
vongosling Apr 24, 2018
9a40506
Remove the useless file when release after incubation
vongosling Apr 24, 2018
117d690
Modify Project Tools : remove duplicates initCommand and missing tag …
lonsonlee Apr 27, 2018
a8ef6d6
Minor fix for log typo
vongosling Apr 27, 2018
fdc6e87
Fix Concurrent issue of StoreStatsService
Mar 28, 2018
bc84984
Fix licence
Mar 29, 2018
61009b7
Revert "Fix licence"
lizhanhui May 28, 2018
130c85c
Revert "Fix Concurrent issue of StoreStatsService"
lizhanhui May 28, 2018
328ad4c
Retire the Jira issue
vongosling Jun 5, 2018
8285d70
Create slack channel for community
vongosling Jun 7, 2018
cdb494c
Update issue templates
vongosling Jul 5, 2018
c6b3493
Delete ISSUE_TEMPLATE.md
vongosling Jul 5, 2018
4408076
Add some exclude files in nat
Jul 5, 2018
0ec1c10
Update PULL_REQUEST_TEMPLATE.md
vongosling Jul 12, 2018
0f76489
[ROCKETMQ-290] Fix memory leak in WaitNotifyObject#waitingThreadTable…
Jason918 Jul 14, 2018
3bf25f2
fix wrong word eclipse to elapsed
Jul 18, 2018
afe2bfd
usually debug is not allowed at production mode. so adding condition…
Jul 18, 2018
fb359e2
there is no need to use ConcurrentHashMap at synchronized method. Usi…
Jul 19, 2018
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
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: ISSUE_TEMPLATE
about: Describe this issue template's purpose here.

---

The issue tracker is **ONLY** used for bug report and feature request. Keep in mind, please check whether there is an existing same report before your raise a new one.

Alternately (especially if your communication is not a bug report), you can send mail to our [mailing lists](http://rocketmq.apache.org/about/contact/). We welcome any friendly suggestions, bug fixes, collaboration and other improvements.

Please ensure that your bug report is clear and that it is complete. Otherwise, we may be unable to understand it or to reproduce it, either of which would prevent us from fixing the bug. We strongly recommend the report(bug report or feature request) could include some hints as the following:

**BUG REPORT**

1. Please describe the issue you observed:

- What did you do (The steps to reproduce)?

- What did you expect to see?

- What did you see instead?

2. Please tell us about your environment:

3. Other information (e.g. detailed explanation, logs, related issues, suggestions how to fix, etc):

**FEATURE REQUEST**

1. Please describe the feature you are requesting.

2. Provide any additional detail on your proposed use case for this feature.

2. Indicate the importance of this issue to you (blocker, must-have, should-have, nice-to-have). Are you currently using any workarounds to address this issue?

4. If there are some sub-tasks using -[] for each subtask and create a corresponding issue to map to the sub task:

- [sub-task1-issue-number](example_sub_issue1_link_here): sub-task1 description here,
- [sub-task2-issue-number](example_sub_issue2_link_here): sub-task2 description here,
- ...
22 changes: 22 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Please do not create a Pull Request without creating an issue first.

## What is the purpose of the change

XXXXX

## Brief changelog

XX

## Verifying this change

XXXX

Follow this checklist to help us incorporate your contribution quickly and easily.

- [x] Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
- [ ] Format the pull request title like `[ISSUE #123] Fix UnknownException when host config not exist`. Each commit in the pull request should have a meaningful subject line and body.
- [ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
- [ ] Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in [test module](https://github.com/apache/rocketmq/tree/master/test).
- [ ] Run `mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle` to make sure basic checks pass. Run `mvn clean install -DskipITs` to make sure unit-test pass. Run `mvn clean test-compile failsafe:integration-test` to make sure integration-test pass.
- [ ] If this contribution is large, please file an [Apache Individual Contributor License Agreement](http://www.apache.org/licenses/#clas).
105 changes: 0 additions & 105 deletions 1

This file was deleted.

20 changes: 0 additions & 20 deletions PULL_REQUEST_TEMPLATE.md

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ It offers a variety of features:
* Mailing Lists: <https://rocketmq.apache.org/about/contact/>
* Home: <https://rocketmq.apache.org>
* Docs: <https://rocketmq.apache.org/docs/quick-start/>
* Issues: <https://issues.apache.org/jira/browse/RocketMQ>
* Issues: <https://github.com/apache/rocketmq/issues>
* Ask: <https://stackoverflow.com/questions/tagged/rocketmq>
* Slack: <https://rocketmq-community.slack.com/>


----------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ public synchronized void registerBrokerAll(final boolean checkOrderConfig, boole

if (!PermName.isWriteable(this.getBrokerConfig().getBrokerPermission())
|| !PermName.isReadable(this.getBrokerConfig().getBrokerPermission())) {
ConcurrentHashMap<String, TopicConfig> topicConfigTable = new ConcurrentHashMap<String, TopicConfig>();
HashMap<String, TopicConfig> topicConfigTable = new HashMap<String, TopicConfig>();
for (TopicConfig topicConfig : topicConfigWrapper.getTopicConfigTable().values()) {
TopicConfig tmp =
new TopicConfig(topicConfig.getTopicName(), topicConfig.getReadQueueNums(), topicConfig.getWriteQueueNums(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ private RemotingCommand processRequest(final Channel channel, RemotingCommand re
(PullMessageRequestHeader) request.decodeCommandCustomHeader(PullMessageRequestHeader.class);

response.setOpaque(request.getOpaque());

log.debug("receive PullMessage request command, {}", request);
if(log.isDebugEnabled()) {
log.debug("receive PullMessage request command, {}", request);
}

if (!PermName.isReadable(this.brokerController.getBrokerConfig().getBrokerPermission())) {
response.setCode(ResponseCode.NO_PERMISSION);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public MQClientInstance(ClientConfig clientConfig, int instanceIndex, String cli

this.consumerStatsManager = new ConsumerStatsManager(this.scheduledExecutorService);

log.info("created a new client Instance, FactoryIndex: {} ClinetID: {} {} {}, serializeType={}",
log.info("Created a new client Instance, InstanceIndex:{}, ClientID:{}, ClientConfig:{}, ClientVersion:{}, SerializerType:{}",
this.instanceIndex,
this.clientId,
this.clientConfig,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

public class MQVersion {

public static final int CURRENT_VERSION = Version.V4_2_0_SNAPSHOT.ordinal();
public static final int CURRENT_VERSION = Version.V4_2_0.ordinal();

public static String getVersionDesc(int value) {
int length = Version.values().length;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void shutdown(final boolean interrupt) {
this.thread.join(this.getJointime());
}
long eclipseTime = System.currentTimeMillis() - beginTime;
log.info("join thread " + this.getServiceName() + " eclipse time(ms) " + eclipseTime + " "
log.info("join thread " + this.getServiceName() + " elapsed time(ms) " + eclipseTime + " "
+ this.getJointime());
} catch (InterruptedException e) {
log.error("Interrupted", e);
Expand Down
15 changes: 0 additions & 15 deletions distribution/bin/runbroker

This file was deleted.

1 change: 0 additions & 1 deletion distribution/release-client.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
<fileSet>
<directory>../</directory>
<includes>
<include>DISCLAIMER</include>
<include>README.md</include>
</includes>
</fileSet>
Expand Down
1 change: 0 additions & 1 deletion distribution/release.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
<fileSet>
<directory>../</directory>
<includes>
<include>DISCLAIMER</include>
<include>README.md</include>
</includes>
</fileSet>
Expand Down
6 changes: 4 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,12 @@
<version>0.12</version>
<configuration>
<excludes>
<exclude>.gitignore</exclude>
<exclude>.travis.yml</exclude>
<exclude>CONTRIBUTING.md</exclude>
<exclude>bin/README.md</exclude>
<exclude>PULL_REQUEST_TEMPLATE.md</exclude>
<exclude>**/README.md</exclude>
<exclude>.github/**/*</exclude>
<exclude>**/test/resources/**/*</exclude>
</excludes>
</configuration>
</plugin>
Expand Down
29 changes: 15 additions & 14 deletions remoting/src/test/resources/certs/client.pem
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
-----BEGIN CERTIFICATE-----
MIIC8zCCAdsCAQIwDQYJKoZIhvcNAQEFBQAwfDELMAkGA1UEBhMCemgxCzAJBgNV
MIIDATCCAekCAQIwDQYJKoZIhvcNAQEFBQAwfDELMAkGA1UEBhMCemgxCzAJBgNV
BAgMAnpqMQswCQYDVQQHDAJoejEPMA0GA1UECgwGYXBhY2hlMREwDwYDVQQLDAhy
b2NrZXRtcTEOMAwGA1UEAwwFeXVrb24xHzAdBgkqhkiG9w0BCQEWEHl1a29uQGFw
YWNoZS5vcmcwHhcNMTcxMjExMDkyOTUyWhcNMTgwMTEwMDkyOTUyWjCBhjELMAkG
A1UEBhMCemgxCzAJBgNVBAgMAnpqMQswCQYDVQQHDAJoejEPMA0GA1UECgwGYXBh
Y2hlMREwDwYDVQQLDAhyb2NrZXRtcTEWMBQGA1UEAwwNZm9vYmFyLmNsaWVudDEh
MB8GCSqGSIb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0E+ChuCFBgFqdY9U
E0suW3DX0Mt/WB3pAgMBAAEwDQYJKoZIhvcNAQEFBQADggEBAFGPaZKyCZzQihKj
n/7I1J0wKl1HrU7N4sOie8E+ntcpKeX9zKYAou/4Iy0qwgxgRsnucB1rDous560a
+8DFDU8+FnikK9cQtKfQqu4F266IkkXolviZMSfkmB+NIsByIl95eMJlQHVlAvnX
vnpGdhD/Jhs+acE1VHhO6K+8omKLA6Og8MmYGRwmnBLcxIvqoSNDlEShfQyjaECg
I4bEi4ZhH3lSHE46FybJdoxDbj9IjHWqpOnjM23EOyfd1zcwOZJA7a54kfOpiTjz
wrtes5yoQznun5WtGcLM8ZmyaQ+Jr3j6NyZhOwULzK1+A8YUsW6Ww39xTxQoIHEQ
7eirb54=
-----END CERTIFICATE-----
29 changes: 15 additions & 14 deletions remoting/src/test/resources/certs/server.pem
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
-----BEGIN CERTIFICATE-----
MIIC5DCCAcwCAQEwDQYJKoZIhvcNAQEFBQAwfDELMAkGA1UEBhMCemgxCzAJBgNV
MIIDATCCAekCAQIwDQYJKoZIhvcNAQEFBQAwfDELMAkGA1UEBhMCemgxCzAJBgNV
BAgMAnpqMQswCQYDVQQHDAJoejEPMA0GA1UECgwGYXBhY2hlMREwDwYDVQQLDAhy
b2NrZXRtcTEOMAwGA1UEAwwFeXVrb24xHzAdBgkqhkiG9w0BCQEWEHl1a29uQGFw
YWNoZS5vcmcwHhcNMTcxMjExMDkyNjIwWhcNMTgwMTEwMDkyNjIwWjB4MQswCQYD
VQQGEwJ6aDELMAkGA1UECAwCemoxCzAJBgNVBAcMAmh6MQ8wDQYDVQQKDAZhcGFj
aGUxETAPBgNVBAsMCHJvY2tldG1xMQ8wDQYDVQQDDAZmb29iYXIxGjAYBgkqhkiG
9w0BCQEWC2Zvb0BiYXIuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDr
JqeGLayEbAXQUC8jyJmnwkcp0yZbNzT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E5qlHkcVxG2JZjO3p5UETwOyNUpU4dpu3uT
7WSdygH4Iagl87ILpGsob9pAf0joAbaXAY4sGDhg+WjR5JInAxbmT+QWZ+4NTuLQ
fSudUSJrv+HmUlmcVOvLiNStgt9rbtcgJAvpVwY+iCv0HQziFuQxmOkDv09ZLzu/
lxCMqnbgkEFYkwdntN6MVk38K3MovszedGO/n19hNOFss7nn5XDEeEnc6BqKGdck
YDoy6amohY0Ds0o0gJ2rq0Y8Gjl9spQ3oeXpoNUoz84OF4KIBRTzSMv8CrmqPdFY
Zd2MGjw=
-----END CERTIFICATE-----
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ public void run() {
}
}

HAConnection.this.haService.getWaitNotifyObject().removeFromWaitingThreadTable();

if (this.selectMappedBufferResult != null) {
this.selectMappedBufferResult.release();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,11 @@ public void allWaitForRunning(long interval) {
}
}
}

public void removeFromWaitingThreadTable() {
long currentThreadId = Thread.currentThread().getId();
synchronized (this) {
this.waitingThreadTable.remove(currentThreadId);
}
}
}
Loading