Skip to content

Used to change Magic String to last version#337

Merged
jixuan1989 merged 1 commit intoapache:masterfrom
Genius-pig:master
Aug 21, 2019
Merged

Used to change Magic String to last version#337
jixuan1989 merged 1 commit intoapache:masterfrom
Genius-pig:master

Conversation

@Genius-pig
Copy link
Copy Markdown
Contributor

@Genius-pig Genius-pig commented Aug 13, 2019

Used to Change Magic String to last version. If you want to know more about it, saw this.

Copy link
Copy Markdown
Member

@jixuan1989 jixuan1989 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the magic number should be TsFilev0.9.0 without SNAPSHOT.
Besides, we need to provide some logic to make it compatible with other version (e.g., v0.8.0):

  1. maintain a compatible versions list (now, we only have 0.8.0);
  2. when reading data (i.e.,checkMagicNumer), if the version is compatible, then do not throw exception, others throw an exception
  3. In the future, we can provide scripts to upgrade the format of incompatible files.

@Genius-pig
Copy link
Copy Markdown
Contributor Author

@jixuan1989 Thanks, it may take me some days to finish it.

@jixuan1989
Copy link
Copy Markdown
Member

Hi Zhu, can you just remove SNAPSHOT in this PR?
For others, we can do it in the future.

@Genius-pig
Copy link
Copy Markdown
Contributor Author

@jixuan1989 Have changed it.

@jixuan1989
Copy link
Copy Markdown
Member

Hi Zhu,

Jialin and I have a discussion and record them on the JIRA:

So, can you just change this PR by:

  • just remain the changes about TestHelper.java and Utils.java.

If you want, you can follow the idea on the JIRA to add compatibility feature.

code optimization.
@Genius-pig Genius-pig changed the title Change Magic String to last version change Magic String to last version Aug 20, 2019
@Genius-pig Genius-pig changed the title change Magic String to last version Used to change Magic String to last version Aug 20, 2019
@Genius-pig
Copy link
Copy Markdown
Contributor Author

Genius-pig commented Aug 20, 2019

@jixuan1989 Have done and fix some grammar mistakes.

@jixuan1989 jixuan1989 merged commit 26ffc58 into apache:master Aug 21, 2019
RYH61 pushed a commit to RYH61/iotdb that referenced this pull request Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants