github-actions[bot] commented on code in PR #63026:
URL: https://github.com/apache/doris/pull/63026#discussion_r3194462153


##########
be/src/runtime/descriptors.cpp:
##########
@@ -312,11 +304,6 @@ MaxComputeTableDescriptor::MaxComputeTableDescriptor(const 
TTableDescriptor& tde
 
     if (tdesc.mcTable.__isset.properties) [[likely]] {
         _props = tdesc.mcTable.properties;
-    } else {
-        static const std::string MC_ACCESS_KEY = "mc.access_key";
-        static const std::string MC_SECRET_KEY = "mc.secret_key";
-        _props.insert({MC_ACCESS_KEY, _access_key});
-        _props.insert({MC_SECRET_KEY, _secret_key});

Review Comment:
   This fallback is not just an unused accessor cleanup: `TMCTable` still 
carries the deprecated `access_key`/`secret_key` fields, and BE previously 
converted them into the `mc.access_key`/`mc.secret_key` properties consumed by 
`MaxComputeJniReader`. During a rolling upgrade, or when replaying/receiving an 
older descriptor that does not set `mcTable.properties`, this change leaves 
`_props` empty and the JNI reader loses credentials. Please keep the fallback 
while the thrift fields still exist/supported, or add explicit compatibility 
handling before removing these members.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to