本文介绍了Google File Service closeFinally()超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚面临使用AppEngine FileService将数据写入Google Cloud Storage的问题。

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

问题与超时有关,因为我认为。我创建了一个新的GS文件并使用任务将数据写入它。每个任务都使用close()关闭FileWriteChannel。但closeFinally()在最后写入约2小时后调用(这是我的DataFlow所要求的)。所以我没有在GS中看到任何文件。

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.

在上次写入和closeFinally()之间是否有任何时间限制?

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

推荐答案

close() closeFinally()的调用之间没有超时,但您必须使用使用 createNewGSFile()开始上传后的几天内调用 closeFinally()

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().

这篇关于Google File Service closeFinally()超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 12:47