HelixNetwork / pendulum

Pendulum is a distributed messaging protocol that enables globally available tamper proof timestamps :hourglass_flowing_sand:
https://dev.hlx.ai
Other
10 stars 6 forks source link

1.0.2 #198

Closed oracle58 closed 4 years ago

oracle58 commented 4 years ago

Remaining Issues

dnck commented 4 years ago

why is "testnet" dir still created, after I reset the LOCAL_SNAPSHOT_PATH ?

The LOCAL_SNAPSHOTS_BASE_PATH is used to store the plain txt files during a local snapshot.

oracle58 commented 4 years ago

In the Testnet config, I think that LOCAL_SNAPSHOT_PATH is ignored. Instead, LOCAL_SNAPSHOTS_BASE_PATH is used, and so plain txt files from local snapshot end up being stored in the testnet dir.

Well, thats the one I mean:

String LOCAL_SNAPSHOTS_BASE_PATH = "./snapshot";

I think, I set it correctly, yet "testnet" dir is still created. Furthermore, I am bit surprised that only:

instead of:

get created in this build, i.e. :

dnck commented 4 years ago

Well, thats the one I mean:

String LOCAL_SNAPSHOTS_BASE_PATH = "./snapshot";

I think, I set it correctly, yet "testnet" dir is still created. Furthermore, I am bit surprised that only:

  • snapshot.state
  • snapshot.meta
  • snapshot.gc

instead of:

  • snapshot.state
  • snapshot.meta
  • snapshot.gc
  • snapshot.state.bkp
  • snapshot.meta.bkp

get created in this build, i.e. :

  • snapshot.state.bkp
  • snapshot.meta.bkp don't get created anymore.

I am running branch confirmation-state locally, and the .bkp files are generated when I provide a path to LOCAL_SNAPSHOTS_BASE_PATH in the config file.

oracle58 commented 4 years ago

Well, thats the one I mean:

String LOCAL_SNAPSHOTS_BASE_PATH = "./snapshot";

I think, I set it correctly, yet "testnet" dir is still created. Furthermore, I am bit surprised that only:

  • snapshot.state
  • snapshot.meta
  • snapshot.gc

instead of:

  • snapshot.state
  • snapshot.meta
  • snapshot.gc
  • snapshot.state.bkp
  • snapshot.meta.bkp

get created in this build, i.e. :

  • snapshot.state.bkp
  • snapshot.meta.bkp don't get created anymore.

I am running branch confirmation-state locally, and the .bkp files are generated when I provide a path to LOCAL_SNAPSHOTS_BASE_PATH in the config file.

Ok, is the "testnet" dir still created?

dnck commented 4 years ago

Ok, is the "testnet" dir still created?

I can not reproduce.

When running with config,

TESTNET = true
LOCAL_SNAPSHOTS_BASE_PATH = local_snapshots

neither testnet nor mainnet dir is created.

When running with config,

TESTNET = false
LOCAL_SNAPSHOTS_BASE_PATH = local_snapshots

neither testnet nor mainnet dir is created.

oracle58 commented 4 years ago

Ok, is the "testnet" dir still created?

I can not reproduce.

When running with config,

TESTNET = true
LOCAL_SNAPSHOTS_BASE_PATH = local_snapshots

neither testnet nor mainnet dir is created.

When running with config,

TESTNET = false
LOCAL_SNAPSHOTS_BASE_PATH = local_snapshots

neither testnet nor mainnet dir is created.

might be a local problem then, also cannot reproduce on an ubuntu 16.04 vm.