aboutsummaryrefslogtreecommitdiff
path: root/weed/util
AgeCommit message (Collapse)AuthorFilesLines
2025-06-223.923.92chrislu1-1/+1
2025-06-20Context-based logging with request ID (#6899)Aleksey Kosov3-28/+30
2025-06-153.913.91chrislu1-1/+1
2025-06-083.903.90chrislu1-1/+2
2025-06-03change version directorychrislu3-4/+5
2025-06-023.89Chris Lu1-1/+1
2025-05-28Add context with request (#6824)Aleksey Kosov2-10/+19
2025-05-263.883.88chrislu1-1/+1
2025-05-21Added middleware for processing request_id grpc and http requests (#6805)Aleksey Kosov1-0/+20
2025-05-043.873.87chrislu1-1/+1
2025-03-09Accumulated changes for message queue (#6600)Chris Lu2-13/+6
* rename * set agent address * refactor * add agent sub * pub messages * grpc new client * can publish records via agent * send init message with session id * fmt * check cancelled request while waiting * use sessionId * handle possible nil stream * subscriber process messages * separate debug port * use atomic int64 * less logs * minor * skip io.EOF * rename * remove unused * use saved offsets * do not reuse session, since always session id is new after restart remove last active ts from SessionEntry * simplify printing * purge unused * just proxy the subscription, skipping the session step * adjust offset types * subscribe offset type and possible value * start after the known tsns * avoid wrongly set startPosition * move * remove * refactor * typo * fix * fix changed path
2025-02-173.853.85chrislu1-1/+1
2025-02-033.84chrislu1-1/+1
2025-02-013.833.83chrislu1-1/+1
2025-01-22cloud tier: support for Alibaba Cloud OSS (#6466)ludwigxia1-0/+12
2025-01-203.823.82chrislu1-1/+1
2025-01-063.813.81chrislu1-1/+1
2024-12-19"golang.org/x/exp/slices" => "slices" and go fmtchrislu4-5/+5
2024-11-21ReadAt may return io.EOF t end of filechrislu1-6/+12
related to https://github.com/seaweedfs/seaweedfs/issues/6219
2024-11-183.803.80chrislu1-1/+1
2024-11-14feat(filer.backup): add ignore errors option (#6235)Max Denushev1-3/+8
* feat(filer.backup): add ignore errors option * feat(filer.backup): fix 404 error wrap * feat(filer.backup): fix wrapping function * feat(filer.backup): fix wrapping errors in genProcessFunction * Update weed/command/filer_backup.go * Update weed/command/filer_backup.go * Update weed/command/filer_backup.go --------- Co-authored-by: Max Denushev <denushev@tochka.com> Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
2024-11-04merge current message queue code changes (#6201)Chris Lu1-0/+20
* listing files to convert to parquet * write parquet files * save logs into parquet files * pass by value * compact logs into parquet format * can skip existing files * refactor * refactor * fix compilation * when no partition found * refactor * add untested parquet file read * rename package * refactor * rename files * remove unused * add merged log read func * parquet wants to know the file size * rewind by time * pass in stop ts * add stop ts * adjust log * minor * adjust log * skip .parquet files when reading message logs * skip non message files * Update subscriber_record.go * send messages * skip message data with only ts * skip non log files * update parquet-go package * ensure a valid record type * add new field to a record type * Update read_parquet_to_log.go * fix parquet file name generation * separating reading parquet and logs * add key field * add skipped logs * use in memory cache * refactor * refactor * refactor * refactor, and change compact log * refactor * rename * refactor * fix format * prefix v to version directory
2024-10-31Fix 6181/6182 (#6183)Bruce2-3/+16
* set larger buf size for LogBuffer * jump to next day when no more entry found * Update weed/filer/filer_notify_read.go --------- Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
2024-10-283.793.79chrislu1-1/+1
2024-10-273.783.78chrislu1-1/+1
2024-10-103.773.77chrislu1-1/+1
2024-10-063.763.76chrislu1-1/+1
2024-10-033.753.75chrislu1-1/+1
2024-09-303.743.74chrislu1-1/+1
2024-09-14fix file read crash (#6021)Bruce1-4/+7
2024-09-123.733.73chrislu1-1/+1
2024-09-11Feature limit caching to prescribed number of bytes per file (#6009)Eugeniy E. Mikhailov1-0/+46
* feature: we can check if a fileId is already in the cache We using this to protect cache from adding the same needle to the cache over and over. * fuse mount: Do not start dowloader if needle is already in the cache * added maxFilePartSizeInCache property to ChunkCache If file very large only first maxFilePartSizeInCache bytes are going to be put to the cache (subject to the needle size constrains). * feature: for large files put in cache no more than prescribed number of bytes Before this patch only the first needle of a large file was intended for caching. This patch uses maximum prescribed amount of bytes to be put in cache. This allows to bypass default 2MB maximum for a file part stored in the cache. * added dummy mock methods to satisfy interfaces of ChunkCache
2024-09-10bug fix in the data received from cache processing (#6002)Eugeniy E. Mikhailov1-5/+5
The patch addresses #3745. The cache should return the exact amount of data requested by the buffer. By construction of the cache it is always all requested data range or we have error happening. The old use of minsize miscalculate the requested data size, if non zero offset is requested.
2024-09-04Revert "weed mount, weed dav add option to force cache"chrislu2-6/+4
This reverts commit 7367b976b05bfa69158a60f205dec970c48f50f0.
2024-09-04weed mount, weed dav add option to force cachechrislu2-4/+6
2024-08-183.723.72chrislu1-1/+1
2024-08-07randomizing next file handle idchrislu1-0/+6
2024-07-213.713.71chrislu1-1/+1
2024-07-213.70chrislu1-1/+1
2024-07-21add version to filerchrislu1-1/+3
2024-07-16Added tls for http clients (#5766)vadimartynov7-37/+319
* Added global http client * Added Do func for global http client * Changed the code to use the global http client * Fix http client in volume uploader * Fixed pkg name * Fixed http util funcs * Fixed http client for bench_filer_upload * Fixed http client for stress_filer_upload * Fixed http client for filer_server_handlers_proxy * Fixed http client for command_fs_merge_volumes * Fixed http client for command_fs_merge_volumes and command_volume_fsck * Fixed http client for s3api_server * Added init global client for main funcs * Rename global_client to client * Changed: - fixed NewHttpClient; - added CheckIsHttpsClientEnabled func - updated security.toml in scaffold * Reduce the visibility of some functions in the util/http/client pkg * Added the loadSecurityConfig function * Use util.LoadSecurityConfiguration() in NewHttpClient func
2024-07-16Added loadSecurityConfigOnce (#5792)vadimartynov1-0/+7
2024-07-11Squashed commit of the following:chrislu1-0/+11
commit 465b47b8f72668dfc12eaa72befb232513c9e1db Merge: f39272b54 9c440d472 Author: chrislu <chris.lu@gmail.com> Date: Wed Jul 10 23:56:51 2024 -0700 Merge branch 'master' into merged-persisted-logs commit f39272b5416bdd4d1714ce3e99aded0fe62e7d89 Author: chrislu <chris.lu@gmail.com> Date: Wed Jul 10 23:49:26 2024 -0700 merge meta logs from multiple files
2024-07-07add a simple testchrislu1-0/+22
2024-07-01refactor all methods strings to const (#5726)Konstantin Lebedev1-7/+7
2024-06-303.69chrislu1-1/+1
2024-06-28bootstrap filer from one peerchrislu1-14/+16
2024-06-093.683.68chrislu1-1/+1
2024-05-20go fmtchrislu1-2/+2
2024-05-073.673.67chrislu1-1/+1