Skip to content

Conversation

@wangshaojie4039
Copy link
Contributor

  1. basicReturn impl
  2. ConsumerPriorities
  3. some test repair

if (amqpExchange.getDurable()) {
PersistentTopic topic = (PersistentTopic) amqpExchange.getTopic();
if (ifUnused && topic.getSubscriptions().isEmpty()) {
if (ifUnused && amqpExchange.getQueueSize() > 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems that AmqpExchange availability has nothing to do with AmqpExchange durable, maybe we could do the availability check before judge AmqpExchange durable.

} else {
// Is this exchange in used?
if (amqpExchange.getQueueSize() > 0) {
if (ifUnused && amqpExchange.getQueueSize() > 0) {
Copy link
Collaborator

@gaoran10 gaoran10 Jun 16, 2020

Choose a reason for hiding this comment

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

Same as the above comment.

BUILDIN_EXCHANGE_NAME_SET.put(ExchangeDefaults.DIRECT_EXCHANGE_NAME, AmqpExchange.Type.Direct);
BUILDIN_EXCHANGE_NAME_SET.put(ExchangeDefaults.FANOUT_EXCHANGE_NAME, AmqpExchange.Type.Fanout);
BUILDIN_EXCHANGE_NAME_SET.put(ExchangeDefaults.TOPIC_EXCHANGE_NAME, AmqpExchange.Type.Topic);
countDownLatch = new CountDownLatch(BUILDIN_EXCHANGE_NAME_SET.size());
Copy link
Collaborator

@gaoran10 gaoran10 Jun 16, 2020

Choose a reason for hiding this comment

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

If a new namespace is loaded, this CountDownLatch needs to be initialized again?

@zongtanghu
Copy link

@wangshaojie4039 Look at gaoran's code-review comments. fix issue and push again!

@jiazhai
Copy link
Contributor

jiazhai commented Sep 15, 2020

@wangshaojie4039 Would you please help with this PR? Seems it almost ready for merge

@jiazhai
Copy link
Contributor

jiazhai commented Feb 9, 2021

@wangshaojie4039 Would you please help rebase the master to solve the conflicts?

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


wangshaojie seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

8 participants