tmac.liang
tmac.liang
etcd的全局锁是不安全的,而下面这个函数,也没有处理不安全的情况 func (c *Client) GetLock(key string, id client.LeaseID) (bool, error) { key = conf.Config.Lock + key ctx, cancel := context.WithTimeout(context.Background(), c.reqTimeout) resp, err := DefalutClient.Txn(ctx). If(client.Compare(client.CreateRevision(key), "=", 0)). Then(client.OpPut(key, "",...
遇到了同样的情况,不知道解决了没有,请教一下
嗯嗯,我这边也看一下,到时候请同步一下信息
etcd的全局锁是不安全的,而下面这个函数,也没有处理不安全的情况 func (c *Client) GetLock(key string, id client.LeaseID) (bool, error) { key = conf.Config.Lock + key ctx, cancel := context.WithTimeout(context.Background(), c.reqTimeout) resp, err := DefalutClient.Txn(ctx). If(client.Compare(client.CreateRevision(key), "=", 0)). Then(client.OpPut(key, "",...
> etcd的全局锁是不安全的,而下面这个函数,也没有处理不安全的情况 > > func (c *Client) GetLock(key string, id client.LeaseID) (bool, error) { > key = conf.Config.Lock + key > ctx, cancel := context.WithTimeout(context.Background(), c.reqTimeout) > resp, err :=...
> > > etcd的全局锁是不安全的,而下面这个函数,也没有处理不安全的情况 > > > func (c *Client) GetLock(key string, id client.LeaseID) (bool, error) { > > > key = conf.Config.Lock + key > > > ctx, cancel...
> > > > > etcd的全局锁是不安全的,而下面这个函数,也没有处理不安全的情况 > > > > > func (c *Client) GetLock(key string, id client.LeaseID) (bool, error) { > > > > > key = conf.Config.Lock +...
> > > > > > > etcd的全局锁是不安全的,而下面这个函数,也没有处理不安全的情况 > > > > > > > func (c *Client) GetLock(key string, id client.LeaseID) (bool, error) { > > > > >...
直接用deepseed cli启动
@LarryZhangy deepspeed默认读/job/hostfile,这样的格式 $worker slots=${slots}"