This is an automated email from the ASF dual-hosted git repository.
vavrtom pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-broker-j.git
The following commit(s) were added to refs/heads/main by this push:
new a75a9eeeef QPID-8748: [Broker-J] NPE when sorting results in broker
query engine (#422)
a75a9eeeef is described below
commit a75a9eeeefa73886f99303f4797782c2cd62bd87
Author: Daniil Kirilyuk <[email protected]>
AuthorDate: Fri Jul 31 11:27:22 2026 +0200
QPID-8748: [Broker-J] NPE when sorting results in broker query engine (#422)
---
broker-plugins/query-engine/README.md | 8 ++++----
.../query/engine/evaluator/settings/DefaultQuerySettings.java | 2 +-
.../channels/Java-Broker-Management-Channel-REST-Query-Engine.xml | 8 ++++----
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/broker-plugins/query-engine/README.md
b/broker-plugins/query-engine/README.md
index e0cf08cba2..5642fd354a 100644
--- a/broker-plugins/query-engine/README.md
+++ b/broker-plugins/query-engine/README.md
@@ -103,10 +103,10 @@ properties, affecting the way query engine works.
### Query cache size
After query is parsed from the SQL string, it is stored into a cache. When the
same query will be fired against
-the query engine, parsing will be omitted and the query structure will be
retrieved from cache. By default, query cache
-size is 1000. This means, that when 1000 different queries will be fired
against the query engine, the next one will
-override the oldest cache entry. When set to 0 or to negative value, query
cache will not be used and each query
-will be parsed.
+the query engine, parsing will be omitted and the query structure will be
retrieved from cache. When cache size is 1000,
+it means that 1000 different queries will be fired against the query engine,
the next one will override the oldest
+cache entry. When set to 0 or to negative value, query cache will not be used
and each query will be parsed.
+By default, query cache size is 0 (disabled).
### Maximal query depth
diff --git
a/broker-plugins/query-engine/src/main/java/org/apache/qpid/server/query/engine/evaluator/settings/DefaultQuerySettings.java
b/broker-plugins/query-engine/src/main/java/org/apache/qpid/server/query/engine/evaluator/settings/DefaultQuerySettings.java
index 0318dd5438..e8d6fab8ff 100644
---
a/broker-plugins/query-engine/src/main/java/org/apache/qpid/server/query/engine/evaluator/settings/DefaultQuerySettings.java
+++
b/broker-plugins/query-engine/src/main/java/org/apache/qpid/server/query/engine/evaluator/settings/DefaultQuerySettings.java
@@ -59,7 +59,7 @@ public class DefaultQuerySettings
/**
* Maximal amount of queries allowed caching
*/
- public static int MAX_QUERY_CACHE_SIZE = 1000;
+ public static int MAX_QUERY_CACHE_SIZE = 0;
/**
* Maximal amount of query tree nodes allowed
diff --git
a/doc/java-broker/src/docbkx/management/channels/Java-Broker-Management-Channel-REST-Query-Engine.xml
b/doc/java-broker/src/docbkx/management/channels/Java-Broker-Management-Channel-REST-Query-Engine.xml
index d346ddc8cb..7302dac17a 100644
---
a/doc/java-broker/src/docbkx/management/channels/Java-Broker-Management-Channel-REST-Query-Engine.xml
+++
b/doc/java-broker/src/docbkx/management/channels/Java-Broker-Management-Channel-REST-Query-Engine.xml
@@ -86,10 +86,10 @@
<title>Query cache size</title>
<para>
After query is parsed from the SQL string, it is stored into a
cache. When the same query will be fired against
- the query engine, parsing will be omitted and the query
structure will be retrieved from cache. By default, query cache
- size is 1000. This means, that when 1000 different queries
will be fired against the query engine, the next one will
- override the oldest cache entry. When set to 0 or to negative
value, query cache will not be used and each query
- will be parsed.
+ the query engine, parsing will be omitted and the query
structure will be retrieved from cache. When cache size is 1000,
+ it means that 1000 different queries will be fired against the
query engine, the next one will override the oldest
+ cache entry. When set to 0 or to negative value, query cache
will not be used and each query will be parsed.
+ By default, query cache size is 0 (disabled).
</para>
</section>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]