Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-2477

ClassCastException in IndexedWALEditCodec after HBASE-14501 (possible dataloss)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 4.7.0
    • None
    • None

    Description

      HBASE-14501 fixed the semantics in using the InputStream.available() and the interface between the actual Decoder and BaseDecoder.

      Running Phoenix with IndexedWALEditCodec on top of an HBase version containing HBASE-14501 now causes silent data loss since the Decoder throws

      java.lang.ClassCastException: org.apache.hadoop.hbase.codec.BaseDecoder$PBIS cannot be cast to java.io.DataInput
      

      which gets silently ignored from ProtobufLogReader.

      Attachments

        1. phoenix-2477_v1.patch
          2 kB
          Enis Soztutar
        2. phoenix-2477_v2.patch
          5 kB
          Enis Soztutar

        Issue Links

          Activity

            People

              enis Enis Soztutar
              enis Enis Soztutar
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: