Skip to content

Commit

Permalink
compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
ericm-db committed Dec 13, 2024
1 parent ed8e0a9 commit ca1353c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,6 @@ class PrefixKeyScanStateEncoder(
virtualColFamilyId: Option[Short] = None)
extends RocksDBKeyStateEncoderBase(useColumnFamilies, virtualColFamilyId) with Logging {

private val usingAvroEncoding = avroEnc.isDefined
private val prefixKeyFieldsWithIdx: Seq[(StructField, Int)] = {
keySchema.zipWithIndex.take(numColsPrefixKey)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import java.util.concurrent.{ConcurrentHashMap, TimeUnit}

import scala.util.control.NonFatal

import com.google.common.cache.CacheBuilder
import org.apache.hadoop.conf.Configuration
import org.apache.hadoop.fs.Path

Expand Down Expand Up @@ -614,7 +613,7 @@ object RocksDBStateStoreProvider {
private val AVRO_ENCODER_LIFETIME_HOURS = 1L

// Add the cache at companion object level so it persists across provider instances
private val avroEncoderMap: NonFateSharingCache[String, AvroEncoder] =
private val dataEncoderCache: NonFateSharingCache[String, RocksDBDataEncoder] =
NonFateSharingCache(
maximumSize = MAX_AVRO_ENCODERS_IN_CACHE,
expireAfterAccessTime = AVRO_ENCODER_LIFETIME_HOURS,
Expand Down

0 comments on commit ca1353c

Please sign in to comment.