dixingxing0 opened a new issue #2471:
URL: https://github.com/apache/iceberg/issues/2471


   I've met this error while writing record in flink job ( 
`writer.write(element.getValue());` )
   and my logs show `element.getValue()` is literally not null.
   
   ```java
   2021-04-13 20:35:43
   org.apache.iceberg.exceptions.RuntimeIOException: Problem writing to ORC 
file 
viewfs://AutoLfCluster/warehouse/fdm/fdm_iceb_rcm_feature_origin_di/data/dt=2021-04-13/hour=15/00055-0-2bd8a724-b581-44d4-af3f-ea8973401680-00001.orc
        at org.apache.iceberg.orc.OrcFileAppender.add(OrcFileAppender.java:89)
        at org.apache.iceberg.io.DataWriter.add(DataWriter.java:53)
        at 
org.apache.iceberg.io.BaseTaskWriter$RollingFileWriter.write(BaseTaskWriter.java:320)
        at 
org.apache.iceberg.io.BaseTaskWriter$RollingFileWriter.write(BaseTaskWriter.java:303)
        at 
org.apache.iceberg.io.BaseTaskWriter$BaseRollingWriter.write(BaseTaskWriter.java:245)
        at 
org.apache.iceberg.io.PartitionedFanoutWriter.write(PartitionedFanoutWriter.java:58)
        at 
org.apache.iceberg.flink.sink.IcebergStreamWriter.processElement(IcebergStreamWriter.java:73)
        at 
org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.pushToOperator(OperatorChain.java:717)
        at 
org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:692)
        at 
org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:672)
        at 
org.apache.flink.streaming.api.operators.CountingOutput.collect(CountingOutput.java:52)
        at 
org.apache.flink.streaming.api.operators.CountingOutput.collect(CountingOutput.java:30)
        at StreamExecCalc$33.processElement(Unknown Source)
        at 
org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.pushToOperator(OperatorChain.java:717)
        at 
org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:692)
        at 
org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:672)
        at 
org.apache.flink.streaming.api.operators.CountingOutput.collect(CountingOutput.java:52)
        at 
org.apache.flink.streaming.api.operators.CountingOutput.collect(CountingOutput.java:30)
        at SourceConversion$1.processElement(Unknown Source)
        at 
org.apache.flink.streaming.runtime.tasks.OneInputStreamTask$StreamTaskNetworkOutput.emitRecord(OneInputStreamTask.java:161)
        at 
org.apache.flink.streaming.runtime.io.StreamTaskNetworkInput.processElement(StreamTaskNetworkInput.java:178)
        at 
org.apache.flink.streaming.runtime.io.StreamTaskNetworkInput.emitNext(StreamTaskNetworkInput.java:153)
        at 
org.apache.flink.streaming.runtime.io.StreamOneInputProcessor.processInput(StreamOneInputProcessor.java:67)
        at 
org.apache.flink.streaming.runtime.tasks.StreamTask.processInput(StreamTask.java:351)
        at 
org.apache.flink.streaming.runtime.tasks.mailbox.MailboxProcessor.runMailboxStep(MailboxProcessor.java:191)
        at 
org.apache.flink.streaming.runtime.tasks.mailbox.MailboxProcessor.runMailboxLoop(MailboxProcessor.java:181)
        at 
org.apache.flink.streaming.runtime.tasks.StreamTask.runMailboxLoop(StreamTask.java:566)
        at 
org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:536)
        at org.apache.flink.runtime.taskmanager.Task.doRun(Task.java:721)
        at org.apache.flink.runtime.taskmanager.Task.run(Task.java:546)
        at java.lang.Thread.run(Thread.java:745)
   Caused by: java.io.IOException: Problem adding row to 
viewfs://AutoLfCluster/warehouse/fdm/fdm_iceb_rcm_feature_origin_di/data/dt=2021-04-13/hour=15/00055-0-2bd8a724-b581-44d4-af3f-ea8973401680-00001.orc
        at 
org.apache.iceberg.shaded.org.apache.orc.impl.WriterImpl.addRowBatch(WriterImpl.java:714)
        at org.apache.iceberg.orc.OrcFileAppender.add(OrcFileAppender.java:85)
        ... 30 more
   Caused by: java.lang.NullPointerException
        at java.lang.System.arraycopy(Native Method)
        at 
org.apache.iceberg.shaded.org.apache.orc.impl.DynamicByteArray.add(DynamicByteArray.java:115)
        at 
org.apache.iceberg.shaded.org.apache.orc.impl.StringRedBlackTree.addNewKey(StringRedBlackTree.java:48)
        at 
org.apache.iceberg.shaded.org.apache.orc.impl.StringRedBlackTree.add(StringRedBlackTree.java:60)
        at 
org.apache.iceberg.shaded.org.apache.orc.impl.writer.StringTreeWriter.writeBatch(StringTreeWriter.java:69)
        at 
org.apache.iceberg.shaded.org.apache.orc.impl.writer.StructTreeWriter.writeRootBatch(StructTreeWriter.java:57)
        at 
org.apache.iceberg.shaded.org.apache.orc.impl.WriterImpl.addRowBatch(WriterImpl.java:690)
        ... 31 more
   
   ```
   


-- 
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.

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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to