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
add logging on kafka reading
Chris Lud5149e592e88
diff --git a/weed/command/filer_replication.go b/weed/command/filer_replication.goindex 5fef89fc83..967577c72f 100644--- a/weed/command/filer_replication.go+++ b/weed/command/filer_replication.go@@ -52,6 +52,7 @@ func runFilerReplicate(cmd *Command, args []string) bool {glog.Errorf("receive %s: %+v", key, err)continue}+ glog.V(1).Infof("processing file: %s", key)if err = replicator.Replicate(key, m); err != nil {glog.Errorf("replicate %s: %+v", key, err)}diff --git a/weed/replication/notification_kafka.go b/weed/replication/notification_kafka.goindex ce3b86ae99..aaf08a96cc 100644--- a/weed/replication/notification_kafka.go+++ b/weed/replication/notification_kafka.go@@ -37,6 +37,12 @@ func (k *KafkaInput) initialize(hosts []string, topic string) (err error) {config := sarama.NewConfig()config.Consumer.Return.Errors = truek.consumer, err = sarama.NewConsumer(hosts, config)+ if err != nil {+ panic(err)+ } else {+ glog.V(0).Infof("connected to %v", hosts)+ }+k.topic = topick.messageChan = make(chan *sarama.ConsumerMessage, 1)