Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ private void validatePrefixLookup(TableInfo tableInfo, List<String> lookupColumn
}

@Override
public CompletableFuture<LookupResult> lookup(InternalRow prefixKey) {
public synchronized CompletableFuture<LookupResult> lookup(InternalRow prefixKey) {
byte[] bucketKeyBytes = bucketKeyEncoder.encodeKey(prefixKey);
int bucketId = bucketingFunction.bucketing(bucketKeyBytes, numBuckets);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public PrimaryKeyLookuper(
}

@Override
public CompletableFuture<LookupResult> lookup(InternalRow lookupKey) {
public synchronized CompletableFuture<LookupResult> lookup(InternalRow lookupKey) {
// encoding the key row using a compacted way consisted with how the key is encoded when put
// a row
byte[] pkBytes = primaryKeyEncoder.encodeKey(lookupKey);
Expand Down