Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-11594

OM double buffer exception in debug mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0
    • None

    Description

      When OM is in debug log level, I found the following log in the stacktrace:

      2024-10-17 17:14:16,288 WARN [om27-OMDoubleBufferFlushThread]-org.apache.hadoop.hdds.utils.db.StringCodecBase: Decode (hex) 0A 04 76 6F 6C 31 12 07 62 75 63 6B 65 74 31 1A 03 64 73 74 ...
        Attempt failed : UTF-8 (see exception below)
        Retry succeeded: decoded to
      ^Dvol1^R^Gbucket1^Z^Cdst ����^A(^A0^C:^@^R^^
      ^P
      ^L^H^A^P�������^A^P^@^X^@ ����^A(^@H^@ ^@@��ݿ�2HϦ�۩2P^@j^M^H^A^R^Droot^Z^A� ^@j^M^H^B^R^Droot^Z^A� ^@p���������^Ax�R�^A���������^A�^A^A�^A^Droot
      java.nio.charset.MalformedInputException: Input length = 1
              at java.nio.charset.CoderResult.throwException(CoderResult.java:281)
              at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:816)
              at org.apache.hadoop.hdds.utils.db.StringCodecBase.decode(StringCodecBase.java:116)
              at org.apache.hadoop.hdds.utils.db.RocksDatabase.bytes2String(RocksDatabase.java:93)
              at org.apache.hadoop.hdds.utils.db.RocksDatabase$ColumnFamily.batchPut(RocksDatabase.java:309)
              at org.apache.hadoop.hdds.utils.db.RDBBatchOperation$OpCache$FamilyCache.prepareBatchWrite(RDBBatchOperation.java:159)
              at org.apache.hadoop.hdds.utils.db.RDBBatchOperation$OpCache.prepareBatchWrite(RDBBatchOperation.java:288)
              at org.apache.hadoop.hdds.utils.db.RDBBatchOperation.commit(RDBBatchOperation.java:347)
              at org.apache.hadoop.hdds.utils.db.RDBStore.commitBatchOperation(RDBStore.java:285)
              at org.apache.hadoop.ozone.om.ratis.OzoneManagerDoubleBuffer.lambda$4(OzoneManagerDoubleBuffer.java:368)
              at org.apache.hadoop.ozone.om.ratis.OzoneManagerDoubleBuffer.flushBatchWithTrace(OzoneManagerDoubleBuffer.java:268)
              at org.apache.hadoop.ozone.om.ratis.OzoneManagerDoubleBuffer.flushBatch(OzoneManagerDoubleBuffer.java:366)
              at org.apache.hadoop.ozone.om.ratis.OzoneManagerDoubleBuffer.flushCurrentBuffer(OzoneManagerDoubleBuffer.java:329)
              at org.apache.hadoop.ozone.om.ratis.OzoneManagerDoubleBuffer.flushTransactions(OzoneManagerDoubleBuffer.java:296)
              at java.lang.Thread.run(Thread.java:748) 

      It just prints a scary warning but the exception is caught and proceed. So it's okay.

      Attachments

        Issue Links

          Activity

            People

              ashishk Ashish Kumar
              weichiu Wei-Chiu Chuang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: