Skip to content

Commit 1daaa79

Browse files
rbrwaustb
authored andcommitted
(PDB-3947) Drop remaining activemq code, including upgrade shovel
Remove activemq entirely for version 6. This means that (as allowed by the versioning policy), it will not be possible to skip upgrading to pdb 6 from pdb 4 without running pdb 5 without losing the content of any existing queue. See the documentation updates for further information.
1 parent bd860bb commit 1daaa79

22 files changed

+55
-1236
lines changed

documentation/configure.markdown

-42
Original file line numberDiff line numberDiff line change
@@ -662,48 +662,6 @@ aren't being processed quickly enough, then you could increasing this
662662
value in order to alleviate that, but this is unlikely to be the
663663
bottleneck for command processing.
664664

665-
### `store-usage`
666-
667-
**Note**: This setting is deprecated and is ignored by PuppetDB,
668-
except when migrating away from ActiveMQ. It will be removed from
669-
PuppetDB in a future release.
670-
671-
Sets the maximum amount of space in megabytes that
672-
PuppetDB's ActiveMQ can use for persistent message storage.
673-
674-
### `temp-usage`
675-
676-
**Note**: This setting is deprecated and ignored by PuppetDB, except
677-
when migrating away from ActiveMQ. It will be removed from PuppetDB
678-
in a future release.
679-
680-
Sets the maximum amount of space in megabytes that
681-
PuppetDB's ActiveMQ can use for temporary message storage.
682-
683-
### `memory-usage`
684-
685-
**Note**: This setting is deprecated and ignored by PuppetDB, except
686-
when migrating away from ActiveMQ. It will be removed in a future
687-
release.
688-
689-
This setting sets the maximum amount of memory in megabytes available for
690-
PuppetDB's ActiveMQ Broker.
691-
692-
**Warning** Setting this value too high (such that memory-usage exceeds the size
693-
of the heap) can cause out of memory (OOM) errors. ActiveMQ does not treat this
694-
as a hard limit. In testing, we've seen it use up to `125%` of the specified
695-
value, and overall memory usage will also be affected by the `max-command-size`
696-
and `threads` parameters.
697-
698-
### `max-frame-size`
699-
700-
**Note**: This setting is deprecated and ignored by PuppetDB, except
701-
when migrating away from ActiveMQ. It will be removed from PuppetDB
702-
in a future release.
703-
704-
Sets the maximum frame size for persisted ActiveMQ messages
705-
supplied in bytes. Default value is 209715200 (or 200MB).
706-
707665
### `reject-large-commands`
708666

709667
This is a Boolean that enables rejecting (returning an HTTP 413 error)

documentation/pdb_support_guide.markdown

-5
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ message as a normal file inside `vardir`/stockpile/cmd/q, and while
4242
it's unlikely to be necessary, it's safe to manually remove queue
4343
commands when PDB is not running.
4444

45-
Whenever PDB starts up it checks to see if it has already migrated
46-
older messages from ActiveMQ to stockpile by looking for the file
47-
`vardir`/mq-migrated. If that file doesn't exist, then it migrates
48-
any older messages, and creates mq-migrated.
49-
5045
The message names are designed to provide some information about their
5146
content. For example:
5247

documentation/puppetdb-faq.markdown

-24
Original file line numberDiff line numberDiff line change
@@ -76,30 +76,6 @@ with ActiveRecord in Ruby. We have no plans to support any other databases,
7676
including MySQL, which lacks important features such as array columns and
7777
recursive queries.
7878

79-
## Why does PDB crash on startup while upgrading?
80-
81-
If you're upgrading from an older version of PDB that stored incoming
82-
commands in ActiveMQ, it's possible that you have a currupted KahaDB.
83-
If so, you might see an exception that mentions the KahaDB libraries
84-
(org.apache.activemq.store.kahadb). For example:
85-
86-
java.io.EOFException
87-
at java.io.RandomAccessFile.readInt(RandomAccessFile.java:776)
88-
at org.apache.activemq.store.kahadb.disk.journal.DataFileAccessor.readRecord(DataFileAccessor.java:81)
89-
90-
This problem may be fixed by stopping PDB, moving the mq directory
91-
somewhere else, and restarting PDB, but any messages that were in the
92-
mq directory will be lost.
93-
94-
Note that this ActiveMQ message:
95-
96-
2016-02-29 15:20:53,571 WARN [o.a.a.b.BrokerService] Store limit is
97-
102400 mb (current store usage is 1 mb). The data directory:
98-
/home/wyatt/work/puppetdb-mq-tmp/mq/localhost/KahaDB only has 71730 mb of
99-
usable space. - resetting to maximum available disk space: 71730 mb
100-
101-
is harmless and does not indicate an issue.
102-
10379
## The PuppetDB daemon shuts down with a "Cannot assign requested address" error. What does this mean, and how do I fix it?
10480

10581
~~~

documentation/release_notes.markdown

+16
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,22 @@ canonical: "/puppetdb/latest/release_notes.html"
1515
[pqltutorial]: ./api/query/tutorial-pql.html
1616
[stockpile]: https://github.com/puppetlabs/stockpile
1717
[queue_support_guide]: ./pdb_support_guide.html#message-queue
18+
[upgrade_policy]: ./versioning_policy.html#upgrades
19+
20+
## 6.0.0
21+
22+
## Upgrading
23+
24+
- Support for ActiveMQ has been completely removed, meaning that
25+
PuppetDB can no longer convert an existing queue to the new format
26+
when upgrading from versions older than 4.3.0, but since PuppetDB's
27+
[upgrade policy][upgrade_policy] forbids skipping major versions,
28+
this should not present a problem since any version 5 release will
29+
perform the conversion at startup.
30+
31+
As a result of the removal, these ActiveMQ specific configuration
32+
options have been retired: `store-usage`, `temp-usage`,
33+
`memory-usage`, and `max-frame-size`,
1834

1935
## 5.2.4
2036

project.clj

-7
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,6 @@
168168
[com.zaxxer/HikariCP]
169169
[honeysql]
170170

171-
;; MQ connectivity
172-
[org.apache.activemq/activemq-broker "5.13.2"]
173-
[org.apache.activemq/activemq-kahadb-store "5.13.2"]
174-
[org.apache.activemq/activemq-pool "5.13.2"]
175-
;; bridge to allow some spring/activemq stuff to log over slf4j
176-
[org.slf4j/jcl-over-slf4j "1.7.20"]
177-
178171
;; WebAPI support libraries.
179172
[bidi]
180173
[clj-http "2.0.1"]

resources/ext/config/logback.xml

-7
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,9 @@
2020
</encoder>
2121
</appender>
2222

23-
<!-- Supress internal ActiveMQ logging -->
24-
<logger name="org.apache.activemq" level="warn"/>
25-
2623
<!-- Supress internal Spring Framework logging -->
2724
<logger name="org.springframework.jms.connection" level="warn"/>
2825

29-
<!-- Lower the log level for ActiveMQ KahaDB MessageDatabase -->
30-
<logger name="org.apache.activemq.store.kahadb.MessageDatabase"
31-
level="info"/>
32-
3326
<appender name="STATUS" class="ch.qos.logback.core.rolling.RollingFileAppender">
3427
<file>/var/log/puppetlabs/puppetdb/puppetdb-status.log</file>
3528
<append>true</append>

resources/logback.xml

-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
</appender>
77

88
<!-- Silence particularly noisy packages -->
9-
<logger name="org.apache.activemq" level="warn"/>
10-
<logger name="org.apache.activemq.store.kahadb.MessageDatabase"
11-
level="info"/>
129
<logger name="org.springframework.jms.connection" level="warn"/>
1310

1411
<root level="info">

0 commit comments

Comments
 (0)