Your question took too long - error "Error reducing result rows: Closed"

Hello!

Diagnostic info:
{
"browser-info": {
"language": "en-US",
"platform": "Win32",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
"vendor": "Google Inc."
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "11.0.20+8",
"java.vendor": "Eclipse Adoptium",
"java.vendor.url": "https://adoptium.net/",
"java.version": "11.0.20",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.20+8",
"os.name": "Linux",
"os.version": "5.10.197-186.748.amzn2.x86_64",
"user.language": "en",
"user.timezone": "UTC"
},
"metabase-info": {
"databases": [
"postgres",
"h2"
],
"hosting-env": "unknown",
"application-database": "postgres",
"application-database-details": {
"database": {
"name": "PostgreSQL",
"version": "13.10 (Ubuntu 13.10-1.pgdg22.04+1)"
},
"jdbc-driver": {
"name": "PostgreSQL JDBC Driver",
"version": "42.5.1"
}
},
"run-mode": "prod",
"version": {
"date": "2023-07-28",
"tag": "v0.46.6.4",
"branch": "release-x.46.6.x",
"hash": "7c60aca"
},
"settings": {
"report-timezone": null
}
}
}

Logs:
[8c5ecbf1-35e5-4acf-ad28-5f2e153235e2] 2024-01-22T11:20:19+02:00 ERROR metabase.query-processor.middleware.catch-exceptions Error processing query: Closed
{:database_id 41,
:started_at #t "2024-01-22T09:10:19.429205Z[UTC]",
:via
[{:status :failed,
:class clojure.lang.ExceptionInfo,
:error "Error reducing result rows: Closed",
:stacktrace
["--> query_processor.context.default$default_reducef$fn__53407.invoke(default.clj:60)"
"query_processor.context.default$default_reducef.invokeStatic(default.clj:57)"
"query_processor.context.default$default_reducef.invoke(default.clj:49)"
"query_processor.context$reducef.invokeStatic(context.clj:70)"
"query_processor.context$reducef.invoke(context.clj:63)"
"query_processor.context.default$default_runf$respond_STAR___53411.invoke(default.clj:69)"
"driver.sql_jdbc.execute$execute_reducible_query.invokeStatic(execute.clj:513)"
"driver.sql_jdbc.execute$execute_reducible_query.invoke(execute.clj:489)"
"driver.sql_jdbc.execute$execute_reducible_query.invokeStatic(execute.clj:497)"
"driver.sql_jdbc.execute$execute_reducible_query.invoke(execute.clj:489)"
"driver.sql_jdbc$fn__105207.invokeStatic(sql_jdbc.clj:63)"
"driver.sql_jdbc$fn__105207.invoke(sql_jdbc.clj:61)"
"query_processor.context$executef.invokeStatic(context.clj:60)"
"query_processor.context$executef.invoke(context.clj:49)"
"query_processor.context.default$default_runf.invokeStatic(default.clj:68)"
"query_processor.context.default$default_runf.invoke(default.clj:66)"
"query_processor.context$runf.invokeStatic(context.clj:46)"
"query_processor.context$runf.invoke(context.clj:40)"
"query_processor.reducible$identity_qp.invokeStatic(reducible.clj:15)"
"query_processor.reducible$identity_qp.invoke(reducible.clj:12)"
"query_processor.middleware.cache$maybe_return_cached_results$maybe_return_cached_results_STAR___69239.invoke(cache.clj:224)"
"query_processor.middleware.permissions$check_query_permissions$fn__64711.invoke(permissions.clj:126)"
"query_processor.middleware.mbql_to_native$mbql__GT_native$fn__68130.invoke(mbql_to_native.clj:24)"
"query_processor$fn__70758$combined_post_process__70763$combined_post_process_STAR___70764.invoke(query_processor.clj:243)"
"query_processor$fn__70758$combined_pre_process__70759$combined_pre_process_STAR___70760.invoke(query_processor.clj:240)"
"query_processor.middleware.resolve_database_and_driver$resolve_database_and_driver$fn__69150$fn__69155.invoke(resolve_database_and_driver.clj:36)"
"driver$do_with_driver.invokeStatic(driver.clj:92)"
"driver$do_with_driver.invoke(driver.clj:88)"
"query_processor.middleware.resolve_database_and_driver$resolve_database_and_driver$fn__69150.invoke(resolve_database_and_driver.clj:35)"
"query_processor.middleware.fetch_source_query$resolve_card_id_source_tables$fn__65021.invoke(fetch_source_query.clj:316)"
"query_processor.middleware.store$initialize_store$fn__65199$fn__65200.invoke(store.clj:12)"
"query_processor.store$do_with_store.invokeStatic(store.clj:47)"
"query_processor.store$do_with_store.invoke(store.clj:41)"
"query_processor.middleware.store$initialize_store$fn__65199.invoke(store.clj:11)"
"query_processor.middleware.normalize_query$normalize$fn__69439.invoke(normalize_query.clj:25)"
"query_processor.middleware.constraints$add_default_userland_constraints$fn__66377.invoke(constraints.clj:54)"
"query_processor.middleware.process_userland_query$process_userland_query$fn__69375.invoke(process_userland_query.clj:151)"
"query_processor.middleware.catch_exceptions$catch_exceptions$fn__69752.invoke(catch_exceptions.clj:171)"
"query_processor.reducible$async_qp$qp_STAR___59520$thunk__59522.invoke(reducible.clj:103)"
"query_processor.reducible$async_qp$qp_STAR___59520.invoke(reducible.clj:109)"
"query_processor.reducible$async_qp$qp_STAR___59520.invoke(reducible.clj:94)"
"query_processor.reducible$sync_qp$qp_STAR___59532.doInvoke(reducible.clj:129)"
"query_processor$process_userland_query.invokeStatic(query_processor.clj:366)"
"query_processor$process_userland_query.doInvoke(query_processor.clj:362)"
"query_processor$fn__70807$process_query_and_save_execution_BANG___70816$fn__70819.invoke(query_processor.clj:377)"
"query_processor$fn__70807$process_query_and_save_execution_BANG___70816.invoke(query_processor.clj:370)"
"query_processor$fn__70852$process_query_and_save_with_max_results_constraints_BANG___70861$fn__70864.invoke(query_processor.clj:389)"
"query_processor$fn__70852$process_query_and_save_with_max_results_constraints_BANG___70861.invoke(query_processor.clj:382)"
"api.dataset$run_query_async$fn__86959.invoke(dataset.clj:73)"
"query_processor.streaming$streaming_response_STAR_$fn__54383$fn__54384.invoke(streaming.clj:166)"
"query_processor.streaming$streaming_response_STAR_$fn__54383.invoke(streaming.clj:165)"
"async.streaming_response$do_f_STAR_.invokeStatic(streaming_response.clj:69)"
"async.streaming_response$do_f_STAR_.invoke(streaming_response.clj:67)"
"async.streaming_response$do_f_async$task__36968.invoke(streaming_response.clj:88)"],
:error_type :qp,
:ex-data {:type :qp}}],
:error_type :qp,
:json_query
{:type "native",
:native {:query "select pg_sleep(600);", :template-tags {}},
:database 41,
:parameters ,
:middleware {:js-int-to-string? true, :add-default-userland-constraints? true}},
:status :failed,
:class org.eclipse.jetty.io.EofException,
:stacktrace
["org.eclipse.jetty.server.HttpOutput.checkWritable(HttpOutput.java:750)"
"org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:780)"
"java.base/java.io.OutputStream.write(Unknown Source)"
"java.base/java.util.zip.GZIPOutputStream.writeHeader(Unknown Source)"
"java.base/java.util.zip.GZIPOutputStream.(Unknown Source)"
"java.base/java.util.zip.GZIPOutputStream.(Unknown Source)"
"--> async.streaming_response$output_stream_delay$fn__36978.invoke(streaming_response.clj:111)"
"async.streaming_response$delay_output_stream$fn__36987.invoke(streaming_response.clj:128)"
"async.streaming_response.proxy$java.io.OutputStream$ff19274a.write(Unknown Source)"
"query_processor.streaming.json$fn$reify__53508.write_row_BANG_(json.clj:75)"
"query_processor.streaming$streaming_rff$fn__54324$fn__54329.invoke(streaming.clj:127)"
"query_processor.middleware.process_userland_query$add_and_save_execution_info_xform_BANG_$execution_info_rf_STAR___69366.invoke(process_userland_query.clj:106)"
"query_processor.reducible$combine_additional_reducing_fns$combine_additional_reducing_fns_rf_STAR___59543.invoke(reducible.clj:209)"
"query_processor.middleware.add_rows_truncated$add_rows_truncated_xform$fn__66789.invoke(add_rows_truncated.clj:34)"
"query_processor.middleware.format_rows$format_rows_xform$fn__69656.invoke(format_rows.clj:74)"
"query_processor.reducible$combine_additional_reducing_fns$combine_additional_reducing_fns_rf_STAR___59543.invoke(reducible.clj:209)"
"query_processor.reducible$reducible_rows$reify__59535.reduce(reducible.clj:153)"
"query_processor.context.default$default_reducef$fn__53407.invoke(default.clj:58)"
"query_processor.context.default$default_reducef.invokeStatic(default.clj:57)"
"query_processor.context.default$default_reducef.invoke(default.clj:49)"
"query_processor.context$reducef.invokeStatic(context.clj:70)"
"query_processor.context$reducef.invoke(context.clj:63)"
"query_processor.context.default$default_runf$respond_STAR___53411.invoke(default.clj:69)"
"driver.sql_jdbc.execute$execute_reducible_query.invokeStatic(execute.clj:513)"
"driver.sql_jdbc.execute$execute_reducible_query.invoke(execute.clj:489)"
"driver.sql_jdbc.execute$execute_reducible_query.invokeStatic(execute.clj:497)"
"driver.sql_jdbc.execute$execute_reducible_query.invoke(execute.clj:489)"
"driver.sql_jdbc$fn__105207.invokeStatic(sql_jdbc.clj:63)"
"driver.sql_jdbc$fn__105207.invoke(sql_jdbc.clj:61)"
"query_processor.context$executef.invokeStatic(context.clj:60)"
"query_processor.context$executef.invoke(context.clj:49)"
"query_processor.context.default$default_runf.invokeStatic(default.clj:68)"
"query_processor.context.default$default_runf.invoke(default.clj:66)"
"query_processor.context$runf.invokeStatic(context.clj:46)"
"query_processor.context$runf.invoke(context.clj:40)"
"query_processor.reducible$identity_qp.invokeStatic(reducible.clj:15)"
"query_processor.reducible$identity_qp.invoke(reducible.clj:12)"
"query_processor.middleware.cache$maybe_return_cached_results$maybe_return_cached_results_STAR___69239.invoke(cache.clj:224)"
"query_processor.middleware.permissions$check_query_permissions$fn__64711.invoke(permissions.clj:126)"
"query_processor.middleware.mbql_to_native$mbql__GT_native$fn__68130.invoke(mbql_to_native.clj:24)"
"query_processor$fn__70758$combined_post_process__70763$combined_post_process_STAR___70764.invoke(query_processor.clj:243)"
"query_processor$fn__70758$combined_pre_process__70759$combined_pre_process_STAR___70760.invoke(query_processor.clj:240)"
"query_processor.middleware.resolve_database_and_driver$resolve_database_and_driver$fn__69150$fn__69155.invoke(resolve_database_and_driver.clj:36)"
"driver$do_with_driver.invokeStatic(driver.clj:92)"
"driver$do_with_driver.invoke(driver.clj:88)"
"query_processor.middleware.resolve_database_and_driver$resolve_database_and_driver$fn__69150.invoke(resolve_database_and_driver.clj:35)"
"query_processor.middleware.fetch_source_query$resolve_card_id_source_tables$fn__65021.invoke(fetch_source_query.clj:316)"
"query_processor.middleware.store$initialize_store$fn__65199$fn__65200.invoke(store.clj:12)"
"query_processor.store$do_with_store.invokeStatic(store.clj:47)"
"query_processor.store$do_with_store.invoke(store.clj:41)"
"query_processor.middleware.store$initialize_store$fn__65199.invoke(store.clj:11)"
"query_processor.middleware.normalize_query$normalize$fn__69439.invoke(normalize_query.clj:25)"
"query_processor.middleware.constraints$add_default_userland_constraints$fn__66377.invoke(constraints.clj:54)"
"query_processor.middleware.process_userland_query$process_userland_query$fn__69375.invoke(process_userland_query.clj:151)"
"query_processor.middleware.catch_exceptions$catch_exceptions$fn__69752.invoke(catch_exceptions.clj:171)"
"query_processor.reducible$async_qp$qp_STAR___59520$thunk__59522.invoke(reducible.clj:103)"
"query_processor.reducible$async_qp$qp_STAR___59520.invoke(reducible.clj:109)"
"query_processor.reducible$async_qp$qp_STAR___59520.invoke(reducible.clj:94)"
"query_processor.reducible$sync_qp$qp_STAR___59532.doInvoke(reducible.clj:129)"
"query_processor$process_userland_query.invokeStatic(query_processor.clj:366)"
"query_processor$process_userland_query.doInvoke(query_processor.clj:362)"
"query_processor$fn__70807$process_query_and_save_execution_BANG___70816$fn__70819.invoke(query_processor.clj:377)"
"query_processor$fn__70807$process_query_and_save_execution_BANG___70816.invoke(query_processor.clj:370)"
"query_processor$fn__70852$process_query_and_save_with_max_results_constraints_BANG___70861$fn__70864.invoke(query_processor.clj:389)"
"query_processor$fn__70852$process_query_and_save_with_max_results_constraints_BANG___70861.invoke(query_processor.clj:382)"
"api.dataset$run_query_async$fn__86959.invoke(dataset.clj:73)"
"query_processor.streaming$streaming_response_STAR_$fn__54383$fn__54384.invoke(streaming.clj:166)"
"query_processor.streaming$streaming_response_STAR_$fn__54383.invoke(streaming.clj:165)"
"async.streaming_response$do_f_STAR_.invokeStatic(streaming_response.clj:69)"
"async.streaming_response$do_f_STAR_.invoke(streaming_response.clj:67)"
"async.streaming_response$do_f_async$task__36968.invoke(streaming_response.clj:88)"],
:card_id nil,
:context :ad-hoc,
:error "Closed",
:row_count 0,
:running_time 0,
:data {:rows , :cols }}

Connection schema:
Broowser -> Metabase pod(port-forward) -> Postgres service (Clusrer IP) -> Postgres pod

Description
All resources are in AWS EKS. Metabase is deployed with helm chart - https://artifacthub.io/packages/helm/pmint93/metabase , Postgres is deployed at the same cluster. I connected to Metabase without any proxy, Postgres also has no proxies.
I run request - select pg_sleep(600); and get error.
I tried to run direct postgres request from another pod cli and got correct response, so database doesn't have some timeout limitation. Also I tried to set next parameters in helm:

jetty:
  maxIdleTime: 700000
  idleTimeout: 700000
  connectTimeout: 700000

but had no succes.
Help me to solve error, thanks!