[fix](profile) fix possible coredump of rpc verbose profile (#40117)

## Proposed changes

Issue Number: close #xxx

`_instance_to_rpc_stats_vec` may be updated when sorting in
`ExchangeSinkBuffer<Parent>::update_profile`, which may cause coredump.
This commit is contained in:
TengJianPing
2024-08-29 23:54:52 +08:00
committed by GitHub
parent c50d2ea4e2
commit b86e4e8498
2 changed files with 17 additions and 13 deletions

View File

@ -712,7 +712,7 @@ public class SessionVariable implements Serializable, Writable {
public boolean enableProfile = false;
@VariableMgr.VarAttr(name = ENABLE_VERBOSE_PROFILE, needForward = true)
public boolean enableVerboseProfile = true;
public boolean enableVerboseProfile = false;
@VariableMgr.VarAttr(name = RPC_VERBOSE_PROFILE_MAX_INSTANCE_COUNT, needForward = true)
public int rpcVerboseProfileMaxInstanceCount = 5;