aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docker/compose/notification.toml (renamed from docker/notification.toml)0
-rw-r--r--docker/compose/replication.toml (renamed from docker/replication.toml)0
-rw-r--r--weed/replication/sub/notification_gocdk_pub_sub.go4
3 files changed, 4 insertions, 0 deletions
diff --git a/docker/notification.toml b/docker/compose/notification.toml
index dcd5f2c6f..dcd5f2c6f 100644
--- a/docker/notification.toml
+++ b/docker/compose/notification.toml
diff --git a/docker/replication.toml b/docker/compose/replication.toml
index 833bb1692..833bb1692 100644
--- a/docker/replication.toml
+++ b/docker/compose/replication.toml
diff --git a/weed/replication/sub/notification_gocdk_pub_sub.go b/weed/replication/sub/notification_gocdk_pub_sub.go
index 413c0e3cf..1d7fe520b 100644
--- a/weed/replication/sub/notification_gocdk_pub_sub.go
+++ b/weed/replication/sub/notification_gocdk_pub_sub.go
@@ -113,6 +113,10 @@ func (k *GoCDKPubSubInput) Initialize(configuration util.Configuration, prefix s
func (k *GoCDKPubSubInput) ReceiveMessage() (key string, message *filer_pb.EventNotification, onSuccessFn func(), onFailureFn func(), err error) {
msg, err := k.sub.Receive(context.Background())
if err != nil {
+ var conn *amqp.Connection
+ if k.sub.As(&conn) && conn.IsClosed() {
+ glog.Fatalln(err)
+ }
return
}
onFailureFn = func() {