LeonYoah commented on issue #6678:
URL: https://github.com/apache/seatunnel/issues/6678#issuecomment-2058186835

   
   
   
   
   > > `Sometimes hadoopConf's getSchema method returns s3n instead of s3a, 
resulting in the s3 connector actually being cached` Is this 
reproducible?#00000;是可复制的?
   > 
   > Can you try use remote debug?你能尝试使用远程调试吗?
   
   I seem to have spotted the problem, noting that this code is actually fine, 
by executing the buildWithConfig method it assigns [SCHEMA] to "s3a", but the 
key is that when the whole [sink] is passed downstream to [multiTableSink], it 
is de-serialized, The deserialization process re-instantiates the static 
variables, and the member variables of the entire S3CONF class are [stastic] 
modified, including [SCHEMA], resulting in [mutiltable sink] getting the 
default value of [SCHEMA], which is "s3n".
   
   
![image](https://github.com/apache/seatunnel/assets/95527066/1c293cd0-9fb9-4a9f-b41f-406fb3197a53)
   


-- 
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]

Reply via email to