hudi-bot opened a new issue, #17383:
URL: https://github.com/apache/hudi/issues/17383

   {code:java}
   @Override
   public void persistHistorySchemaStr(String instantTime, String 
historySchemaStr) {
     cleanResidualFiles();
     HoodieActiveTimeline timeline = getMetaClient().getActiveTimeline();
     HoodieInstant hoodieInstant = 
metaClient.createNewInstant(HoodieInstant.State.REQUESTED, 
SCHEMA_COMMIT_ACTION, instantTime);
     timeline.createNewInstant(hoodieInstant);
     byte[] writeContent = getUTF8Bytes(historySchemaStr);
     timeline.transitionRequestedToInflight(hoodieInstant, Option.empty());
     timeline.saveAsComplete(false, metaClient.createNewInstant(
         HoodieInstant.State.INFLIGHT, hoodieInstant.getAction(), 
hoodieInstant.requestedTime()), 
Option.of(HoodieInstantWriter.convertByteArrayToWriter(writeContent)));
     LOG.info(String.format("persist history schema success on commit time: 
%s", instantTime));
   } {code}
   the saveAsComplete should not give writeContent which is a raw byte []. 
   
   ## JIRA info
   
   - Link: https://issues.apache.org/jira/browse/HUDI-9094
   - Type: Sub-task
   - Parent: https://issues.apache.org/jira/browse/HUDI-9054
   - Fix version(s):
     - 1.1.0


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to