Skip to content

No warning on bulk import without existing schema / no schema creation on bulk load... #3117

@niravmehta

Description

@niravmehta

If you suspect this could be a bug, follow the template.

  • What version of Dgraph are you using?
    1.0.12

  • Have you tried reproducing the issue with latest release?
    Yes, on the latest release

  • What is the hardware spec (RAM, OS)?
    Mac OS, 16gb RAM

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

  1. Reset existing db with curl -s localhost:8080/alter -d '{ "drop_all": true }'
  2. Followed the Bulk loading docs and Graphoverflow data setup instructions.
  3. Except one thing: I forgot to create the schema before importing the data. Or rather, I assumed that the bulk loader will create the schema automatically, since I was passing it in the command line argument.
  4. Shut down dgraph zero, moved the out/0/p folder and started zero, alpha and ratel.
  • Expected behaviour and actual result.
  1. Ratel showed the schema, but counts were zero for all predicates.
  2. Altering and recreating the schema did not work.
  3. Removing the p folder, starting over again, creating the schema, pasting back the p folder and starting servers again did not work either.
  4. I had to do the entire process again. Reset db, create schema, bulk load, restart servers. Then the data showed up.

First of all, I expected bulk loader will create the schema. Which it probably did - because I could see the schema in Ratel. But counts were 0 all over.

Secondly, there was no warning in bulk loader that schema is not already defined (if that's what it expected).

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