You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@activemq.apache.org by "gtully (via GitHub)" <gi...@apache.org> on 2023/11/28 15:04:13 UTC
[PR] ARTEMIS-4517 - cancel message references in queue sequence order [activemq-artemis]
gtully opened a new pull request, #4692:
URL: https://github.com/apache/activemq-artemis/pull/4692
this needs more eyes please
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] ARTEMIS-4517 - cancel message references in queue sequence order [activemq-artemis]
Posted by "clebertsuconic (via GitHub)" <gi...@apache.org>.
clebertsuconic commented on code in PR #4692:
URL: https://github.com/apache/activemq-artemis/pull/4692#discussion_r1408022260
##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/MessageReference.java:
##########
@@ -142,4 +142,7 @@ default boolean skipDelivery() {
*/
long getPersistentSize() throws ActiveMQException;
+ long getQueueSequence();
Review Comment:
another possible name would be order.... it doesn't matter if you take order or sequence. just putting out an alternative.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] ARTEMIS-4517 - cancel message references in queue sequence order [activemq-artemis]
Posted by "clebertsuconic (via GitHub)" <gi...@apache.org>.
clebertsuconic commented on PR #4692:
URL: https://github.com/apache/activemq-artemis/pull/4692#issuecomment-1830274401
@gtully beware I added a change to your branch. please update your local fork.. feel free to squash the change if you prefer
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] ARTEMIS-4517 - cancel message references in queue sequence order [activemq-artemis]
Posted by "clebertsuconic (via GitHub)" <gi...@apache.org>.
clebertsuconic commented on code in PR #4692:
URL: https://github.com/apache/activemq-artemis/pull/4692#discussion_r1408020312
##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/AbstractProtocolReference.java:
##########
@@ -28,6 +28,7 @@
public abstract class AbstractProtocolReference extends LinkedListImpl.Node<MessageReferenceImpl> implements MessageReference {
private HashMap<Class, Object> protocolDataMap;
+ protected volatile long queueSequence = 0;
Review Comment:
sequence, if you take my suggestion
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] ARTEMIS-4517 - cancel message references in queue sequence order [activemq-artemis]
Posted by "clebertsuconic (via GitHub)" <gi...@apache.org>.
clebertsuconic commented on code in PR #4692:
URL: https://github.com/apache/activemq-artemis/pull/4692#discussion_r1408019909
##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/MessageReference.java:
##########
@@ -142,4 +142,7 @@ default boolean skipDelivery() {
*/
long getPersistentSize() throws ActiveMQException;
+ long getQueueSequence();
Review Comment:
just a suggestion! I would just call it getSequence here... Like the reference Queue, since a reference will belong to a queue anyway. Nit-pick probably.. do it if you like the suggestion!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] ARTEMIS-4517 - cancel message references in queue sequence order [activemq-artemis]
Posted by "clebertsuconic (via GitHub)" <gi...@apache.org>.
clebertsuconic merged PR #4692:
URL: https://github.com/apache/activemq-artemis/pull/4692
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] ARTEMIS-4517 - cancel message references in queue sequence order [activemq-artemis]
Posted by "gtully (via GitHub)" <gi...@apache.org>.
gtully commented on code in PR #4692:
URL: https://github.com/apache/activemq-artemis/pull/4692#discussion_r1408034707
##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/MessageReference.java:
##########
@@ -142,4 +142,7 @@ default boolean skipDelivery() {
*/
long getPersistentSize() throws ActiveMQException;
+ long getQueueSequence();
Review Comment:
makes sense, will fix it up. thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] ARTEMIS-4517 - cancel message references in queue sequence order [activemq-artemis]
Posted by "clebertsuconic (via GitHub)" <gi...@apache.org>.
clebertsuconic commented on code in PR #4692:
URL: https://github.com/apache/activemq-artemis/pull/4692#discussion_r1408020805
##########
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/MessageReferenceImpl.java:
##########
@@ -33,17 +33,21 @@
*/
public class MessageReferenceImpl extends AbstractProtocolReference implements MessageReference, Runnable {
- private static final MessageReferenceComparatorByID idComparator = new MessageReferenceComparatorByID();
+ private static final MessageReferenceComparatorByQueueSequence queueSequenceComparator = new MessageReferenceComparatorByQueueSequence();
- public static Comparator<MessageReference> getIDComparator() {
- return idComparator;
+ public static Comparator<MessageReference> getQueueSequenceComparator() {
Review Comment:
sequenceComparator if you take my suggestion
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] ARTEMIS-4517 - cancel message references in queue sequence order [activemq-artemis]
Posted by "clebertsuconic (via GitHub)" <gi...@apache.org>.
clebertsuconic commented on PR #4692:
URL: https://github.com/apache/activemq-artemis/pull/4692#issuecomment-1830661719
I think this is ready to merge...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] ARTEMIS-4517 - cancel message references in queue sequence order [activemq-artemis]
Posted by "gtully (via GitHub)" <gi...@apache.org>.
gtully commented on PR #4692:
URL: https://github.com/apache/activemq-artemis/pull/4692#issuecomment-1830159456
pushed an update to rename the idComparator the queueSequenceComparator
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org