You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-5352 Properly handle PP restart for DML/DDL operations.
This commit is contained in:
committed by
Leonid Fedorov
parent
d3896efb0f
commit
7f14dae5c7
@ -98,7 +98,8 @@ class DMLPackageProcessor
|
||||
TABLE_LOCK_ERROR,
|
||||
JOB_ERROR,
|
||||
JOB_CANCELED,
|
||||
DBRM_READ_ONLY
|
||||
DBRM_READ_ONLY,
|
||||
PP_LOST_CONNECTION
|
||||
};
|
||||
|
||||
enum DebugLevel /** @brief Debug level type enumeration */
|
||||
@ -236,7 +237,11 @@ class DMLPackageProcessor
|
||||
*
|
||||
* @param cpackage the CalpontDMLPackage to process
|
||||
*/
|
||||
virtual DMLResult processPackage(dmlpackage::CalpontDMLPackage& cpackage) = 0;
|
||||
DMLResult processPackage(dmlpackage::CalpontDMLPackage& cpackage);
|
||||
|
||||
/** @brief Check that give exception is related to PP lost connection.
|
||||
*/
|
||||
bool checkPPLostConnection(std::exception& ex);
|
||||
|
||||
inline void setRM(joblist::ResourceManager* frm)
|
||||
{
|
||||
@ -526,6 +531,8 @@ class DMLPackageProcessor
|
||||
execplan::ClientRotator* fExeMgr;
|
||||
|
||||
private:
|
||||
virtual DMLResult processPackageInternal(dmlpackage::CalpontDMLPackage& cpackage) = 0;
|
||||
|
||||
/** @brief clean beginning and ending glitches and spaces from string
|
||||
*
|
||||
* @param s string to be cleaned
|
||||
@ -533,6 +540,8 @@ class DMLPackageProcessor
|
||||
void cleanString(std::string& s);
|
||||
|
||||
DebugLevel fDebugLevel; // internal use debug level
|
||||
|
||||
const std::string PPLostConnectionErrorCode = "MCS-2045";
|
||||
};
|
||||
|
||||
/** @brief helper template function to do safe from string to type conversions
|
||||
|
Reference in New Issue
Block a user