Open SunnyBoy-WYH opened 4 months ago
Attention: Patch coverage is 92.30769%
with 2 lines
in your changes missing coverage. Please review.
Project coverage is 49.91%. Comparing base (
506850c
) to head (071943c
). Report is 1 commits behind head on master.
Files | Patch % | Lines |
---|---|---|
...g/apache/hugegraph/api/filter/AccessLogFilter.java | 77.77% | 2 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
fix #2468
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:
so we ready to resolve it , use BufferedInputStream to cache the stream:
` BufferedInputStream bufferedStream = new BufferedInputStream(context.getEntityStream());
` case: [Slow Query] ip=127.0.0.1 execTime=22ms, body={"gremlin":"hugegraph.backendStoreFeatures() .supportsSharedStorage();","bindings":{},"language":"gremlin-groovy","aliases":{"g":"__g_hugegraph"}}, method=POST, path=/gremlin, query=null
and then i test it![image](https://github.com/apache/incubator-hugegraph/assets/48077841/8140392c-a7cb-4b0d-a347-60206a7f078b)