GMN failure on large object transfer
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 28/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- java
- 领域
- api, networking
调研方向
先从第 464-470 行附近的 HttpMultipartRestClient.java 中的 doPostRequest,以及第 495 行附近的 MultipartMNode.java 中的 create 开始,然后跟踪 stack trace 中显示的 GMN create 调用。复现或分析 5GB 传输超时,并确定故障是客户端问题还是与 member node 有关;该 issue 未定义具体的预期修复方案。
由索引模型根据 Issue 内容生成。
描述
The following was reported by Ross for a failure trying to upload a large 5GB file to GMN using create() from the Java client. Here's Ross' report:
we encountered three "Read Timeout" errors (see past history) in the past two days - one of the archives was small and we were able to submit it again right away, and it worked the second time. The other two both contain a file around 5GB in size, so it took substantially longer (hours) for the member node to error out. Could this be related to production issues this week or otherwise?
SEVERE: unable to create resource map
org.dataone.service.exceptions.ServiceFailure: class org.dataone.client.exception.ClientSideException: /Read timed out
at org.dataone.client.rest.HttpMultipartRestClient.doPostRequest(HttpMultipartRestClient.java:470)
at org.dataone.client.v2.impl.MultipartMNode.create(MultipartMNode.java:495)
at util.ArchiveSubmitter.createFile(ArchiveSubmitter.java:573)
at util.ArchiveSubmitter.createFolderMap(ArchiveSubmitter.java:218)
at util.ArchiveSubmitter.createBaseFolderMap(ArchiveSubmitter.java:149)
at util.ArchiveSubmitter.submit(ArchiveSubmitter.java:99)
at models.archive.ArchivePackage.submit(ArchivePackage.java:241)
at controllers.Archive.submitArchive(Archive.java:242)
at play.mvc.ActionInvoker.invokeWithContinuation(ActionInvoker.java:536)
at play.mvc.ActionInvoker.invoke(ActionInvoker.java:473)
at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:467)
at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:436)
at play.mvc.ActionInvoker.invoke(ActionInvoker.java:159)
at Invocation.HTTP Request(Play!)
Caused by: org.dataone.client.exception.ClientSideException: /Read timed out
... 14 more
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at java.net.SocketInputStream.read(SocketInputStream.java:171)
at java.net.SocketInputStream.read(SocketInputStream.java:141)
at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
at sun.security.ssl.InputRecord.read(InputRecord.java:503)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:975)
at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:933)
at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137)
at org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:153)
at org.apache.http.impl.io.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:282)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:138)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259)
at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163)
at org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:165)
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272)
at org.apache.http.impl.client.cache.CachingExec.callBackend(CachingExec.java:578)
at org.apache.http.impl.client.cache.CachingExec.execute(CachingExec.java:259)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at org.dataone.client.rest.RestClient.doRequest(RestClient.java:330)
at org.dataone.client.rest.RestClient.doRequestMMBody(RestClient.java:306)
at org.dataone.client.rest.RestClient.doPostRequest(RestClient.java:226)
at org.dataone.client.rest.HttpMultipartRestClient.doPostRequest(HttpMultipartRestClient.java:464)
... 13 more
timestamps in logs indicate the archive submission took hours to fail (at 4:18am) after being submitted (createFolderMap @ 7:47pm) to the member node
timestamps in logs indicate the archive submission took hours to fail (at 4:18am) after being submitted (createFolderMap @ 7:47pm) to the member node
May 14, 2020 7:47:59 PM play.Logger info
INFO: submitArchive: 6456544
May 14, 2020 7:47:59 PM play.Logger info
INFO: createFolderMap
May 15, 2020 4:18:44 AM play.Logger niceThrowable
SEVERE: unable to create resource map
org.dataone.service.exceptions.ServiceFailure: class org.dataone.client.exception.ClientSideException: /Read timed out
at org.dataone.client.rest.HttpMultipartRestClient.doPostRequest(HttpMultipartRestClient.java:470)
at org.dataone.client.v2.impl.MultipartMNode.create(MultipartMNode.java:495)
at util.ArchiveSubmitter.createFile(ArchiveSubmitter.java:573)
at util.ArchiveSubmitter.createFolderMap(ArchiveSubmitter.java:218)
at util.ArchiveSubmitter.createBaseFolderMap(ArchiveSubmitter.java:149)
this occurs when MN.create is called using the Java API to GMN
- 主要语言
- Python
- 星标
- 18
- 派生
- 10
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DataONEorg/d1_python 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 70/100
DataONEorg/d1_python#108 ·
-
难度 3/5 1-2 天 新手友好度 45/100
DataONEorg/d1_python#105 · 3 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 45/100
DataONEorg/d1_python#103 ·
-
难度 3/5 1-2 天 新手友好度 45/100
DataONEorg/d1_python#101 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
DataONEorg/d1_python#100 ·
查看 DataONEorg/d1_python 的全部 Issue
相似的 Issue
-
Make the "%" unit spacing the same in the web and in A10可能已有人在做 @kragent66-glitch 今天认领。 未关闭bug good first issue
难度 2/5 1-3 小时 新手友好度 74/100
maiychrus25/OpenTea-DX-OS#226 · 1 条评论 ·
-
ci severity: low
难度 2/5 1-3 小时 新手友好度 78/100
TMHSDigital/Spackle#205 ·
维护者通常 1 天内回复
-
pkg:lgm type:chore upstream-gaussx
难度 2/5 1-3 小时 新手友好度 76/100
jejjohnson/pyrox#610 ·
维护者通常 1 天内回复
-
changelog investigate
难度 2/5 1-3 小时 新手友好度 62/100
ramnes/notion-sdk-py#523 ·
-
feature-request
难度 2/5 1-3 小时 新手友好度 78/100
open-telemetry/opentelemetry-python#5994 ·
维护者通常 2 天内回复