You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In an effort to deal with some memory leaks in a volume plugin for docker based on gogfapi, I wanted to reduce the number of gfapi.Volume objects created, but potentially remount them, as docker plugins are long running and I need the plugin to robustly reconnect.
However, re-using a gfapi.Volume object causes an error.
Steps to reproduce.
This Dockerfile sets up a golang build environment with gogfapi available:
FROM gluster/glusterfs-client AS builder
RUN yum -y update
RUN yum install -y glusterfs-api glusterfs-api-devel glusterfs-fuse gcc
RUN curl -k https://dl.google.com/go/go1.15.3.linux-amd64.tar.gz | tar xz -C /usr/local
ENV PATH=/usr/local/go/bin:$PATH
This docker-compose.yml starts both the builder container, as well as running a gluster server:
Issue
In an effort to deal with some memory leaks in a volume plugin for docker based on gogfapi, I wanted to reduce the number of gfapi.Volume objects created, but potentially remount them, as docker plugins are long running and I need the plugin to robustly reconnect.
However, re-using a gfapi.Volume object causes an error.
Steps to reproduce.
Dockerfile
sets up a golang build environment with gogfapi available:docker-compose.yml
starts both the builder container, as well as running a gluster server:Start glusterfs and make a volume.
Create
src/main.go
on the host system with the following contents:In a terminal
Observed Behavior
After one successful loop iteration, the program crashes
The text was updated successfully, but these errors were encountered: