nickyua / google-bigquery-tools

Automatically exported from code.google.com/p/google-bigquery-tools
0 stars 0 forks source link

Random error: java.io.IOException: mark/reset #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. calling bigquery.insert with local csv file
2.
3.

What is the expected output? What do you see instead?

java.lang.RuntimeException: java.io.IOException: mark/reset not supported
    at com.google.api.client.googleapis.MediaExponentialBackOffPolicy.getNextBackOffMillis(MediaExponentialBackOffPolicy.java:58)
    at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:833)
    at com.google.api.client.googleapis.MediaHttpUploader.upload(MediaHttpUploader.java:208)
    at com.google.api.services.bigquery.Bigquery$Jobs$Insert.executeUnparsed(Bigquery.java:1419)
    at com.google.api.services.bigquery.Bigquery$Jobs$Insert.execute(Bigquery.java:1441)
    at org.terracotta.bq.BigqueryHandler.upload(BigqueryHandler.java:133)
    at org.terracotta.kit.reflector.BigqueryUploader.doRun(BigqueryUploader.java:62)
    at org.terracotta.kit.reflector.ProcessingThread.run(ProcessingThread.java:21)
Caused by: java.io.IOException: mark/reset not supported
    at java.io.InputStream.reset(InputStream.java:334)
    at com.google.api.client.googleapis.MediaHttpUploader.serverErrorCallback(MediaHttpUploader.java:322)
    at com.google.api.client.googleapis.MediaExponentialBackOffPolicy.getNextBackOffMillis(MediaExponentialBackOffPolicy.java:55)
    ... 7 more

What version of the product are you using? On what operating system?

google-api-services-bigquery-v2-1.4.0-beta

Please provide any additional information below.

It's odd that this IOException happened out of no where when the process has 
been running for days. What's more unexpected that it's wrapped in a 
RuntimeException. 

Original issue reported on code.google.com by hhu...@gmail.com on 12 Sep 2012 at 6:04