silver-ymz opened a new issue, #2837:
URL: https://github.com/apache/incubator-opendal/issues/2837

   When testing gcs with `default_storage_class` config in my local env, tests 
about writing all failed.
   
   Maybe the reason is that we deal with `multipart` by hand in 
`gcs_insert_object_request`.
   
   `services_gcs::test_write_only` log:
   ```
   ❯ cargo nextest run services_gcs::test_write_only
       Finished test [unoptimized + debuginfo] target(s) in 0.62s
       Starting 1 test across 2 binaries (221 skipped)
           FAIL [   9.517s] opendal::behavior services_gcs::test_write_only
   
   --- STDOUT:              opendal::behavior services_gcs::test_write_only ---
   
   running 1 test
     2023-08-10T02:30:57.718850Z ERROR opendal::services: service=gcs 
operation=Writer::write path=01708b91-c2f4-4e7f-97db-d5c600522c19 written=0 -> 
data write failed: Unexpected (temporary) at Writer::write => read data from 
http stream
   
   Context:
       url: 
https://storage.googleapis.com/upload/storage/v1/b/test_ymz/o?uploadType=multipart&name=opendal1a8a2dc5-1a98-4b0e-8e37-c7463c9131fc/01708b91-c2f4-4e7f-97db-d5c600522c19
       service: gcs
       path: 01708b91-c2f4-4e7f-97db-d5c600522c19
   
   Source: request or response body error: error reading a body from 
connection: stream error received: unspecific protocol error detected
   
   Caused by:
       0: error reading a body from connection: stream error received: 
unspecific protocol error detected
       1: stream error received: unspecific protocol error detected
   
       at core/src/layers/logging.rs:1331
   
     2023-08-10T02:30:59.076179Z ERROR opendal::services: service=gcs 
operation=Writer::write path=01708b91-c2f4-4e7f-97db-d5c600522c19 written=0 -> 
data write failed: Unexpected (temporary) at Writer::write => read data from 
http stream
   
   Context:
       url: 
https://storage.googleapis.com/upload/storage/v1/b/test_ymz/o?uploadType=multipart&name=opendal1a8a2dc5-1a98-4b0e-8e37-c7463c9131fc/01708b91-c2f4-4e7f-97db-d5c600522c19
       service: gcs
       path: 01708b91-c2f4-4e7f-97db-d5c600522c19
   
   Source: request or response body error: error reading a body from 
connection: stream error received: unspecific protocol error detected
   
   Caused by:
       0: error reading a body from connection: stream error received: 
unspecific protocol error detected
       1: stream error received: unspecific protocol error detected
   
       at core/src/layers/logging.rs:1331
   
     2023-08-10T02:31:01.430873Z ERROR opendal::services: service=gcs 
operation=Writer::write path=01708b91-c2f4-4e7f-97db-d5c600522c19 written=0 -> 
data write failed: Unexpected (temporary) at Writer::write => read data from 
http stream
   
   Context:
       url: 
https://storage.googleapis.com/upload/storage/v1/b/test_ymz/o?uploadType=multipart&name=opendal1a8a2dc5-1a98-4b0e-8e37-c7463c9131fc/01708b91-c2f4-4e7f-97db-d5c600522c19
       service: gcs
       path: 01708b91-c2f4-4e7f-97db-d5c600522c19
   
   Source: request or response body error: error reading a body from 
connection: stream error received: unspecific protocol error detected
   
   Caused by:
       0: error reading a body from connection: stream error received: 
unspecific protocol error detected
       1: stream error received: unspecific protocol error detected
   
       at core/src/layers/logging.rs:1331
   
     2023-08-10T02:31:05.783949Z ERROR opendal::services: service=gcs 
operation=Writer::write path=01708b91-c2f4-4e7f-97db-d5c600522c19 written=0 -> 
data write failed: Unexpected (temporary) at Writer::write => read data from 
http stream
   
   Context:
       url: 
https://storage.googleapis.com/upload/storage/v1/b/test_ymz/o?uploadType=multipart&name=opendal1a8a2dc5-1a98-4b0e-8e37-c7463c9131fc/01708b91-c2f4-4e7f-97db-d5c600522c19
       service: gcs
       path: 01708b91-c2f4-4e7f-97db-d5c600522c19
   
   Source: request or response body error: error reading a body from 
connection: stream error received: unspecific protocol error detected
   
   Caused by:
       0: error reading a body from connection: stream error received: 
unspecific protocol error detected
       1: stream error received: unspecific protocol error detected
   
       at core/src/layers/logging.rs:1331
   
   test services_gcs::test_write_only ... FAILED
   
   failures:
   
   ---- services_gcs::test_write_only ----
   Unexpected (temporary) at Writer::write, context: { url: 
https://storage.googleapis.com/upload/storage/v1/b/test_ymz/o?uploadType=multipart&name=opendal1a8a2dc5-1a98-4b0e-8e37-c7463c9131fc/01708b91-c2f4-4e7f-97db-d5c600522c19,
 service: gcs, path: 01708b91-c2f4-4e7f-97db-d5c600522c19 } => read data from 
http stream, source: request or response body error: error reading a body from 
connection: stream error received: unspecific protocol error detected
   
   
   failures:
       services_gcs::test_write_only
   
   test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 99 filtered 
out; finished in 9.34s
   
   
   ------------
        Summary [   9.518s] 1 test run: 0 passed, 1 failed, 221 skipped
           FAIL [   9.517s] opendal::behavior services_gcs::test_write_only
   error: test run failed
   ```


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