Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

embed: fix revision-based compaction retention parsing #9339

Merged
merged 2 commits into from
Feb 21, 2018

Conversation

gyuho
Copy link
Contributor

@gyuho gyuho commented Feb 21, 2018

Fix #9337.

@fanminshi
Copy link
Member

taking a look!

@@ -128,6 +128,15 @@ func TestUpdateDefaultClusterFromNameOverwrite(t *testing.T) {
}
}

func TestInvalidAutoCompactionMode(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

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

maybe add another test to the issue scenario:

       cfg := NewConfig()
       cfg.AutoCompactionMode = "revision"
       cfg.AutoCompactionRetention = "1"
       srv, err := embed.StartEtcd(cfg)
       // verify that srv.Config().AutoCompactionRetention == time.Duration(1)

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
@fanminshi
Copy link
Member

lgtm

1 similar comment
@xiang90
Copy link
Contributor

xiang90 commented Feb 21, 2018

lgtm

@gyuho gyuho merged commit e88bf42 into etcd-io:master Feb 21, 2018
@gyuho gyuho deleted the fix-embed-auto-compact branch February 21, 2018 15:40
@gyuho gyuho changed the title embed: fix revision-based compaction with default value embed: fix revision-based compaction retention parsing Feb 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants