@ -40,7 +40,7 @@ import org.apache.kafka.common.protocol.Errors
import org.apache.kafka.common.protocol.types.Type._
import org.apache.kafka.common.protocol.types.Type._
import org.apache.kafka.common.protocol.types._
import org.apache.kafka.common.protocol.types._
import org.apache.kafka.common.record._
import org.apache.kafka.common.record._
import org.apache.kafka.common.requests. { IsolationLevel , OffsetFetchResponse }
import org.apache.kafka.common.requests. { IsolationLevel , OffsetCommitRequest , Offset FetchResponse }
import org.apache.kafka.common.requests.ProduceResponse.PartitionResponse
import org.apache.kafka.common.requests.ProduceResponse.PartitionResponse
import org.apache.kafka.common.utils. { Time , Utils }
import org.apache.kafka.common.utils. { Time , Utils }
@ -1129,7 +1129,7 @@ object GroupMetadataManager {
value . set ( OFFSET_VALUE_METADATA_FIELD_V1 , offsetAndMetadata . metadata )
value . set ( OFFSET_VALUE_METADATA_FIELD_V1 , offsetAndMetadata . metadata )
value . set ( OFFSET_VALUE_COMMIT_TIMESTAMP_FIELD_V1 , offsetAndMetadata . commitTimestamp )
value . set ( OFFSET_VALUE_COMMIT_TIMESTAMP_FIELD_V1 , offsetAndMetadata . commitTimestamp )
// version 1 has a non empty expireTimestamp field
// version 1 has a non empty expireTimestamp field
value . set ( OFFSET_VALUE_EXPIRE_TIMESTAMP_FIELD_V1 , offsetAndMetadata . expireTimestamp . get )
value . set ( OFFSET_VALUE_EXPIRE_TIMESTAMP_FIELD_V1 , offsetAndMetadata . expireTimestamp . getOrElse ( OffsetCommitRequest . DEFAULT_TIMESTAMP ) )
}
}
val byteBuffer = ByteBuffer . allocate ( 2 /* version */ + value . sizeOf )
val byteBuffer = ByteBuffer . allocate ( 2 /* version */ + value . sizeOf )