Skip to content

Commit

Permalink
fix: job execute again if exception & insert_memory_usage_limit config (
Browse files Browse the repository at this point in the history
  • Loading branch information
vagetablechicken authored Jan 31, 2024
1 parent 6f2e511 commit 7d755ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ class SparkPlanner(session: SparkSession, config: OpenmldbBatchConfig, sparkAppN
case e: Exception =>
println("Get exception: " + e.getMessage)
e.printStackTrace()
body(sqlEngine)
throw e
} finally {
if (sqlEngine != null) {
sqlEngine.close()
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/sql_cluster_router.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2891,7 +2891,7 @@ std::shared_ptr<hybridse::sdk::ResultSet> SQLClusterRouter::ExecuteSQL(
::openmldb::base::Status base_status;
if (is_online_mode) {
// Handle in online mode
config.emplace("insert_memory_usage_limit",
config.emplace("spark.insert_memory_usage_limit",
std::to_string(insert_memory_usage_limit_.load(std::memory_order_relaxed)));
base_status = ImportOnlineData(sql, config, database, is_sync_job, offline_job_timeout, &job_info);
} else {
Expand Down

0 comments on commit 7d755ff

Please sign in to comment.