diff --git a/kong/clustering/compat/removed_fields.lua b/kong/clustering/compat/removed_fields.lua index b52e215fec1..77284a91011 100644 --- a/kong/clustering/compat/removed_fields.lua +++ b/kong/clustering/compat/removed_fields.lua @@ -228,7 +228,8 @@ return { "queue.concurrency_limit", }, }, - [30010000000] = { + -- Any dataplane older than 3.10.0 + [3010000000] = { session = { "hash_subject", "store_metadata", diff --git a/spec/01-unit/19-hybrid/02-clustering_spec.lua b/spec/01-unit/19-hybrid/02-clustering_spec.lua index d2d54f10d83..e47b4fd3234 100644 --- a/spec/01-unit/19-hybrid/02-clustering_spec.lua +++ b/spec/01-unit/19-hybrid/02-clustering_spec.lua @@ -7,6 +7,8 @@ describe("kong.clustering.compat.version", function() assert.equal(3000001000, version.string_to_number("3.0.1")) assert.equal(3000000000, version.string_to_number("3.0.0.0")) assert.equal(3000000001, version.string_to_number("3.0.0.1")) + assert.equal(3009000000, version.string_to_number("3.9.0.0")) + assert.equal(3010000000, version.string_to_number("3.10.0.0")) assert.equal(333333333001, version.string_to_number("333.333.333.1")) assert.equal(333333333333, version.string_to_number("333.333.333.333")) end)