cube icon indicating copy to clipboard operation
cube copied to clipboard

Dev server does not respect the CUBESTORE_DATA_DIR variable

Open JaySunSyn opened this issue 4 years ago • 1 comments

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.

JaySunSyn avatar Feb 22 '22 10:02 JaySunSyn

I guess this change (https://github.com/cube-js/cube/pull/3045) will fix this issue.

igorlukanin avatar Oct 09 '24 10:10 igorlukanin

@JaySunSyn By any chance, could you please check that this works as expected on the latest version of Cube?

igorlukanin avatar Nov 12 '24 10:11 igorlukanin