diff --git a/CHANGELOG.md b/CHANGELOG.md index 53d5ff44..6dbdf22a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file. - The lifetime of auto generated TLS certificates is now configurable with the role and roleGroup config property `requestedSecretLifetime`. This helps reduce frequent Pod restarts ([#676]). +- Run a `containerdebug` process in the background of each Trino container to collect debugging information ([#687]). ### Fixed @@ -19,6 +20,7 @@ All notable changes to this project will be documented in this file. [#672]: https://github.com/stackabletech/trino-operator/pull/672 [#673]: https://github.com/stackabletech/trino-operator/pull/673 [#676]: https://github.com/stackabletech/trino-operator/pull/676 +[#687]: https://github.com/stackabletech/trino-operator/pull/687 ## [24.11.0] - 2024-11-18 diff --git a/Cargo.lock b/Cargo.lock index 6c74e9e5..ce55364c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -270,9 +270,9 @@ checksum = "325918d6fe32f23b19878fe4b34794ae41fc19ddbe53b10571a4874d44ffd39b" [[package]] name = "cc" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f34d93e62b03caf570cccc334cbc6c2fceca82f39211051345108adcba3eebdc" +checksum = "27f657647bcff5394bf56c7317665bbf790a137a50eaaa5c6bfbb9e27a518f2d" dependencies = [ "jobserver", "libc", @@ -287,9 +287,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "chrono" -version = "0.4.38" +version = "0.4.39" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401" +checksum = "7e36cc9d416881d2e24f9a963be5fb1cd90966419ac844274161d10488b3e825" dependencies = [ "android-tzdata", "iana-time-zone", @@ -355,18 +355,18 @@ dependencies = [ [[package]] name = "const_format" -version = "0.2.33" +version = "0.2.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50c655d81ff1114fb0dcdea9225ea9f0cc712a6f8d189378e82bdf62a473a64b" +checksum = "126f97965c8ad46d6d9163268ff28432e8f6a1196a55578867832e3049df63dd" dependencies = [ "const_format_proc_macros", ] [[package]] name = "const_format_proc_macros" -version = "0.2.33" +version = "0.2.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eff1a44b93f47b1bac19a27932f5c591e43d1ba357ee4f61526c8a25603f0eb1" +checksum = "1d57c2eccfb16dbac1f4e61e206105db5820c9d26c3c472bc17c774259ef7744" dependencies = [ "proc-macro2", "quote", @@ -568,7 +568,7 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "06c36cb11dbde389f4096111698d8b567c0720e3452fd5ac3e6b4e47e1939932" dependencies = [ - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -1246,9 +1246,9 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.74" +version = "0.3.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a865e038f7f6ed956f788f0d7d60c541fff74c7bd74272c5d4cf15c63743e705" +checksum = "6717b6b5b077764fb5966237269cb3c64edddde4b14ce42647430a78ced9e7b7" dependencies = [ "once_cell", "wasm-bindgen", @@ -1263,7 +1263,7 @@ dependencies = [ "jsonptr", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -1278,7 +1278,7 @@ dependencies = [ "pest_derive", "regex", "serde_json", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -1349,7 +1349,7 @@ dependencies = [ "serde", "serde_json", "serde_yaml", - "thiserror", + "thiserror 1.0.69", "tokio", "tokio-util", "tower", @@ -1372,7 +1372,7 @@ dependencies = [ "serde", "serde-value", "serde_json", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -1410,7 +1410,7 @@ dependencies = [ "pin-project", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", "tokio", "tokio-util", "tracing", @@ -1424,9 +1424,9 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "libc" -version = "0.2.167" +version = "0.2.168" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09d6582e104315a817dff97f75133544b2e094ee22447d2acf4a74e189ba06fc" +checksum = "5aaeb2981e0606ca11d79718f8bb01164f1d6ed75080182d3abf017e6d244b6d" [[package]] name = "libgit2-sys" @@ -1620,7 +1620,7 @@ dependencies = [ "js-sys", "once_cell", "pin-project-lite", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -1662,7 +1662,7 @@ dependencies = [ "ordered-float 4.5.0", "percent-encoding", "rand", - "thiserror", + "thiserror 1.0.69", "tokio", "tokio-stream", ] @@ -1738,20 +1738,20 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "pest" -version = "2.7.14" +version = "2.7.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "879952a81a83930934cbf1786752d6dedc3b1f29e8f8fb2ad1d0a36f377cf442" +checksum = "8b7cafe60d6cf8e62e1b9b2ea516a089c008945bb5a275416789e7db0bc199dc" dependencies = [ "memchr", - "thiserror", + "thiserror 2.0.6", "ucd-trie", ] [[package]] name = "pest_derive" -version = "2.7.14" +version = "2.7.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d214365f632b123a47fd913301e14c946c61d1c183ee245fa76eb752e59a02dd" +checksum = "816518421cfc6887a0d62bf441b6ffb4536fcc926395a69e1a85852d4363f57e" dependencies = [ "pest", "pest_generator", @@ -1759,9 +1759,9 @@ dependencies = [ [[package]] name = "pest_generator" -version = "2.7.14" +version = "2.7.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb55586734301717aea2ac313f50b2eb8f60d2fc3dc01d190eefa2e625f60c4e" +checksum = "7d1396fd3a870fc7838768d171b4616d5c91f6cc25e377b673d714567d99377b" dependencies = [ "pest", "pest_meta", @@ -1772,9 +1772,9 @@ dependencies = [ [[package]] name = "pest_meta" -version = "2.7.14" +version = "2.7.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b75da2a70cf4d9cb76833c990ac9cd3923c9a8905a8929789ce347c84564d03d" +checksum = "e1e58089ea25d717bfd31fb534e4f3afcc2cc569c70de3e239778991ea3b7dea" dependencies = [ "once_cell", "pest", @@ -2197,9 +2197,9 @@ checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" [[package]] name = "serde" -version = "1.0.215" +version = "1.0.216" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6513c1ad0b11a9376da888e3e0baa0077f1aed55c17f50e7b2397136129fb88f" +checksum = "0b9781016e935a97e8beecf0c933758c97a5520d32930e460142b4cd80c6338e" dependencies = [ "serde_derive", ] @@ -2216,9 +2216,9 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.215" +version = "1.0.216" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad1e866f866923f252f05c889987993144fb74e722403468a4ebd70c3cd756c0" +checksum = "46f859dbbf73865c6627ed570e78961cd3ac92407a2d117204c49232485da55e" dependencies = [ "proc-macro2", "quote", @@ -2565,7 +2565,16 @@ version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" dependencies = [ - "thiserror-impl", + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fec2a1820ebd077e2b90c4df007bebf344cd394098a13c563957d0afc83ea47" +dependencies = [ + "thiserror-impl 2.0.6", ] [[package]] @@ -2579,6 +2588,17 @@ dependencies = [ "syn 2.0.90", ] +[[package]] +name = "thiserror-impl" +version = "2.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d65750cab40f4ff1929fb1ba509e9914eb756131cef4210da8d5d700d26f6312" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + [[package]] name = "thread_local" version = "1.1.8" @@ -2693,9 +2713,9 @@ dependencies = [ [[package]] name = "tokio-stream" -version = "0.1.16" +version = "0.1.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f4e6ce100d0eb49a2734f8c0812bcd324cf357d21810932c5df6b96ef2b86f1" +checksum = "eca58d7bba4a75707817a2c44174253f9236b2d5fbd055602e9d5c07c139a047" dependencies = [ "futures-core", "pin-project-lite", @@ -2799,7 +2819,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3566e8ce28cc0a3fe42519fc80e6b4c943cc4c8cef275620eb8dac2d3d4e06cf" dependencies = [ "crossbeam-channel", - "thiserror", + "thiserror 1.0.69", "time", "tracing-subscriber", ] @@ -2992,9 +3012,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.97" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d15e63b4482863c109d70a7b8706c1e364eb6ea449b201a76c5b89cedcec2d5c" +checksum = "a474f6281d1d70c17ae7aa6a613c87fce69a127e2624002df63dcb39d6cf6396" dependencies = [ "cfg-if", "once_cell", @@ -3003,13 +3023,12 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.97" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d36ef12e3aaca16ddd3f67922bc63e48e953f126de60bd33ccc0101ef9998cd" +checksum = "5f89bb38646b4f81674e8f5c3fb81b562be1fd936d84320f3264486418519c79" dependencies = [ "bumpalo", "log", - "once_cell", "proc-macro2", "quote", "syn 2.0.90", @@ -3018,9 +3037,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.97" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "705440e08b42d3e4b36de7d66c944be628d579796b8090bfa3471478a2260051" +checksum = "2cc6181fd9a7492eef6fef1f33961e3695e4579b9872a6f7c83aee556666d4fe" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -3028,9 +3047,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.97" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98c9ae5a76e46f4deecd0f0255cc223cfa18dc9b261213b8aa0c7b36f61b3f1d" +checksum = "30d7a95b763d3c45903ed6c81f156801839e5ee968bb07e534c44df0fcd330c2" dependencies = [ "proc-macro2", "quote", @@ -3041,9 +3060,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.97" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ee99da9c5ba11bd675621338ef6fa52296b76b83305e9b6e5c77d4c286d6d49" +checksum = "943aab3fdaaa029a6e0271b35ea10b72b943135afe9bffca82384098ad0e06a6" [[package]] name = "web-time" diff --git a/Cargo.nix b/Cargo.nix index b23abde9..10595b9a 100644 --- a/Cargo.nix +++ b/Cargo.nix @@ -775,9 +775,9 @@ rec { }; "cc" = rec { crateName = "cc"; - version = "1.2.2"; + version = "1.2.3"; edition = "2018"; - sha256 = "1p7b7sxdr2hh8l9ha4cjyf1cmkigdjy4qcycriqgbjh35gk96kgk"; + sha256 = "0bcga5xf5fgvddfamsjhg89hlydzbdk1fwvcym5kkxfggdj5gxi7"; authors = [ "Alex Crichton " ]; @@ -822,9 +822,9 @@ rec { }; "chrono" = rec { crateName = "chrono"; - version = "0.4.38"; + version = "0.4.39"; edition = "2021"; - sha256 = "009l8vc5p8750vn02z30mblg4pv2qhkbfizhfwmzc6vpy5nr67x2"; + sha256 = "09g8nf409lb184kl9j4s85k0kn8wzgjkp5ls9zid50b886fwqdky"; dependencies = [ { name = "android-tzdata"; @@ -1033,9 +1033,9 @@ rec { }; "const_format" = rec { crateName = "const_format"; - version = "0.2.33"; + version = "0.2.34"; edition = "2021"; - sha256 = "0jx6ffj65prbx1w9664ddwm73k7hm5g25afyvjq4y4gi3zc5bijh"; + sha256 = "1pb3vx4k0bl3cy45fmba36hzds1jhkr8y9k3j5nnvm4abjb9fvqj"; authors = [ "rodrimati1992 " ]; @@ -1047,6 +1047,7 @@ rec { ]; features = { "__debug" = [ "const_format_proc_macros/debug" ]; + "__inline_const_pat_tests" = [ "__test" "fmt" ]; "__only_new_tests" = [ "__test" ]; "all" = [ "fmt" "derive" "rust_1_64" "assert" ]; "assert" = [ "assertc" ]; @@ -1055,19 +1056,20 @@ rec { "const_generics" = [ "rust_1_51" ]; "constant_time_as_str" = [ "fmt" ]; "derive" = [ "fmt" "const_format_proc_macros/derive" ]; - "fmt" = [ "rust_1_64" ]; + "fmt" = [ "rust_1_83" ]; "konst" = [ "dep:konst" ]; "more_str_macros" = [ "rust_1_64" ]; "nightly_const_generics" = [ "const_generics" ]; "rust_1_64" = [ "rust_1_51" "konst" "konst/rust_1_64" ]; + "rust_1_83" = [ "rust_1_64" ]; }; resolvedDefaultFeatures = [ "default" ]; }; "const_format_proc_macros" = rec { crateName = "const_format_proc_macros"; - version = "0.2.33"; + version = "0.2.34"; edition = "2021"; - sha256 = "1c8f7xh2b2kca9hlzvjplcdkvr4iqpsk4yd236n1nyzljd5s9wgg"; + sha256 = "0i3pxxcl4xvwq4mlfg3csb4j0n6v0mhj07p6yk0vlvdirznc4mqx"; procMacro = true; authors = [ "rodrimati1992 " @@ -1616,7 +1618,7 @@ rec { dependencies = [ { name = "thiserror"; - packageId = "thiserror"; + packageId = "thiserror 1.0.69"; } ]; @@ -3687,9 +3689,9 @@ rec { }; "js-sys" = rec { crateName = "js-sys"; - version = "0.3.74"; + version = "0.3.76"; edition = "2021"; - sha256 = "01g78cvwc5fgsk2p4hnpgd6ggzs1qmh7s3cgg1prbvgnywwf0rd8"; + sha256 = "1dz7v777h2j38wkf8k5iwkfxskn6nff2cdv2jsslyxkpn2svc5v7"; libName = "js_sys"; authors = [ "The wasm-bindgen Developers" @@ -3737,7 +3739,7 @@ rec { } { name = "thiserror"; - packageId = "thiserror"; + packageId = "thiserror 1.0.69"; } ]; devDependencies = [ @@ -3789,7 +3791,7 @@ rec { } { name = "thiserror"; - packageId = "thiserror"; + packageId = "thiserror 1.0.69"; } ]; @@ -4095,7 +4097,7 @@ rec { } { name = "thiserror"; - packageId = "thiserror"; + packageId = "thiserror 1.0.69"; } { name = "tokio"; @@ -4254,7 +4256,7 @@ rec { } { name = "thiserror"; - packageId = "thiserror"; + packageId = "thiserror 1.0.69"; } ]; devDependencies = [ @@ -4397,7 +4399,7 @@ rec { } { name = "thiserror"; - packageId = "thiserror"; + packageId = "thiserror 1.0.69"; } { name = "tokio"; @@ -4450,9 +4452,9 @@ rec { }; "libc" = rec { crateName = "libc"; - version = "0.2.167"; + version = "0.2.168"; edition = "2021"; - sha256 = "1z06pa4y2x2arwm7si12xsaf1cj46l9pazzrvwbsh5a320p5imh9"; + sha256 = "0vab4inpw0dz78nii02hsxp1skqn06xzh64psw8wl1h63scb5bjs"; authors = [ "The Rust Project Developers" ]; @@ -5023,7 +5025,7 @@ rec { } { name = "thiserror"; - packageId = "thiserror"; + packageId = "thiserror 1.0.69"; usesDefaultFeatures = false; } ]; @@ -5197,7 +5199,7 @@ rec { } { name = "thiserror"; - packageId = "thiserror"; + packageId = "thiserror 1.0.69"; usesDefaultFeatures = false; } { @@ -5444,9 +5446,9 @@ rec { }; "pest" = rec { crateName = "pest"; - version = "2.7.14"; + version = "2.7.15"; edition = "2021"; - sha256 = "0hplghvnz8yhs4mgpy7854gkpp6ysr96fy7ircs0k4w33al556c7"; + sha256 = "1p4rq45xprw9cx0pb8mmbfa0ih49l0baablv3cpfdy3c1pkayz4b"; authors = [ "Dragoș Tiselice " ]; @@ -5458,7 +5460,7 @@ rec { } { name = "thiserror"; - packageId = "thiserror"; + packageId = "thiserror 2.0.6"; optional = true; } { @@ -5478,9 +5480,9 @@ rec { }; "pest_derive" = rec { crateName = "pest_derive"; - version = "2.7.14"; + version = "2.7.15"; edition = "2021"; - sha256 = "1p82kbjm5dvflxgj9vl3q78n2v4l9khh2cwizm3kl4ibcdgkc56j"; + sha256 = "0zpmcd1jv1c53agad5b3jb66ylxlzyv43x1bssh8fs7w3i11hrc1"; procMacro = true; authors = [ "Dragoș Tiselice " @@ -5507,9 +5509,9 @@ rec { }; "pest_generator" = rec { crateName = "pest_generator"; - version = "2.7.14"; + version = "2.7.15"; edition = "2021"; - sha256 = "0khcyqjyd8pg1qcivh1xzk9613zbn983ycdclap1f5rh6ikmhmgb"; + sha256 = "0yrpk5ymc56pffv7gqr5rkv92p3dc6s73lb8hy1wf3w77byrc4vx"; authors = [ "Dragoș Tiselice " ]; @@ -5546,9 +5548,9 @@ rec { }; "pest_meta" = rec { crateName = "pest_meta"; - version = "2.7.14"; + version = "2.7.15"; edition = "2021"; - sha256 = "0gfhci2whiz3kiw2k2asj2lcj8rrrp4hm69whdvcpngl1jks4pdp"; + sha256 = "1skx7gm932bp77if63f7d72jrk5gygj39d8zsfzigmr5xa4q1rg1"; authors = [ "Dragoș Tiselice " ]; @@ -6807,9 +6809,9 @@ rec { }; "serde" = rec { crateName = "serde"; - version = "1.0.215"; + version = "1.0.216"; edition = "2018"; - sha256 = "13xqkw93cw9rnbkm0zy1apnilzq7l2xf1qw8m1nkga8i1fnw24v5"; + sha256 = "13ikqs0cvd220530x4rj1m9ab5wcflrwkw7cpvl9fnlkdq0q35qb"; authors = [ "Erick Tryzelaar " "David Tolnay " @@ -6862,9 +6864,9 @@ rec { }; "serde_derive" = rec { crateName = "serde_derive"; - version = "1.0.215"; + version = "1.0.216"; edition = "2015"; - sha256 = "1h2nswy0rmzblil38h12wxsgni1ik63rk22wy19g48v9hrpqc7md"; + sha256 = "0pm5bm4354n40ir12bbs829arlqwjrw0wmzd4xk5r1kkpzdmky26"; procMacro = true; authors = [ "Erick Tryzelaar " @@ -7949,7 +7951,7 @@ rec { }; resolvedDefaultFeatures = [ "default" "proc-macro" ]; }; - "thiserror" = rec { + "thiserror 1.0.69" = rec { crateName = "thiserror"; version = "1.0.69"; edition = "2021"; @@ -7960,12 +7962,31 @@ rec { dependencies = [ { name = "thiserror-impl"; - packageId = "thiserror-impl"; + packageId = "thiserror-impl 1.0.69"; } ]; }; - "thiserror-impl" = rec { + "thiserror 2.0.6" = rec { + crateName = "thiserror"; + version = "2.0.6"; + edition = "2021"; + sha256 = "0izahgy0lzcmcg2i72h9jk9lqd5zpq3z0k8cp7i7gl7b40c2mv4g"; + authors = [ + "David Tolnay " + ]; + dependencies = [ + { + name = "thiserror-impl"; + packageId = "thiserror-impl 2.0.6"; + } + ]; + features = { + "default" = [ "std" ]; + }; + resolvedDefaultFeatures = [ "default" "std" ]; + }; + "thiserror-impl 1.0.69" = rec { crateName = "thiserror-impl"; version = "1.0.69"; edition = "2021"; @@ -7990,6 +8011,32 @@ rec { } ]; + }; + "thiserror-impl 2.0.6" = rec { + crateName = "thiserror-impl"; + version = "2.0.6"; + edition = "2021"; + sha256 = "04k3dz901mymm06j3x6f65hpbsqlk6g51fmiky9g2kqgnk550myn"; + procMacro = true; + libName = "thiserror_impl"; + authors = [ + "David Tolnay " + ]; + dependencies = [ + { + name = "proc-macro2"; + packageId = "proc-macro2"; + } + { + name = "quote"; + packageId = "quote"; + } + { + name = "syn"; + packageId = "syn 2.0.90"; + } + ]; + }; "thread_local" = rec { crateName = "thread_local"; @@ -8385,9 +8432,9 @@ rec { }; "tokio-stream" = rec { crateName = "tokio-stream"; - version = "0.1.16"; + version = "0.1.17"; edition = "2021"; - sha256 = "1wc65gprcsyzqlr0k091glswy96kph90i32gffi4ksyh03hnqkjg"; + sha256 = "0ix0770hfp4x5rh5bl7vsnr3d4iz4ms43i522xw70xaap9xqv9gc"; libName = "tokio_stream"; authors = [ "Tokio Contributors " @@ -8834,7 +8881,7 @@ rec { } { name = "thiserror"; - packageId = "thiserror"; + packageId = "thiserror 1.0.69"; } { name = "time"; @@ -9436,9 +9483,9 @@ rec { }; "wasm-bindgen" = rec { crateName = "wasm-bindgen"; - version = "0.2.97"; + version = "0.2.99"; edition = "2021"; - sha256 = "0p1dxkfcx2avdjkh3cj9lipfnr73q438fyqasw4w2qr892s66pni"; + sha256 = "15k3rzb3kjrxyqnh0916gq99mrpwhwy62smawxxc2w0x3llgcx54"; libName = "wasm_bindgen"; authors = [ "The wasm-bindgen Developers" @@ -9458,20 +9505,6 @@ rec { packageId = "wasm-bindgen-macro"; usesDefaultFeatures = false; } - { - name = "wasm-bindgen-macro"; - packageId = "wasm-bindgen-macro"; - usesDefaultFeatures = false; - target = { target, features }: (("wasm32" == target."arch" or null) && (("unknown" == target."os" or null) || ("none" == target."os" or null)) && (builtins.elem "atomics" targetFeatures)); - features = [ "atomics" ]; - } - { - name = "wasm-bindgen-macro"; - packageId = "wasm-bindgen-macro"; - usesDefaultFeatures = false; - target = { target, features }: (("wasm32" == target."arch" or null) && (("unknown" == target."os" or null) || ("none" == target."os" or null)) && (target."wasm_bindgen_unstable_test_coverage" or false)); - features = [ "coverage" ]; - } ]; features = { "default" = [ "spans" "std" ]; @@ -9488,9 +9521,9 @@ rec { }; "wasm-bindgen-backend" = rec { crateName = "wasm-bindgen-backend"; - version = "0.2.97"; + version = "0.2.99"; edition = "2021"; - sha256 = "1kcqk7ph20fc7k9hprkd28zrb3p4cfy24ygnsgfidjmawc9fydld"; + sha256 = "0ycwa4c68j34687k513djgyy2asn3fw3yp4g9rkq2kvbchwbp2az"; libName = "wasm_bindgen_backend"; authors = [ "The wasm-bindgen Developers" @@ -9504,10 +9537,6 @@ rec { name = "log"; packageId = "log"; } - { - name = "once_cell"; - packageId = "once_cell"; - } { name = "proc-macro2"; packageId = "proc-macro2"; @@ -9530,13 +9559,13 @@ rec { "default" = [ "std" ]; "extra-traits" = [ "syn/extra-traits" ]; }; - resolvedDefaultFeatures = [ "atomics" "coverage" "spans" "std" ]; + resolvedDefaultFeatures = [ "spans" "std" ]; }; "wasm-bindgen-macro" = rec { crateName = "wasm-bindgen-macro"; - version = "0.2.97"; + version = "0.2.99"; edition = "2021"; - sha256 = "0l804si7h527lfzr103bg5wxaa769fa6rmp7dnry9ls2igh40m3h"; + sha256 = "1znlcrk5bvisr3vscwlqkdby959n3sb367zgdzpjwjd7v4giiiic"; procMacro = true; libName = "wasm_bindgen_macro"; authors = [ @@ -9554,20 +9583,18 @@ rec { } ]; features = { - "atomics" = [ "wasm-bindgen-macro-support/atomics" ]; - "coverage" = [ "wasm-bindgen-macro-support/coverage" ]; "default" = [ "std" ]; "spans" = [ "wasm-bindgen-macro-support/spans" ]; "std" = [ "wasm-bindgen-macro-support/std" ]; "strict-macro" = [ "wasm-bindgen-macro-support/strict-macro" ]; }; - resolvedDefaultFeatures = [ "atomics" "coverage" "spans" "std" ]; + resolvedDefaultFeatures = [ "spans" "std" ]; }; "wasm-bindgen-macro-support" = rec { crateName = "wasm-bindgen-macro-support"; - version = "0.2.97"; + version = "0.2.99"; edition = "2021"; - sha256 = "079z3gv3cyqcmaw164i6kgf1iyiw4b65a0hgrpp4svz4frdaxjcq"; + sha256 = "1hihsgyg0kf46kjhgfv8x5g9x0q1d0aizj6n7s84ag1xfrdskmrh"; libName = "wasm_bindgen_macro_support"; authors = [ "The wasm-bindgen Developers" @@ -9597,21 +9624,19 @@ rec { } ]; features = { - "atomics" = [ "wasm-bindgen-backend/atomics" ]; - "coverage" = [ "wasm-bindgen-backend/coverage" ]; "default" = [ "std" ]; "extra-traits" = [ "syn/extra-traits" ]; "spans" = [ "wasm-bindgen-backend/spans" ]; "std" = [ "wasm-bindgen-backend/std" ]; }; - resolvedDefaultFeatures = [ "atomics" "coverage" "spans" "std" ]; + resolvedDefaultFeatures = [ "spans" "std" ]; }; "wasm-bindgen-shared" = rec { crateName = "wasm-bindgen-shared"; - version = "0.2.97"; + version = "0.2.99"; edition = "2021"; links = "wasm_bindgen"; - sha256 = "0jbddll4qzf7wnvfj19kp1v6naajzbv8wcr1arkvs4dsqnlrvsbf"; + sha256 = "19h61snrhh1qhb5gz6zyb89l7fbj1fhmxcvi09p9l0mav8zsnfll"; libName = "wasm_bindgen_shared"; authors = [ "The wasm-bindgen Developers" diff --git a/rust/operator-binary/src/command.rs b/rust/operator-binary/src/command.rs index 48fa93c4..5b70f99a 100644 --- a/rust/operator-binary/src/command.rs +++ b/rust/operator-binary/src/command.rs @@ -118,6 +118,7 @@ pub fn container_trino_args( {COMMON_BASH_TRAP_FUNCTIONS} {remove_vector_shutdown_file_command} prepare_signal_handlers +containerdebug --output={STACKABLE_LOG_DIR}/containerdebug-state.json --loop & bin/launcher run --etc-dir={RW_CONFIG_DIR_NAME} --data-dir={DATA_DIR_NAME} & wait_for_termination $! {create_vector_shutdown_file_command} diff --git a/rust/operator-binary/src/controller.rs b/rust/operator-binary/src/controller.rs index e71b883e..0d0dcd54 100644 --- a/rust/operator-binary/src/controller.rs +++ b/rust/operator-binary/src/controller.rs @@ -934,6 +934,15 @@ fn build_rolegroup_statefulset( .cloned(), ); + // Needed by the `containerdebug` process to log it's tracing information to. + // This process runs in the background of the `trino` container. + // See command::container_trino_args() for how it's called. + env.push(EnvVar { + name: "CONTAINERDEBUG_LOG_DIRECTORY".into(), + value: Some(format!("{STACKABLE_LOG_DIR}/containerdebug")), + ..EnvVar::default() + }); + // Finally add the user defined envOverrides properties. env.extend( config diff --git a/tests/templates/kuttl/opa-authorization/04-install-keycloak.yaml.j2 b/tests/templates/kuttl/opa-authorization/04-install-keycloak.yaml.j2 index 2c12bb54..9357dc4e 100644 --- a/tests/templates/kuttl/opa-authorization/04-install-keycloak.yaml.j2 +++ b/tests/templates/kuttl/opa-authorization/04-install-keycloak.yaml.j2 @@ -91,6 +91,8 @@ commands: secretKeyRef: name: user-info-fetcher-client-credentials key: clientSecret + - name: JAVA_OPTS_KC_HEAP + value: -Xmx500M ports: - name: https containerPort: 8443 diff --git a/tests/templates/kuttl/smoke/12-assert.yaml b/tests/templates/kuttl/smoke/12-assert.yaml new file mode 100644 index 00000000..8dc90a93 --- /dev/null +++ b/tests/templates/kuttl/smoke/12-assert.yaml @@ -0,0 +1,8 @@ +--- +# This test checks if the containerdebug-state.json file is present and valid +apiVersion: kuttl.dev/v1beta1 +kind: TestAssert +timeout: 600 +commands: + - script: kubectl exec -n $NAMESPACE --container trino trino-coordinator-default-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status '"valid JSON"' + - script: kubectl exec -n $NAMESPACE --container trino trino-worker-default-0 -- cat /stackable/log/containerdebug-state.json | jq --exit-status '"valid JSON"'