hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joydeep Sen Sarma (JIRA)" <j...@apache.org>
Subject [jira] Created: (HADOOP-1682) Hadoop records can't serialize zero length string
Date Sat, 04 Aug 2007 22:44:52 GMT
Hadoop records can't serialize zero length string

                 Key: HADOOP-1682
                 URL: https://issues.apache.org/jira/browse/HADOOP-1682
             Project: Hadoop
          Issue Type: Bug
          Components: record
    Affects Versions: 0.13.0
         Environment: [jssarma@hadoop001 hadoop-0.13.0]$ uname -a
Linux 2.6.12-1.1398_FC4smp #1 SMP Fri Jul 15 01:05:\
24 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux

            Reporter: Joydeep Sen Sarma

	at org.apache.hadoop.record.Utils.toBinaryString(Utils.java:307)
	at org.apache.hadoop.record.BinaryRecordOutput.writeString(BinaryRecordOutput.java:95)
	at com.facebook.infrastructure.profiles.users_extended.serialize(users_extended.java:153)
	at org.apache.hadoop.record.Record.serialize(Record.java:58)
	at org.apache.hadoop.record.Record.write(Record.java:72)
	at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.collect(MapTask.java:365)
	at com.facebook.infrastructure.profiles.conv_users_extended$MapClass.map(conv_users_extended.java:133)
	at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:48)
	at org.apache.hadoop.mapred.MapTask.run(MapTask.java:186)
	at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:1707)

    final int strlen = str.length();
    byte[] bytes = new byte[strlen*4]; // Codepoints expand to 4 bytes max      
barfs on trying to allocate zero length array?

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message