FragmentRecordBatch fragmentBatch = get(pBody, FragmentRecordBatch.PARSER);
FragmentHandle handle = fragmentBatch.getHandle();
try {
FragmentManager manager = workBus.getOrCreateFragmentManager(fragmentBatch.getHandle());
if (manager == null) {
if (body != null) {
body.release();
}
}
BufferAllocator allocator = manager.getFragmentContext().getAllocator();
if(body != null){
if(!allocator.takeOwnership((DrillBuf) body.unwrap())){
dataHandler.handle(connection, manager, OOM_FRAGMENT, null, null);
}
}