activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbert...@apache.org
Subject [4/4] activemq-artemis git commit: ARTEMIS-1591 Preserve ordering on message exporter
Date Tue, 09 Jan 2018 16:34:57 GMT
ARTEMIS-1591 Preserve ordering on message exporter


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/2cef32be
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/2cef32be
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/2cef32be

Branch: refs/heads/master
Commit: 2cef32be6c2c1457863bcd33a8653930987b6635
Parents: d3d7eb7
Author: Clebert Suconic <clebertsuconic@apache.org>
Authored: Mon Jan 8 18:43:24 2018 -0500
Committer: Justin Bertram <jbertram@apache.org>
Committed: Tue Jan 9 10:34:38 2018 -0600

----------------------------------------------------------------------
 .../activemq/artemis/cli/commands/tools/xml/XmlDataExporter.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/2cef32be/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/tools/xml/XmlDataExporter.java
----------------------------------------------------------------------
diff --git a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/tools/xml/XmlDataExporter.java
b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/tools/xml/XmlDataExporter.java
index 6e9ef46..7a59c00 100644
--- a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/tools/xml/XmlDataExporter.java
+++ b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/tools/xml/XmlDataExporter.java
@@ -31,6 +31,7 @@ import java.util.LinkedList;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
+import java.util.TreeMap;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Executors;
 import java.util.concurrent.ScheduledExecutorService;
@@ -100,7 +101,7 @@ public final class XmlDataExporter extends OptionalLocking {
    private final Map<Long, HashMap<Long, ReferenceDescribe>> messageRefs = new
HashMap<>();
 
    // map of all message records hashed by their record ID (which will match the record ID
of the message refs)
-   private final HashMap<Long, Message> messages = new HashMap<>();
+   private final Map<Long, Message> messages = new TreeMap<>();
 
    private final Map<Long, Set<PagePosition>> cursorRecords = new HashMap<>();
 


Mime
View raw message