SunnyBoy-WYH opened a new issue, #2468:
URL: https://github.com/apache/incubator-hugegraph/issues/2468

   ### Bug Type (问题类型)
   
   others (please edit later)
   
   ### Before submit
   
   - [X] 我已经确认现有的 [Issues](https://github.com/apache/hugegraph/issues) 与 
[FAQ](https://hugegraph.apache.org/docs/guides/faq/) 中没有相同 / 重复问题 (I have 
confirmed and searched that there are no similar problems in the historical 
issue and documents)
   
   ### Environment (环境信息)
   
   latest branch
   
   ### Expected & Actual behavior (期望与实际表现)
   
   we support slow log before ,but it cause bug when loader batch import data, 
the feat PR see https://github.com/apache/incubator-hugegraph/pull/2327
   
   and later we downgrade it ,see pr : 
https://github.com/apache/incubator-hugegraph/pull/2347
   
   the bug due to:
   
   we need get post body from req, and we need set it back to request, so it 
changed.
   the loader request use the "GZIP" header, after get post body, server cant 
read it
   so we ready to resolve it , use BufferedInputStream to cache the stream:
   
   ` BufferedInputStream bufferedStream = new 
BufferedInputStream(context.getEntityStream());
   
           bufferedStream.mark(Integer.MAX_VALUE);
   
           context.setProperty(REQUEST_PARAMS_JSON, 
IOUtils.toString(bufferedStream, Charsets.toCharset(CHARSET)));
   
           bufferedStream.reset();
   
           context.setEntityStream(bufferedStream);
   
   ### Vertex/Edge example (问题点 / 边数据举例)
   
   _No response_
   
   ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
   
   _No response_


-- 
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: dev-unsubscr...@hugegraph.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to