NIFI-3995: This closes #1873. No longer use the 14th byte in the header for hwx content-encoded schema reference

Signed-off-by: joewitt <joewitt@apache.org>
This commit is contained in:
Mark Payne 2017-05-31 12:20:02 -04:00 committed by joewitt
parent 7bcccb10f4
commit a0b2311ff6
2 changed files with 1 additions and 2 deletions

View File

@ -46,7 +46,7 @@ public class HortonworksEncodedSchemaReferenceStrategy implements SchemaAccessSt
@Override
public RecordSchema getSchema(final FlowFile flowFile, final InputStream contentStream) throws SchemaNotFoundException, IOException {
final byte[] buffer = new byte[14];
final byte[] buffer = new byte[13];
try {
StreamUtils.fillBuffer(contentStream, buffer);
} catch (final IOException ioe) {

View File

@ -47,7 +47,6 @@ public class HortonworksEncodedSchemaReferenceWriter implements SchemaAccessWrit
bb.put((byte) LATEST_PROTOCOL_VERSION);
bb.putLong(id);
bb.putInt(version);
bb.put((byte) 0); // We always use generic records
out.write(bb.array());
}