Google File Service closeFinally() timeout

2019-07-07 08:09发布

I just faced a problem with writing data to Google Cloud Storage using AppEngine FileService.

The problem is timeout related as I think. I created new GS file and write data to it using Tasks. Every task closes FileWriteChannel with close(). But closeFinally() is called in about 2 hours after last write (It is required by my DataFlow). So I do not see any file in GS.

Is it any timeoute between last write and closeFinally()?

1条回答
在下西门庆
2楼-- · 2019-07-07 08:51

There is no timeout between calls to close() and closeFinally() but you must finalize the upload with a call to closeFinally() within a few days after starting the upload with createNewGSFile().

查看更多
登录 后发表回答