Skip to content

Dev server does not respect the CUBESTORE_DATA_DIR variable #4133

@JaySunSyn

Description

@JaySunSyn

Describe the bug

It would be great if we could define the data path of where cubejs-server stores the pre-aggregation files.

CUBESTORE_DATA_DIR=.cubestore/test-data cubejs-server

does not work as CUBESTORE_DATA_DIR is a cube store env var I guess.

The pre-aggregation data is stored in .cubestore/data no matter the value of CUBESTORE_DATA_DIR.

To Reproduce
Steps to reproduce the behavior:

  1. Run CUBESTORE_DATA_DIR=.cubestore/test-data cubejs-server
  2. Check the local .cubestore/ folder

Additional context
I’ve created a Jest query test reporter which runs its own instance of the dev server. If additionally, the normal dev server runs, the data gets conflicted as they both use the same data folder.

Metadata

Metadata

Assignees

Labels

backend:serverIssues relating to Cube Core's ServerbugLEGACY. Use the Bug issue type instead

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions