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

Add integration test that ensures that server process does not start against newer version of accumulo. #4513

Open
wants to merge 3 commits into
base: 2.1
Choose a base branch
from

Conversation

ArbaazKhan1
Copy link
Contributor

At the current moment, checking for errors while each server type starts up fails.

We should be expecting them to throw errors during start up since it should detect that there is a different version of hdfs, but at the moment they are not giving errors.

issue #4268

@dlmarion
Copy link
Contributor

dlmarion commented May 1, 2024

MiniAccumuloClusterImpl.verifyUp (called from start) should throw an IllegalStateException if the expected processes are not running.

@EdColeman EdColeman added this to In progress in 3.1.0 via automation May 1, 2024
@EdColeman EdColeman added this to In progress in 2.1.3 via automation May 1, 2024
@ArbaazKhan1 ArbaazKhan1 marked this pull request as ready for review May 16, 2024 21:23
Comment on lines +84 to +86
// Check to see if both paths exist at the sametime
assertTrue(fs.exists(rootPath));
assertTrue(fs.exists(newPath));
Copy link
Member

Choose a reason for hiding this comment

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

Might be better to move this check before we check for the timeout

Comment on lines +71 to +82
ExecutorService executor = Executors.newSingleThreadExecutor();
Future<?> future = executor.submit(() -> {
for (ServerType st : ServerType.values()) {
try {
getCluster().getClusterControl().start(st);
} catch (IOException e) {
throw new RuntimeException(e);
}
}
});
// Check to see if servers fail to start
assertThrows(TimeoutException.class, () -> future.get(20, TimeUnit.SECONDS));
Copy link
Member

Choose a reason for hiding this comment

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

I think this will only check that the first ServerType in ServerType.values() will timeout. We might want to create a future for each ServerType and check that each one times out. That will make this test pretty long but will make sure that none of them start up.

@DomGarguilo
Copy link
Member

A more descriptive name for this IT might be better. ServerVersionIT is a bit vague. Maybe something that hints at what is being tested here about the servers not starting due to data version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
2.1.3
In progress
3.1.0
In progress
Status: No status
Development

Successfully merging this pull request may close these issues.

None yet

4 participants