Skip to content

Data loss in case of miss configuration  #4555

@hubyhuby

Description

@hubyhuby

When configuring dgraph alpha :

  1. you are allowed to set --lru_mb higher than actual RAM on the system.
  2. Doing so will crash the instance AND DELETE ALL THE DATAS. It deletes the directories and the datas of degraph.
    We had the bug twice with deleting of the folders and data, before we understood that.
    Note that our Ubuntu system stays stable. With lru to 1024 we have been stable for 5 days.

What version of Dgraph are you using?

1.1.1

What is the hardware spec (RAM, OS)?

Scaleway DEV instance 2GB RAM . Ubuntu 18.04

Steps to reproduce the issue (command/config used to run Dgraph).

1 ) Install Dgraph as a service following this tutorial : https://computingforgeeks.com/install-dgraph-on-centos-ubuntu/
2) Wait for some time : 24hours in our tests
3) Check the services : dgraph alpha is down + its folder are now deleted !

Expected behaviour and actual result.

-It shouldn t be possible to set the memory direcive higher than the system memory.

  • In case of a crash it shouldn t delete all my dgraph data and folders.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions