Uploaded image for project: 'SlamData'
  1. SlamData
  2. SD-712

Empty databases do not appear in file system

    Details

    • Type: Bug
    • Status: To Do
    • Priority: Highest
    • Resolution: Unresolved
    • Affects Version/s: 2.5
    • Fix Version/s: 3.1
    • Component/s: Quasar
    • Labels:

      Description

      version 2.0.0 (local), 1.3.5 (slamdata.cryogenian.ru)
      my config file

      {
          "server": {
              "port": 8080
          },
          "mountings": {
              "/foo": {
                  "mongodb": {
                      "connectionUri": "mongodb://localhost/",
                      "database": "foo"
                  }
              },
              "/bar": {
                  "mongodb": {
                      "connectionUri": "mongodb://localhost",
                      "database": "bar"
                  }
              },
              "/duux/quux": {
                  "mongodb": {
                      "connectionUri": "mongodb://localhost",
                      "database": "baz"
                  }
              }
          }
      }
      

      mongo queries

      > show databases 
      admin  (empty)
      bar    0.078GB
      baz    (empty)
      foo    0.078GB
      local  0.078GB
      test   0.078GB
      > use foo 
      switched to db foo
      > show collections
      aa
      bar.baz
      baz.quux
      system.indexes
      > use bar
      switched to db bar
      > show collections
      system.indexes
      trololo
      trololo.ololo.quux
      > 
      > use baz 
      switched to db baz
      > show collections 
      > 
      

      api queries
      http://local.slamdata.com/metadata/fs//

      {
          "children": [
              {
                  "name": "foo",
                  "type": "mount"
              },
              {
                  "name": "bar",
                  "type": "mount"
              },
              {
                  "name": "duux",
                  "type": "mount"
              }
          ]
      }
      

      http://local.slamdata.com/metadata/fs//foo/

      {
          "children": [
              {
                  "name": "bar",
                  "type": "directory"
              },
              {
                  "name": "foo",
                  "type": "directory"
              },
              {
                  "name": "local",
                  "type": "directory"
              },
              {
                  "name": "test",
                  "type": "directory"
              }
          ]
      }
      

      http://local.slamdata.com/metadata/fs//foo/foo/

       
      {
          "children": [
              {
                  "name": "aa",
                  "type": "file"
              },
              {
                  "name": "bar",
                  "type": "directory"
              },
              {
                  "name": "baz",
                  "type": "directory"
              },
              {
                  "name": "system",
                  "type": "directory"
              }
          ]
      }
      

      http://local.slamdata.com/metadata/fs//duux/quux/foo/

      {
          "children": [
              {
                  "name": "aa",
                  "type": "file"
              },
              {
                  "name": "bar",
                  "type": "directory"
              },
              {
                  "name": "baz",
                  "type": "directory"
              },
              {
                  "name": "system",
                  "type": "directory"
              }
          ]
      }
      

      Seems, that first level has duplicate of all mounts and exact content appears only in second level of nesting (i.e. /foo/foo/ -> /foo/)

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                cryogenian Maxim ZImaliev
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: