Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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 @@ -7,7 +7,7 @@ public record Shard(
@SerializedName("class") String collection,
@SerializedName("objectCount") int objectCount,
@SerializedName("vectorIndexingStatus") VectorIndexingStatus vectorIndexingStatus,
@SerializedName("vectorQueueLenght") int vectorQueueLenght,
@SerializedName("vectorQueueLength") int vectorQueueLength,
@SerializedName("compressed") boolean compressed,
@SerializedName("loaded") boolean loaded,
@SerializedName("numberOfReplicas") int numberOfReplicas,
Expand Down
20 changes: 20 additions & 0 deletions src/test/java/io/weaviate/client6/v1/internal/json/JSONTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
import com.jparams.junit4.data.DataMethod;

import io.weaviate.client6.v1.api.cluster.NodeVerbosity;
import io.weaviate.client6.v1.api.cluster.Shard;
import io.weaviate.client6.v1.api.cluster.VectorIndexingStatus;
import io.weaviate.client6.v1.api.collections.CollectionConfig;
import io.weaviate.client6.v1.api.collections.Encoding;
import io.weaviate.client6.v1.api.collections.Generative;
Expand Down Expand Up @@ -2269,6 +2271,24 @@ public static Object[][] testCases() {
}
"""
},
// Shard: the server's key is "vectorQueueLength" -- see #619
{
Shard.class,
new Shard("s1", "Things", 7, VectorIndexingStatus.INDEXING, 42, false, true, 1, 1),
"""
{
"name": "s1",
"class": "Things",
"objectCount": 7,
"vectorIndexingStatus": "INDEXING",
"vectorQueueLength": 42,
"compressed": false,
"loaded": true,
"numberOfReplicas": 1,
"replicationFactor": 1
}
"""
},
};
}

Expand Down
Loading