kevinjmh opened a new issue, #4321:
URL: https://github.com/apache/incubator-seatunnel/issues/4321

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   After file moved, transaction folder  and sub-folder is not cleaned
   
   
   
![image](https://user-images.githubusercontent.com/3809732/224212045-24cbc5ec-283f-4d9e-ba4d-42190c92061d.png)
   
![image](https://user-images.githubusercontent.com/3809732/224212111-9b75e91a-d38b-454f-9247-a48d44d1bea0.png)
   
![image](https://user-images.githubusercontent.com/3809732/224212134-aacd2db9-1999-434b-9aca-216a5570a4cf.png)
   
   ```
   23/03/09 14:14:25 INFO util.FileSystemUtils: begin rename file oldName 
:[/tmp/seatunnel/seatunnel/886ea402fb7c4ad08f3495eac49f14f5/fef7457165/T_886ea402fb7c4ad08f3495eac49f14f5_fef7457165_13_1/NON_PARTITION/T_886ea402fb7c4ad08f3495eac49f14f5_fef7457165_13_1_20230309_0.orc]
 to newName 
:[<mypath>/T_886ea402fb7c4ad08f3495eac49f14f5_fef7457165_13_1_20230309_0.orc]
   23/03/09 14:14:25 INFO util.FileSystemUtils: rename file 
:[/tmp/seatunnel/seatunnel/886ea402fb7c4ad08f3495eac49f14f5/fef7457165/T_886ea402fb7c4ad08f3495eac49f14f5_fef7457165_13_1/NON_PARTITION/T_886ea402fb7c4ad08f3495eac49f14f5_fef7457165_13_1_20230309_0.orc]
 to 
[<mypath>/T_886ea402fb7c4ad08f3495eac49f14f5_fef7457165_13_1_20230309_0.orc] 
finish
   ```
   
   
   ### SeaTunnel Version
   
   2.3.0
   
   ### SeaTunnel Config
   
   ```conf
   env {
     job.mode = "BATCH"
     parallelism = 4
     spark.app.name = "user"
     spark.driver.cores = 1
     spark.driver.memory = 1g
     spark.executor.instances = 2
     spark.executor.cores = 5
     spark.executor.memory = 5g
   }
   
   source { 
       JDBC {
         result_table_name = "t1"
         url = "jdbc:oracle:thin:@"
         driver = "oracle.jdbc.OracleDriver"
         user = ""
         password = ""
         query = ${basic_sql}
       }
   }
   
   
   sink {
     HdfsFile {
       source_table_name = "t1"
       file_name_expression = "${transactionId}_${now}"
       fs.defaultFS = "hdfs://xx"
       hdfs_site_path = "/xx/hdfs-site.xml"
       path = ${out_parent_dir}
       file_format = "orc"
       filename_time_format = "yyyyMMdd"
       is_enable_transaction = true
       batch_size = 50000000
     }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   ./bin/start-seatunnel-spark-connector-v2.sh \
   --master yarn \
   --deploy-mode client \
   --config  config/xx.conf \
   -i date=20230307
   ```
   
   
   ### Error Exception
   
   ```log
   nothing
   ```
   
   
   ### Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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