paragpratim commented on PR #41329:
URL: https://github.com/apache/beam/pull/41329#issuecomment-7349549278

   > We should pass the reservation to the copy-job path as well (should go 
through `WriteRename` and `BigQueryServices#startCopyJob(...)`. And add 
relevant tests please
   
   Thats a good observation. I have made the changes but before committing 
would like to share the observations 
   - COPY jobs accepts the explicit slot reservation but does not use them and 
depend on them. Also I see no slot usage in copy jobs. I forced a copy job with 
FILE_LOAD using `.withMaxFilesPerPartition(1)` 
     - without `.withLoadJobReservation` :  LOAD jobs fails with error - 
`However, only jobs that run on a reservation with the "ENTERPRISE_PLUS" 
edition can modify or write to failover datasets. Please also make sure that 
the job that is writing to the failover dataset is running in the current 
primary location.`  But the COPY job is successful. None of them has 
`"reservation": ` in the job metadata.
     - with `.withLoadJobReservation` : Both LOAD jobs and COPY jobs has the 
mentioned `"reservation": ` in the metadata and both success. But copy job does 
not show any slot usage.
   
   So it looks like adding reservation in the copy job does not has any impact. 
Even on a dataset with `ENTERPRISE_PLUS` reservation , COPY jobs works without 
explicit mention of reservation in the job definition.
   
   Also I was looking into this documentation - 
https://docs.cloud.google.com/bigquery/docs/reservations-workload-management#reservation_assignments
 which does not explicitly mention COPY job.
   
   Do you think we still should propagate the `reservation` in the COPY job 
definition as well ? 


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