Skip to content

Commit 4fde185

Browse files
authored
Merge pull request #1886 from weaviate/chore/remove-chunksize-param
Mark 'ChunkSize' as deprecated & exclude it from export
2 parents 46161c1 + 4e287da commit 4fde185

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

integration/test_backup_v4.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,6 @@ def test_backup_and_restore_with_collection_and_config_1_24_x(
464464
wait_for_completion=True,
465465
config=BackupConfigCreate(
466466
cpu_percentage=60,
467-
chunk_size=256,
468467
compression_level=BackupCompressionLevel.BEST_SPEED,
469468
),
470469
)

weaviate/backup/backup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,12 @@ def _to_dict(self) -> Dict[str, Any]:
6262
class BackupConfigCreate(_BackupConfigBase):
6363
"""Options to configure the backup when creating a backup."""
6464

65-
ChunkSize: Optional[int] = Field(default=None, alias="chunk_size")
65+
ChunkSize: Optional[int] = Field(
66+
default=None,
67+
alias="chunk_size",
68+
description="DEPRECATED: This parameter no longer has any effect.",
69+
exclude=True,
70+
)
6671
CompressionLevel: Optional[BackupCompressionLevel] = Field(
6772
default=None, alias="compression_level"
6873
)

0 commit comments

Comments
 (0)