SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
cast i to int64 first, ensuring the calculation happens in 64-bit space
Chris Lu2e9a7e13e24a
diff --git a/weed/mq/logstore/write_rows_no_panic_test.go b/weed/mq/logstore/write_rows_no_panic_test.goindex 4e40b6d091..17a0f3eef5 100644--- a/weed/mq/logstore/write_rows_no_panic_test.go+++ b/weed/mq/logstore/write_rows_no_panic_test.go@@ -81,7 +81,7 @@ func TestWriteRowsNoPanic(t *testing.T) {}// Log columns- rec.Fields[SW_COLUMN_NAME_TS] = &schema_pb.Value{Kind: &schema_pb.Value_Int64Value{Int64Value: int64(1756913789000000000 + i)}}+ rec.Fields[SW_COLUMN_NAME_TS] = &schema_pb.Value{Kind: &schema_pb.Value_Int64Value{Int64Value: 1756913789000000000 + int64(i)}}var keyBytes []byteif i%7 == 0 {keyBytes = nil // ensure nil-keys are handled