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

[ROCKETMQ-284] ExpressionMessageFilter will pass some message. #160

Closed
wants to merge 2 commits into from

Conversation

vsair
Copy link
Contributor

@vsair vsair commented Aug 29, 2017

https://issues.apache.org/jira/browse/ROCKETMQ-284

Solution:

Keep the tagscode transfer into MessageFilter is legal.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 38.67% when pulling 0c9495f on vsair:ROCKETMQ-284 into 4c5e58b on apache:develop.

Copy link
Member

@zhouxinyu zhouxinyu left a comment

Choose a reason for hiding this comment

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

LGTM~

@vsair
Copy link
Contributor Author

vsair commented Aug 29, 2017

@vongosling pls have a review.

putMsg(master, topicCount, msgPerTopic);
// sleep to wait for consume queue has been constructed.
Thread.sleep(200);
} catch (Exception e) {
Copy link
Member

Choose a reason for hiding this comment

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

Could we using expected for exception test ?

public void testGetMessage_withFilter_checkTagsCode() {
try {
putMsg(master, topicCount, msgPerTopic);
// sleep to wait for consume queue has been constructed.
Copy link
Member

Choose a reason for hiding this comment

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

Must we use latch to replace sleep ? Now ,we have polished our unit test within 3 minutes, thoughts ?@shroman

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sleep to replace sleep ?

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 38.755% when pulling 3f78c4e on vsair:ROCKETMQ-284 into 4c5e58b on apache:develop.

@@ -79,24 +79,17 @@
try {
StoreHost = new InetSocketAddress(InetAddress.getLocalHost(), 8123);
} catch (UnknownHostException e) {
e.printStackTrace();
}
try {
BornHost = new InetSocketAddress(InetAddress.getByName("127.0.0.1"), 0);
} catch (UnknownHostException e) {
Copy link
Member

Choose a reason for hiding this comment

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

no need to delete catch part ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here, don't care about this exception, so not hide it .

} catch (Exception e) {
e.printStackTrace();
assertThat(true).isFalse();
}
Copy link
Member

Choose a reason for hiding this comment

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

Excellent !

asfgit pushed a commit that referenced this pull request Aug 29, 2017
Closes #160 from vsair/ROCKETMQ-284.
@vsair vsair closed this Aug 29, 2017
asfgit pushed a commit that referenced this pull request Aug 29, 2017
Author: vsair <liuxuedee@gmail.com>

Closes #160 from vsair/ROCKETMQ-284.
lizhanhui pushed a commit to lizhanhui/rocketmq that referenced this pull request Jun 25, 2019
lizhanhui pushed a commit to lizhanhui/rocketmq that referenced this pull request Jun 25, 2019
Author: vsair <liuxuedee@gmail.com>

Closes apache#160 from vsair/ROCKETMQ-284.

Conflicts:
	broker/src/test/java/org/apache/rocketmq/broker/filter/MessageStoreWithFilterTest.java
JiaMingLiu93 pushed a commit to JiaMingLiu93/rocketmq that referenced this pull request May 28, 2020
Author: vsair <liuxuedee@gmail.com>

Closes apache#160 from vsair/ROCKETMQ-284.
lollipopjin added a commit to lollipopjin/rocketmq that referenced this pull request Jun 16, 2022
…ature_1

* origin/develop_with_prehistory: (3800 commits)
  Issue apache#179 [BUG]check properties length
  Issue apache#161 printmsg bug 修复
  Issue apache#175 change version to 3.6.3-SNAPSHOT
  Issue apache#175 pub 3.6.2 server release
  Issue apache#174 顺序消息重试次数超过默认值,导致消息直接进入死信队列
  Issue apache#173 日志滚动异常,更新日志配置
  Issue apache#172 rebalance 抛 Error 异常,导致 rebalance 被中断
  Issue apache#171 指定消息 id 进行重新发送
  Issue apache#146 add trace hook switch and consume return type
  Issue apache#146 add trace hook switch and consume return type
  Issue apache#169
  Issue apache#158 1. Unify config manager to configuration in common. 2. Configuration is hold in controller. 3. Extend config object or property can register to configuration.
  Issue apache#163 1. command of get broker config
  Issue apache#163 1. Directly print msg after query by queue offset.
  Issue apache#163 1. format file header
  Issue apache#163 1. support for modifying the config of name server dynamically 2. add two request codes 3. add two commands 3. set config store path when start up using special property file
  Issue apache#137 【买卖家】队列热点数据分析
  Issue apache#162 ConsumerConnection 获取连接失败。
  Issue apache#161 printmsg 使用 tag 过滤时,拉消息不全
  Issue apache#160 重置位点优化
  ...
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.

None yet

4 participants