[jira] [Created] (IGNITE-9189) IgniteSparkSession can only execute sql in local mode

2018-08-05 Thread lidonghai (JIRA)
lidonghai created IGNITE-9189:
-

 Summary: IgniteSparkSession can only execute sql in local mode
 Key: IGNITE-9189
 URL: https://issues.apache.org/jira/browse/IGNITE-9189
 Project: Ignite
  Issue Type: Bug
Reporter: lidonghai






--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (IGNITE-9188) Unexpected eviction leading to data lost in a scenario with stopping/restarting nodes during rebalancing

2018-08-05 Thread Alexei Scherbakov (JIRA)
Alexei Scherbakov created IGNITE-9188:
-

 Summary: Unexpected eviction leading to data lost in a scenario 
with stopping/restarting nodes during rebalancing
 Key: IGNITE-9188
 URL: https://issues.apache.org/jira/browse/IGNITE-9188
 Project: Ignite
  Issue Type: Bug
Reporter: Alexei Scherbakov
Assignee: Alexei Scherbakov
 Fix For: 2.7


Scenario:

1. Split grid nodes in two groups with distinct partition mapping. One group 
holds even partitions, other - odd. Rebalancing of even partitions is only 
triggered when number of nodes in grid exceeds n/2 threshold.

2. Start n/2 nodes, activate, put data into even partitions.

3. Start other n/2 nodes, change BLT, delay rebalancing of even partitions.

4. Stop newly started nodes before rebalancing is finished.

Expected behavior: parttiions in "even" group will keep owning state.

Actual behavior: even partitions are evicted leading to data loss.

Unit test reproducer:

{noformat}
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.ignite.internal.processors.cache.distributed;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import org.apache.ignite.Ignite;
import org.apache.ignite.cache.CacheAtomicityMode;
import org.apache.ignite.cache.CacheMode;
import org.apache.ignite.cache.affinity.AffinityFunctionContext;
import org.apache.ignite.cache.affinity.rendezvous.RendezvousAffinityFunction;
import org.apache.ignite.cluster.ClusterNode;
import org.apache.ignite.configuration.CacheConfiguration;
import org.apache.ignite.configuration.DataRegionConfiguration;
import org.apache.ignite.configuration.DataStorageConfiguration;
import org.apache.ignite.configuration.IgniteConfiguration;
import org.apache.ignite.configuration.WALMode;
import org.apache.ignite.internal.TestRecordingCommunicationSpi;
import org.apache.ignite.internal.processors.cache.GridCacheUtils;
import 
org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtLocalPartition;
import 
org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionDemandMessage;
import org.apache.ignite.internal.util.typedef.G;
import org.apache.ignite.internal.util.typedef.internal.CU;
import org.apache.ignite.internal.util.typedef.internal.U;
import org.apache.ignite.lang.IgniteBiPredicate;
import org.apache.ignite.plugin.extensions.communication.Message;
import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest;
import org.jetbrains.annotations.Nullable;

import static 
org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtPartitionState.OWNING;

/**
 *
 */
public class CacheLostPartitionsRestoreStateTest extends GridCommonAbstractTest 
{
/** */
public static final long MB = 1024 * 1024L;

/** */
public static final String GRP_ATTR = "grp";

/** */
public static final int GRIDS_CNT = 6;

/** */
public static final String CACHE_1 = "filled";

/** */
public static final String CACHE_2 = "empty";

/** */
public static final String EVEN_GRP = "event";

/** */
public static final String ODD_GRP = "odd";

/** {@inheritDoc} */
@Override protected IgniteConfiguration getConfiguration(String 
igniteInstanceName) throws Exception {
IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName);

cfg.setCommunicationSpi(new TestRecordingCommunicationSpi());

CacheConfiguration ccfg = new CacheConfiguration("default");

ccfg.setAffinity(new RendezvousAffinityFunction(false, 
CacheConfiguration.MAX_PARTITIONS_COUNT));

cfg.setCacheConfiguration(ccfg);

cfg.setPeerClassLoadingEnabled(true);

Map attrs = new HashMap<>();

attrs.put(GRP_ATTR, 
grp(getTestIgniteInstanceIndex(igniteInstanceName)));

cfg.setUserAttributes(attrs);

DataStorageConfiguration memCfg = new DataStorageConfiguration()
.setDefaultDataRegionConfiguration(
new 
DataRegionConfiguration().setPersistenceEnabled(true).setInitialSize(50 

[jira] [Created] (IGNITE-9187) Ignite spring data 2.7.0-SNAPSGOT not printing logs

2018-08-05 Thread Lokesh Sharma (JIRA)
Lokesh Sharma created IGNITE-9187:
-

 Summary: Ignite spring data 2.7.0-SNAPSGOT not printing logs
 Key: IGNITE-9187
 URL: https://issues.apache.org/jira/browse/IGNITE-9187
 Project: Ignite
  Issue Type: Bug
  Components: spring
Affects Versions: 2.7
 Environment: Linux

Intelij Idea
Reporter: Lokesh Sharma


I built the "ignite-spring-data_2.0" from source to run it with Spring Boot 
2.0.2-RELEASE. The app is running fine but my spring application logging stops 
working after a few seconds when I run the project. Also "system.out.println" 
doesn't print anything on the console.


Here's my code: [https://github.com/lokeshh/ignite_with_spring_boot_2]

 

I would be very grateful to the community if you fix this issue or help me fix 
as this is the only that stands in my way to use ignite spring data with spring 
boot 2.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)