orc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eugene Koifman (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ORC-309) WriterImpl.close() calls WriterCallback methods out of order
Date Wed, 28 Feb 2018 22:33:00 GMT
Eugene Koifman created ORC-309:
----------------------------------

             Summary: WriterImpl.close() calls WriterCallback methods out of order
                 Key: ORC-309
                 URL: https://issues.apache.org/jira/browse/ORC-309
             Project: ORC
          Issue Type: Bug
            Reporter: Eugene Koifman


}}org.apache.orc.impl.WriterImpl}}
{noformat}
  @Override
  public void close() throws IOException {
    if (callback != null) {
      callback.preFooterWrite(callbackContext);
    }
    // remove us from the memory manager so that we don't get any callbacks
    memoryManager.removeWriter(path);
    // actually close the file
    flushStripe();
    lastFlushOffset = writeFooter();
    physicalWriter.close();
  }
 {noformat}
so this causes preFooterWrite() to be called before {{preStripeWrite()}} from {{flushStripe()}}.

HIVE-18817 is one place where this shows up



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message