This closes #200 - docs and settings
This commit is contained in:
commit
f8a25d4f7c
|
@ -115,6 +115,7 @@ import org.apache.activemq.utils.ByteUtil;
|
|||
import org.apache.activemq.utils.DataConstants;
|
||||
import org.apache.activemq.utils.ExecutorFactory;
|
||||
import org.apache.activemq.utils.ActiveMQThreadFactory;
|
||||
import org.apache.activemq.utils.UUID;
|
||||
import org.apache.activemq.utils.XidCodecSupport;
|
||||
|
||||
import static org.apache.activemq.core.persistence.impl.journal.JournalRecordIds.ACKNOWLEDGE_CURSOR;
|
||||
|
@ -3489,9 +3490,42 @@ public class JournalStorageManager implements StorageManager
|
|||
// SimpleString simpleStr = new SimpleString(duplID);
|
||||
// return "DuplicateIDEncoding [address=" + address + ", duplID=" + simpleStr + "]";
|
||||
|
||||
return "DuplicateIDEncoding [address=" + address + ", duplID=" + ByteUtil.bytesToHex(duplID, 2) + "]";
|
||||
String bridgeRepresentation = null;
|
||||
|
||||
// The bridge will generate IDs on these terms:
|
||||
// This will make them easier to read
|
||||
if (address.toString().startsWith("BRIDGE") && duplID.length == 24)
|
||||
{
|
||||
try
|
||||
{
|
||||
ByteBuffer buff = ByteBuffer.wrap(duplID);
|
||||
|
||||
// 16 for UUID
|
||||
byte[] bytesUUID = new byte[16];
|
||||
|
||||
buff.get(bytesUUID);
|
||||
|
||||
UUID uuid = new UUID(UUID.TYPE_TIME_BASED, bytesUUID);
|
||||
|
||||
long id = buff.getLong();
|
||||
bridgeRepresentation = "nodeUUID=" + uuid.toString() + " messageID=" + id;
|
||||
}
|
||||
catch (Throwable ignored)
|
||||
{
|
||||
bridgeRepresentation = null;
|
||||
}
|
||||
}
|
||||
|
||||
if (bridgeRepresentation != null)
|
||||
{
|
||||
return "DuplicateIDEncoding [address=" + address + ", duplID=" + ByteUtil.bytesToHex(duplID, 2) + " / " +
|
||||
bridgeRepresentation + "]";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "DuplicateIDEncoding [address=" + address + ", duplID=" + ByteUtil.bytesToHex(duplID, 2) + "]";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -48,7 +48,7 @@ Name | Description
|
|||
[jmx-management-enabled](management.md "30.2.1. Configuring JMX") | true means that the management API is available via JMX. Default=true
|
||||
[journal-buffer-size](persistence.md) | The size of the internal buffer on the journal in KB. Default=490 KiB
|
||||
[journal-buffer-timeout](persistence.md) | The Flush timeout for the journal buffer
|
||||
[journal-compact-min-files](persistence.md) | The minimal number of data files before we can start compacting. Default=10
|
||||
[journal-compact-min-files](persistence.md) | The minimal number of data files before we can start compacting. Setting this to 0 means compacting is disabled. Default=10
|
||||
[journal-compact-percentage](persistence.md) | The percentage of live data on which we consider compacting the journal. Default=30
|
||||
[journal-directory](persistence.md) | the directory to store the journal files in. Default=data/journal
|
||||
[journal-file-size](persistence.md) | the size (in bytes) of each journal file. Default=10485760 (10 MB)
|
||||
|
|
|
@ -269,6 +269,11 @@ The message journal is configured using the following attributes in
|
|||
journal. The compacting algorithm won't start until you have at
|
||||
least `journal-compact-min-files`
|
||||
|
||||
Setting this to 0 will disable the feature to compact completely.
|
||||
This could be dangerous though as the journal could grow indefinitely.
|
||||
Use it wisely!
|
||||
|
||||
|
||||
The default for this parameter is `10`
|
||||
|
||||
- `journal-compact-percentage`
|
||||
|
|
Binary file not shown.
|
@ -25,7 +25,7 @@
|
|||
<parent>
|
||||
<groupId>org.apache.activemq.tests</groupId>
|
||||
<artifactId>activemq-tests-pom</artifactId>
|
||||
<version>6.0.1-SNAPSHOT</version>
|
||||
<version>10.0.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>extra-tests</artifactId>
|
||||
|
|
Loading…
Reference in New Issue