Skip to content

Test that old clients work with current server#1083

Closed
ivankelly wants to merge 2 commits intoapache:masterfrom
ivankelly:new-server-old-client
Closed

Test that old clients work with current server#1083
ivankelly wants to merge 2 commits intoapache:masterfrom
ivankelly:new-server-old-client

Conversation

@ivankelly
Copy link
Contributor

Test that old clients(4.2.0 onwards) can create, open, read, write ledgers on
the latest version of the server.

Master Issue: #903

Test that old clients(4.2.0 onwards) can create, open, read, write ledgers on
the latest version of the server.

Master Issue: apache#903
@ivankelly ivankelly self-assigned this Jan 30, 2018
@ivankelly
Copy link
Contributor Author

retest this please

// 4.1.0 doesn't work because metadata format changed
private def oldClientVersions = ["4.2.0", "4.2.1", "4.2.2", "4.2.3", "4.2.4",
"4.3.0", "4.3.1", "4.3.2", "4.4.0", "4.5.0", "4.5.1",
"4.6.0"]
Copy link
Contributor

Choose a reason for hiding this comment

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

We can add 4.6.1 before committing this patch eventually

ledger0.addEntry("shouldn't work".getBytes())
Assert.fail("Shouldn't have been able to add any more")
} catch (Exception e) {
// correct behaviour
Copy link
Contributor

Choose a reason for hiding this comment

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

Here the error code is 'client closed' we should add some assertion.

But we are not testing 'fencing', or I am missing something?

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

Lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants