Skip to content

IGNITE-19384 Update deployment units after deploy#2044

Merged
PakhomovAlexander merged 9 commits intoapache:mainfrom
unisonteam:IGNITE-19384
May 18, 2023
Merged

IGNITE-19384 Update deployment units after deploy#2044
PakhomovAlexander merged 9 commits intoapache:mainfrom
unisonteam:IGNITE-19384

Conversation

@Pochatkin
Copy link
Contributor

Pochatkin added 5 commits May 10, 2023 15:34
# Conflicts:
#	modules/cli/src/main/java/org/apache/ignite/internal/cli/core/repl/registry/impl/UnitsRegistryImpl.java
.collect(Collectors.toMap(Map.Entry::getKey, entry -> readContent(entry.getValue())));
} catch (DeploymentUnitReadException e) {
return failedFuture(e);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this try-catch block can be moved to a separate method like readUnitContent

}

private Condition existsAll(ByteArray key, List<byte[]> keys) {
Condition result = exists(key);
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be inlined. result is not the best name I think.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is private static method. Why it should be inlined into lyambda?

Copy link
Contributor

Choose a reason for hiding this comment

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

Here you've changed the status for node1 with id1 to DEPLOYED but the assertion says UPLOADING. I don't understand why.

Copy link
Contributor Author

@Pochatkin Pochatkin May 16, 2023

Choose a reason for hiding this comment

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

DEPLOYED is node status. UPLOADING is cluster status

@PakhomovAlexander PakhomovAlexander merged commit 1e14abe into apache:main May 18, 2023
@PakhomovAlexander PakhomovAlexander deleted the IGNITE-19384 branch May 18, 2023 09:49
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

Comments