You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 27, 2021. It is now read-only.
Ok - so the problem seems to be caused by the fact that only a part of the file is being read - after the 1st read available() on GzipInputStream returns 1 -so there's more to be read. More proper version would be something like this patch (basic version,
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- rpc/nativerpc/src/main/java/com/spotify/heroic/rpc/nativerpc/NativeUtils.java (revision a5fb75376677b7cfcbd918557b78736a3e1af782)
+++ rpc/nativerpc/src/main/java/com/spotify/heroic/rpc/nativerpc/NativeUtils.java (revision )
@@ -46,9 +46,16 @@
final byte[] bytes = new byte[bodySize];
try (final GZIPInputStream in = new GZIPInputStream(new ByteArrayInputStream(body))) {
- in.read(bytes);
+ byte[] buf = new byte[1024];
+ int idx = 0;
+ while (in.available() > 0) {
+ int read = in.read(buf);
+ if (read > 0) {
+ System.arraycopy(buf, 0, bytes, idx, read);
+ idx += read;
- }
+ }
-
+ }
+ }
return bytes;
}
During certain queries the intra-cluster transport is seemingly corrupting data.
Example query in my case:
If the query runs locally (ie. within current instance) it completes successfully:
Response from cluster when querying against remote node:
The text was updated successfully, but these errors were encountered: