influxdata / influxdata/influxdb

influxd restore truncates 0 at the end of the folder (payment.default.01950.00 --> payment/default/195/ ) v. 1.8.3

Open
#19,752 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

__Steps to reproduce:__
List the minimal actions needed to reproduce the behavior.

1. influxd restore -datadir /var/lib/influxdb/data/ -database payment /backup/
2. ls -l /var/lib/influxdb/data/payment/default/
3. folders 1950 -> 195; 2030 -> 203; 2040 -> 204 etc.
![image](https://user-images.githubusercontent.com/22929301/96123089-047fda00-0efb-11eb-890f-c989dd2c92c9.png)

Contributor guide

Open the contributing guide

Research direction

Start by running the reported `influxd restore -datadir /var/lib/influxdb/data/ -database payment /backup/` command and inspect the resulting `payment/default/` folders. Reproduce the conversion of names such as `1950` to `195`; done means restored folder names retain their trailing zeroes.

Written by the indexing model from the issue text.

Assessment

Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.