Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-17718 Hive on Spark Debugging Improvements
  3. HIVE-20280

JobResultSerializer uses wrong registration id in KyroMessageCodec

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Spark
    • None

    Description

      Inside KryoMessageCodec the code:

            Kryo kryo = new Kryo();
            int count = 0;
            for (Class<?> klass : messages) {
              kryo.register(klass, REG_ID_BASE + count);
              count++;
            }
            kryo.register(BaseProtocol.JobResult.class, new JobResultSerializer(), count);
      

      Uses the wrong registration id for the JobResultSerializer it should be REG_ID_BASE + count not count

      Attachments

        Activity

          People

            stakiar Sahil Takiar
            stakiar Sahil Takiar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: