When add new node in elasticsearch 5.4 old node deleted

Please format your code using </> icon as explained in this guide. It will make your post more readable.

Or use markdown style like:

```
CODE
```

If you share logs of both nodes that might help to answer.