From bc3f2e972606d081bb002e56b8e6ff02422fa159 Mon Sep 17 00:00:00 2001 From: Kjell Winblad Date: Tue, 5 Sep 2023 13:16:15 +0200 Subject: [PATCH 1/2] fix: upgrade jq library In this commit the jq library is upgraded from v0.3.10 to v0.3.11. The new version has the following changes: * The jq port programs is only started on demand - this means that users will not see jq_port in their process list if they have not used the jq function in EMQX * The jq port programs are terminated automatically if they are idle for a long enough time period The default for EMQX is to run the jq library in NIF mode so most users will not be affected by this change. Fixes: https://emqx.atlassian.net/browse/EMQX-10911 --- mix.exs | 2 +- rebar.config.erl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mix.exs b/mix.exs index 57322abdf..8e8706ebf 100644 --- a/mix.exs +++ b/mix.exs @@ -826,7 +826,7 @@ defmodule EMQXUmbrella.MixProject do defp jq_dep() do if enable_jq?(), - do: [{:jq, github: "emqx/jq", tag: "v0.3.10", override: true}], + do: [{:jq, github: "emqx/jq", tag: "v0.3.11", override: true}], else: [] end diff --git a/rebar.config.erl b/rebar.config.erl index 8f26d11d8..a769e720c 100644 --- a/rebar.config.erl +++ b/rebar.config.erl @@ -42,7 +42,7 @@ quicer() -> {quicer, {git, "https://github.com/emqx/quic.git", {tag, "0.0.114"}}}. jq() -> - {jq, {git, "https://github.com/emqx/jq", {tag, "v0.3.10"}}}. + {jq, {git, "https://github.com/emqx/jq", {tag, "v0.3.11"}}}. deps(Config) -> {deps, OldDeps} = lists:keyfind(deps, 1, Config), From d887ba5e8d12232357c87e12f5884af897930c4a Mon Sep 17 00:00:00 2001 From: Kjell Winblad Date: Tue, 5 Sep 2023 13:36:26 +0200 Subject: [PATCH 2/2] docs: add change log entry for jq upgrade --- changes/ce/fix-11565.en.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changes/ce/fix-11565.en.md diff --git a/changes/ce/fix-11565.en.md b/changes/ce/fix-11565.en.md new file mode 100644 index 000000000..ab5ad31b0 --- /dev/null +++ b/changes/ce/fix-11565.en.md @@ -0,0 +1 @@ +Upgraded jq library from v0.3.10 to v0.3.11. In this version, jq_port programs are initiated on-demand and will not appear in users' processes unless the jq function in EMQX is used. Additionally, idle jq_port programs will auto-terminate after a set period. Note: Most EMQX users, running jq in NIF mode, will be unaffected by this update.