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

ISPN-4575 Map/Reduce incorrect results with a non-shared non-tx intermed... #2853

Closed
wants to merge 1 commit into from

Conversation

vblagoje
Copy link

@vblagoje vblagoje commented Sep 8, 2014

Master only. Dan should review. For more details see https://issues.jboss.org/browse/ISPN-4575

int expectedSize = cacheManager.getTransport().getMembers().size();
while (stm.getCacheTopology().getMembers().size() != expectedSize && stm.getCacheTopology().getPendingCH() != null) {
Thread.sleep(50);
if (System.nanoTime() > giveup) {
Copy link
Member

Choose a reason for hiding this comment

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

This should do subtraction then compare to 0 as defined in System.nanoTime javadoc

Copy link
Author

Choose a reason for hiding this comment

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

Thanks @wburns Have a look now please!

String message = String.format(
"Creating tmp cache %s timed out waiting for rebalancing to complete on node %s ", cacheNameToCreate,
cacheManager.getAddress());
log.error(message);
Copy link
Member

Choose a reason for hiding this comment

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

seems we should have this as a Log method?

Copy link
Member

Choose a reason for hiding this comment

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

@vblagoje You missed this comment

Copy link
Author

Choose a reason for hiding this comment

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

Yep, on it. Thanks @danberindei

Copy link
Author

Choose a reason for hiding this comment

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

@wburns
Copy link
Member

wburns commented Sep 10, 2014

It seems okay to me, but @danberindei is the ST guy to know for sure.

@vblagoje
Copy link
Author

Okay, thanks @wburns . What do you think @danberindei ?

@danberindei
Copy link
Member

Compilation error in CI:

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project infinispan-cli-server: Compilation failure
/home/cloud-user/ispn/buildAgent/work/c8db63ad778e4d73/cli/cli-server/src/main/java/org/infinispan/cli/interpreter/session/SessionImpl.java:[111,16] method init in class org.infinispan.commands.CreateCacheCommand cannot be applied to given types;
required: org.infinispan.manager.EmbeddedCacheManager,org.infinispan.statetransfer.StateTransferManager
found: org.infinispan.manager.EmbeddedCacheManager
reason: actual and formal argument lists differ in length

@vblagoje
Copy link
Author

vblagoje commented Oct 2, 2014

Thanks @danberindei , will correct it.

@vblagoje
Copy link
Author

vblagoje commented Oct 6, 2014

@danberindei updated and rebased

@danberindei
Copy link
Member

I think it needs a rebase:

[org.infinispan:infinispan-core] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project infinispan-core: Compilation failure
/home/cloud-user/ispn/buildAgent/work/c8db63ad778e4d73/core/src/main/java/org/infinispan/util/logging/Log.java:[1205,21] Parameter count does not match for format 'Creating tmp cache %s timed out waiting for rebalancing to complete on node %s '. Required: 2 Provided: 1

@@ -105,10 +106,10 @@ public void createCache(String cacheName, String baseCacheName) {
CommandsFactory factory = clusteredCache.getComponentRegistry().getComponent(CommandsFactory.class);

CreateCacheCommand ccc = factory.buildCreateCacheCommand(cacheName, baseCacheName);

StateTransferManager transferManager = clusteredCache.getComponentRegistry().getComponent(StateTransferManager.class);
Copy link
Member

Choose a reason for hiding this comment

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

ComponentRegistry has special methods to look up both the StateTransferManager and the CommandsFactory.

@danberindei
Copy link
Member

Integrated, thanks Vladimir!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants