Skip to content

Commit

Permalink
Addressed the spotbug issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gaojieliu committed Apr 22, 2024
1 parent d459c76 commit 8ad4090
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.Properties;
Expand Down Expand Up @@ -496,7 +497,9 @@ public void testReadingChunkedRmdFromStorage() {

when(storageEngine.getReplicationMetadata(subPartition, topLevelKey2)).thenReturn(chunkedManifestWithSchemaBytes);
when(storageEngine.getReplicationMetadata(subPartition, chunkedKey1InKey2)).thenReturn(chunkedValue1);
when(storageEngine.multiGetReplicationMetadata(eq(subPartition), any())).thenReturn(Arrays.asList(chunkedValue1));
List<byte[]> chunkedValues = new ArrayList<>(1);
chunkedValues.add(chunkedValue1);
when(storageEngine.multiGetReplicationMetadata(eq(subPartition), any())).thenReturn(chunkedValues);
byte[] result2 = ingestionTask.getRmdWithValueSchemaByteBufferFromStorage(subPartition, key2, container, 0L);
Assert.assertNotNull(result2);
Assert.assertNotNull(container.getManifest());
Expand Down

0 comments on commit 8ad4090

Please sign in to comment.