Skip to contentSkip to conversation

valkey: Upgrade 9.0.1 -> 9.0.2

PATCH Superseded Leon Anavi 2 participants 3 messages Feb 4 – Feb 5

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Leon Anavi

author
#0 lore raw

PATCH 1/1 valkey: Upgrade 9.0.1 -> 9.0.2

Upgrade to release 9.0.2:

- Avoid memory leak of new argv when HEXPIRE commands target only non-exiting fields
- Fix HINCRBY and HINCRBYFLOAT to update volatile key tracking
- Avoid empty hash object when HSETEX added no fields
- Fix case-sensitive check for the FNX and FXX arguments in HSETEX
- Prevent assertion in active expiration job after a hash with volatile fields is overwritten
- Fix HRANDFIELD to return null response when no field could be found
- Fix HEXPIRE to not delete items when validation rules fail and expiration is in the past
- Fix how hash is handling overriding of expired fields overwrite
- HSETEX - Always issue keyspace notifications after validation
- Make zero a valid TTL for hash fields during import mode and data loading
- Trigger prepareCommand on argc change in module command filters
- Restrict TTL from being negative and avoid crash in import-mode
- Fix chained replica crash when doing dual channel replication
- Skip slot cache optimization for AOF client to prevent key duplication and data corruption
- Fix used_memory_dataset underflow due to miscalculated used_memory_overhead
- Avoid duplicate calculations of network-bytes-out in slot stats with copy-avoidance
- Fix XREAD returning error on empty stream with + ID
- Track reply bytes in I/O threads if commandlog-reply-larger-than is -1
- This makes it possible to mitigate a performance regression in 9.0.1 caused by the related bug fix

Fixes references to TMPDIR [buildpaths] and avoids [already-stripped].

---
 .../valkey/{valkey_9.0.1.bb => valkey_9.0.2.bb}        | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
 rename meta-oe/recipes-extended/valkey/{valkey_9.0.1.bb => valkey_9.0.2.bb} (87%)
meta-oe/recipes-extended/valkey/valkey_9.0.2.bb renamed from meta-oe/recipes-extended/valkey/valkey_9.0.1.bb +9 -1
similarity index 87%
rename from meta-oe/recipes-extended/valkey/valkey_9.0.1.bb
rename to meta-oe/recipes-extended/valkey/valkey_9.0.2.bb
index 1f27224772..3334f57599 100644
@@ -15,7 +15,7 @@ SRC_URI = "git://github.com/valkey-io/valkey.git;branch=9.0;protocol=https;tag=$
            file://0001-src-Do-not-reset-FINAL_LIBS.patch \
            file://GNU_SOURCE-7.patch \
            "
-SRCREV = "ab3c953b80289d88991095f53c1235fc2f8b44d6"
+SRCREV = "1ac4cfe4c877a6cb8cb2e28fa7094055ac06f64b"
 
 RPROVIDES:${PN} = "virtual-redis"
 
@@ -44,6 +44,11 @@ do_compile() {
 }
 
 do_install() {
+    # Remove debug paths to avoid TMPDIR [buildpaths] errors
+    sed -i -e 's#${TMPDIR}##g' ${UNPACKDIR}/${PN}-${PV}/src/valkey-benchmark
+    sed -i -e 's#${TMPDIR}##g' ${UNPACKDIR}/${PN}-${PV}/src/valkey-server
+    sed -i -e 's#${TMPDIR}##g' ${UNPACKDIR}/${PN}-${PV}/src/valkey-cli
+
     export PREFIX=${D}/${prefix}
     oe_runmake install
     install -d ${D}/${sysconfdir}/valkey
@@ -63,6 +68,7 @@ do_install() {
     fi
 }
 
+
 CONFFILES:${PN} = "${sysconfdir}/valkey/valkey.conf"
 
 INITSCRIPT_NAME = "valkey-server"
@@ -71,3 +77,5 @@ INITSCRIPT_PARAMS = "defaults 87"
 SYSTEMD_SERVICE:${PN} = "valkey.service"
 
 CVE_STATUS[CVE-2022-3734] = "not-applicable-platform: CVE only applies for Windows."
+
+INSANE_SKIP:${PN} = "already-stripped"
Signature · 1 line
2.47.3
#1 lore raw
Quoted 58 lines · Leon Anavi via lists.openembedded.org

Upgrade to release 9.0.2:

- Avoid memory leak of new argv when HEXPIRE commands target only non-exiting fields
- Fix HINCRBY and HINCRBYFLOAT to update volatile key tracking
- Avoid empty hash object when HSETEX added no fields
- Fix case-sensitive check for the FNX and FXX arguments in HSETEX
- Prevent assertion in active expiration job after a hash with volatile fields is overwritten
- Fix HRANDFIELD to return null response when no field could be found
- Fix HEXPIRE to not delete items when validation rules fail and expiration is in the past
- Fix how hash is handling overriding of expired fields overwrite
- HSETEX - Always issue keyspace notifications after validation
- Make zero a valid TTL for hash fields during import mode and data loading
- Trigger prepareCommand on argc change in module command filters
- Restrict TTL from being negative and avoid crash in import-mode
- Fix chained replica crash when doing dual channel replication
- Skip slot cache optimization for AOF client to prevent key duplication and data corruption
- Fix used_memory_dataset underflow due to miscalculated used_memory_overhead
- Avoid duplicate calculations of network-bytes-out in slot stats with copy-avoidance
- Fix XREAD returning error on empty stream with + ID
- Track reply bytes in I/O threads if commandlog-reply-larger-than is -1
- This makes it possible to mitigate a performance regression in 9.0.1 caused by the related bug fix

Fixes references to TMPDIR [buildpaths] and avoids [already-stripped].

---
 .../valkey/{valkey_9.0.1.bb => valkey_9.0.2.bb}        | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
 rename meta-oe/recipes-extended/valkey/{valkey_9.0.1.bb => valkey_9.0.2.bb} (87%)
meta-oe/recipes-extended/valkey/valkey_9.0.2.bb renamed from meta-oe/recipes-extended/valkey/valkey_9.0.1.bb +1 -1
similarity index 87%
rename from meta-oe/recipes-extended/valkey/valkey_9.0.1.bb
rename to meta-oe/recipes-extended/valkey/valkey_9.0.2.bb
index 1f27224772..3334f57599 100644
@@ -15,7 +15,7 @@ SRC_URI = "git://github.com/valkey-io/valkey.git;branch=9.0;protocol=https;tag=$
            file://0001-src-Do-not-reset-FINAL_LIBS.patch \
            file://GNU_SOURCE-7.patch \
            "
-SRCREV = "ab3c953b80289d88991095f53c1235fc2f8b44d6"
+SRCREV = "1ac4cfe4c877a6cb8cb2e28fa7094055ac06f64b"
 
 RPROVIDES:${PN} = "virtual-redis"
 

meta-oe/recipes-extended/valkey/valkey_9.0.2.bb do_compile() { · line 51

Quoted 8 lines
meta-oe/recipes-extended/valkey/valkey_9.0.2.bb renamed from meta-oe/recipes-extended/valkey/valkey_9.0.1.bb +5 -0
@@ -44,6 +44,11 @@ do_compile() {
 }
 
 do_install() {
+    # Remove debug paths to avoid TMPDIR [buildpaths] errors
+    sed -i -e 's#${TMPDIR}##g' ${UNPACKDIR}/${PN}-${PV}/src/valkey-benchmark
+    sed -i -e 's#${TMPDIR}##g' ${UNPACKDIR}/${PN}-${PV}/src/valkey-server
+    sed -i -e 's#${TMPDIR}##g' ${UNPACKDIR}/${PN}-${PV}/src/valkey-cli
+

I think these should be using ${S} instead or the files in ${D} should be changed after install.

Quoted 29 lines
meta-oe/recipes-extended/valkey/valkey_9.0.2.bb renamed from meta-oe/recipes-extended/valkey/valkey_9.0.1.bb +3 -1
     export PREFIX=${D}/${prefix}
     oe_runmake install
     install -d ${D}/${sysconfdir}/valkey
@@ -63,6 +68,7 @@ do_install() {
     fi
 }
 
+
 CONFFILES:${PN} = "${sysconfdir}/valkey/valkey.conf"
 
 INITSCRIPT_NAME = "valkey-server"
@@ -71,3 +77,5 @@ INITSCRIPT_PARAMS = "defaults 87"
 SYSTEMD_SERVICE:${PN} = "valkey.service"
 
 CVE_STATUS[CVE-2022-3734] = "not-applicable-platform: CVE only applies for Windows."
+
+INSANE_SKIP:${PN} = "already-stripped"
--

2.47.3

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#124129): https://lists.openembedded.org/g/openembedded-devel/message/124129
Mute This Topic: https://lists.openembedded.org/mt/117634817/3616702
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#2 lore raw

Hi Anuj,

Quoted 61 lines · Anuj Mittal
Quoted 59 lines · Leon Anavi via lists.openembedded.org

Upgrade to release 9.0.2:

- Avoid memory leak of new argv when HEXPIRE commands target only non-exiting fields
- Fix HINCRBY and HINCRBYFLOAT to update volatile key tracking
- Avoid empty hash object when HSETEX added no fields
- Fix case-sensitive check for the FNX and FXX arguments in HSETEX
- Prevent assertion in active expiration job after a hash with volatile fields is overwritten
- Fix HRANDFIELD to return null response when no field could be found
- Fix HEXPIRE to not delete items when validation rules fail and expiration is in the past
- Fix how hash is handling overriding of expired fields overwrite
- HSETEX - Always issue keyspace notifications after validation
- Make zero a valid TTL for hash fields during import mode and data loading
- Trigger prepareCommand on argc change in module command filters
- Restrict TTL from being negative and avoid crash in import-mode
- Fix chained replica crash when doing dual channel replication
- Skip slot cache optimization for AOF client to prevent key duplication and data corruption
- Fix used_memory_dataset underflow due to miscalculated used_memory_overhead
- Avoid duplicate calculations of network-bytes-out in slot stats with copy-avoidance
- Fix XREAD returning error on empty stream with + ID
- Track reply bytes in I/O threads if commandlog-reply-larger-than is -1
- This makes it possible to mitigate a performance regression in 9.0.1 caused by the related bug fix

Fixes references to TMPDIR [buildpaths] and avoids [already-stripped].

---
  .../valkey/{valkey_9.0.1.bb => valkey_9.0.2.bb}        | 10 +++++++++-
  1 file changed, 9 insertions(+), 1 deletion(-)

rename meta-oe/recipes-extended/valkey/{valkey_9.0.1.bb => valkey_9.0.2.bb} (87%)

meta-oe/recipes-extended/valkey/valkey_9.0.2.bb renamed from meta-oe/recipes-extended/valkey/valkey_9.0.1.bb +1 -1
similarity index 87%
rename from meta-oe/recipes-extended/valkey/valkey_9.0.1.bb
rename to meta-oe/recipes-extended/valkey/valkey_9.0.2.bb
index 1f27224772..3334f57599 100644
@@ -15,7 +15,7 @@ SRC_URI = "git://github.com/valkey-io/valkey.git;branch=9.0;protocol=https;tag=$
             file://0001-src-Do-not-reset-FINAL_LIBS.patch \
             file://GNU_SOURCE-7.patch \
             "
-SRCREV = "ab3c953b80289d88991095f53c1235fc2f8b44d6"
+SRCREV = "1ac4cfe4c877a6cb8cb2e28fa7094055ac06f64b"
 
  RPROVIDES:${PN} = "virtual-redis"
 
@@ -44,6 +44,11 @@ do_compile() {
  }
 
Quoted 8 lines

meta-oe/recipes-extended/valkey/valkey_9.0.2.bb do_compile() { · line 51

Quoted 6 lines
meta-oe/recipes-extended/valkey/valkey_9.0.2.bb renamed from meta-oe/recipes-extended/valkey/valkey_9.0.1.bb +5 -0
  do_install() {
+    # Remove debug paths to avoid TMPDIR [buildpaths] errors
+    sed -i -e 's#${TMPDIR}##g' ${UNPACKDIR}/${PN}-${PV}/src/valkey-benchmark
+    sed -i -e 's#${TMPDIR}##g' ${UNPACKDIR}/${PN}-${PV}/src/valkey-server
+    sed -i -e 's#${TMPDIR}##g' ${UNPACKDIR}/${PN}-${PV}/src/valkey-cli
+

I think these should be using ${S} instead or the files in ${D} should be changed after install.

Yes, you are right. Thanks! Let's keep it simple: I've just sent v2 of the patch that uses ${S}.

Best regards, Leon

Quoted 30 lines
Quoted 30 lines
meta-oe/recipes-extended/valkey/valkey_9.0.2.bb renamed from meta-oe/recipes-extended/valkey/valkey_9.0.1.bb +3 -1
      export PREFIX=${D}/${prefix}
      oe_runmake install
      install -d ${D}/${sysconfdir}/valkey
@@ -63,6 +68,7 @@ do_install() {
      fi
  }
 
+
  CONFFILES:${PN} = "${sysconfdir}/valkey/valkey.conf"
 
  INITSCRIPT_NAME = "valkey-server"
@@ -71,3 +77,5 @@ INITSCRIPT_PARAMS = "defaults 87"
  SYSTEMD_SERVICE:${PN} = "valkey.service"
 
  CVE_STATUS[CVE-2022-3734] = "not-applicable-platform: CVE only applies for Windows."
+
+INSANE_SKIP:${PN} = "already-stripped"
--

2.47.3

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#124129): https://lists.openembedded.org/g/openembedded-devel/message/124129
Mute This Topic: https://lists.openembedded.org/mt/117634817/3616702
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-