[ 
https://issues.apache.org/jira/browse/IGNITE-1757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16652923#comment-16652923
 ] 

ASF GitHub Bot commented on IGNITE-1757:
----------------------------------------

GitHub user scottmf opened a pull request:

    https://github.com/apache/ignite/pull/5008

    adding hibernate-5.2 module

    all tests pass except 
CacheHibernateBlobStoreSelfTest.testSimpleMultithreading which
    is carryover from the hibernate-5.1 implementation.  There is a bug already 
associated
    with the failure: https://issues.apache.org/jira/browse/IGNITE-1757

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/scottmf/ignite-1 master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/ignite/pull/5008.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #5008
    
----
commit d24953a70cd752547d85d4fa40d58bade9d18da1
Author: scottmf <scottf76@...>
Date:   2018-10-15T18:55:00Z

    adding hibernate-5.2 module
    
    all tests pass except 
CacheHibernateBlobStoreSelfTest.testSimpleMultithreading which
    is carryover from the hibernate-5.1 implementation.  There is a bug already 
associated
    with the failure: https://issues.apache.org/jira/browse/IGNITE-1757

----


> [Failed test] CacheHibernateBlobStoreSelfTest.testSimpleMultithreading fails 
> on TC sometimes
> --------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-1757
>                 URL: https://issues.apache.org/jira/browse/IGNITE-1757
>             Project: Ignite
>          Issue Type: Test
>            Reporter: Artem Shutak
>            Priority: Critical
>              Labels: Muted_test
>
> CacheHibernateBlobStoreSelfTest.testSimpleMultithreading fails on TC 
> sometimes.
> {noformat}
> java.lang.NullPointerException: null
>     at 
> org.apache.maven.surefire.shade.org.apache.commons.io.output.DeferredFileOutputStream.thresholdReached(DeferredFileOutputStream.java:179)
>     at 
> org.apache.maven.surefire.shade.org.apache.commons.io.output.ThresholdingOutputStream.checkThreshold(ThresholdingOutputStream.java:224)
>     at 
> org.apache.maven.surefire.shade.org.apache.commons.io.output.ThresholdingOutputStream.write(ThresholdingOutputStream.java:128)
>     at 
> org.apache.maven.plugin.surefire.report.Utf8RecodingDeferredFileOutputStream.write(Utf8RecodingDeferredFileOutputStream.java:59)
>     at 
> org.apache.maven.plugin.surefire.report.TestSetRunListener.writeTestOutput(TestSetRunListener.java:98)
>     at 
> org.apache.maven.surefire.report.ConsoleOutputCapture$ForwardingPrintStream.println(ConsoleOutputCapture.java:91)
>     at 
> org.hibernate.engine.jdbc.spi.SqlStatementLogger.logStatement(SqlStatementLogger.java:106)
>     at 
> org.hibernate.engine.jdbc.spi.SqlStatementLogger.logStatement(SqlStatementLogger.java:95)
>     at 
> org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement(StatementPreparerImpl.java:180)
>     at 
> org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareStatement(StatementPreparerImpl.java:85)
>     at 
> org.hibernate.persister.entity.AbstractEntityPersister.getDatabaseSnapshot(AbstractEntityPersister.java:1513)
>     at 
> org.hibernate.engine.internal.StatefulPersistenceContext.getDatabaseSnapshot(StatefulPersistenceContext.java:316)
>     at 
> org.hibernate.engine.internal.ForeignKeys.isTransient(ForeignKeys.java:217)
>     at 
> org.hibernate.event.internal.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:497)
>     at 
> org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:100)
>     at 
> org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:90)
>     at 
> org.hibernate.internal.SessionImpl.fireSaveOrUpdate(SessionImpl.java:735)
>     at org.hibernate.internal.SessionImpl.saveOrUpdate(SessionImpl.java:727)
>     at org.hibernate.internal.SessionImpl.saveOrUpdate(SessionImpl.java:723)
>     at 
> org.apache.ignite.cache.store.hibernate.CacheHibernateBlobStore.write(CacheHibernateBlobStore.java:190)
>     at 
> org.apache.ignite.testframework.junits.cache.GridAbstractCacheStoreSelfTest$1.call(GridAbstractCacheStoreSelfTest.java:396)
>     at 
> org.apache.ignite.testframework.GridTestThread.run(GridTestThread.java:86)
> ------- Stderr: -------
> [21:04:18,410][WARN 
> ][hibernate.CacheHibernateBlobStoreSelfTest-1][CacheHibernateBlobStore] No 
> Hibernate configuration has been provided for store (will use default).
> [21:04:18,495][WARN 
> ][hibernate.CacheHibernateBlobStoreSelfTest-1][DriverManagerConnectionProviderImpl]
>  HHH000148: No JDBC Driver class was specified by property 
> hibernate.connection.driver_class
> Failure in thread: Thread [id=711, 
> name=hibernate.CacheHibernateBlobStoreSelfTest-5]
> java.lang.NullPointerException
>     at 
> org.apache.maven.surefire.shade.org.apache.commons.io.output.DeferredFileOutputStream.thresholdReached(DeferredFileOutputStream.java:179)
>     at 
> org.apache.maven.surefire.shade.org.apache.commons.io.output.ThresholdingOutputStream.checkThreshold(ThresholdingOutputStream.java:224)
>     at 
> org.apache.maven.surefire.shade.org.apache.commons.io.output.ThresholdingOutputStream.write(ThresholdingOutputStream.java:128)
>     at 
> org.apache.maven.plugin.surefire.report.Utf8RecodingDeferredFileOutputStream.write(Utf8RecodingDeferredFileOutputStream.java:59)
>     at 
> org.apache.maven.plugin.surefire.report.TestSetRunListener.writeTestOutput(TestSetRunListener.java:98)
>     at 
> org.apache.maven.surefire.report.ConsoleOutputCapture$ForwardingPrintStream.println(ConsoleOutputCapture.java:91)
>     at 
> org.hibernate.engine.jdbc.spi.SqlStatementLogger.logStatement(SqlStatementLogger.java:106)
>     at 
> org.hibernate.engine.jdbc.spi.SqlStatementLogger.logStatement(SqlStatementLogger.java:95)
>     at 
> org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement(StatementPreparerImpl.java:180)
>     at 
> org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareStatement(StatementPreparerImpl.java:85)
>     at 
> org.hibernate.persister.entity.AbstractEntityPersister.getDatabaseSnapshot(AbstractEntityPersister.java:1513)
>     at 
> org.hibernate.engine.internal.StatefulPersistenceContext.getDatabaseSnapshot(StatefulPersistenceContext.java:316)
>     at 
> org.hibernate.engine.internal.ForeignKeys.isTransient(ForeignKeys.java:217)
>     at 
> org.hibernate.event.internal.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:497)
>     at 
> org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:100)
>     at 
> org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:90)
>     at 
> org.hibernate.internal.SessionImpl.fireSaveOrUpdate(SessionImpl.java:735)
>     at org.hibernate.internal.SessionImpl.saveOrUpdate(SessionImpl.java:727)
>     at org.hibernate.internal.SessionImpl.saveOrUpdate(SessionImpl.java:723)
>     at 
> org.apache.ignite.cache.store.hibernate.CacheHibernateBlobStore.write(CacheHibernateBlobStore.java:190)
>     at 
> org.apache.ignite.testframework.junits.cache.GridAbstractCacheStoreSelfTest$1.call(GridAbstractCacheStoreSelfTest.java:396)
>     at 
> org.apache.ignite.testframework.GridTestThread.run(GridTestThread.java:86)
> Failure in thread: Thread [id=725, 
> name=hibernate.CacheHibernateBlobStoreSelfTest-19]
> java.lang.NullPointerException
>     at 
> org.apache.maven.surefire.shade.org.apache.commons.io.output.DeferredFileOutputStream.thresholdReached(DeferredFileOutputStream.java:179)
>     at 
> org.apache.maven.surefire.shade.org.apache.commons.io.output.ThresholdingOutputStream.checkThreshold(ThresholdingOutputStream.java:224)
>     at 
> org.apache.maven.surefire.shade.org.apache.commons.io.output.ThresholdingOutputStream.write(ThresholdingOutputStream.java:128)
>     at 
> org.apache.maven.plugin.surefire.report.Utf8RecodingDeferredFileOutputStream.write(Utf8RecodingDeferredFileOutputStream.java:59)
>     at 
> org.apache.maven.plugin.surefire.report.TestSetRunListener.writeTestOutput(TestSetRunListener.java:98)
>     at 
> org.apache.maven.surefire.report.ConsoleOutputCapture$ForwardingPrintStream.println(ConsoleOutputCapture.java:91)
>     at 
> org.hibernate.engine.jdbc.spi.SqlStatementLogger.logStatement(SqlStatementLogger.java:106)
>     at 
> org.hibernate.engine.jdbc.spi.SqlStatementLogger.logStatement(SqlStatementLogger.java:95)
>     at 
> org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement(StatementPreparerImpl.java:180)
>     at 
> org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareQueryStatement(StatementPreparerImpl.java:159)
>     at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1859)
>     at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1836)
>     at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1816)
>     at org.hibernate.loader.Loader.doQuery(Loader.java:900)
>     at 
> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:342)
>     at 
> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:312)
>     at org.hibernate.loader.Loader.loadEntity(Loader.java:2121)
>     at 
> org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:82)
>     at 
> org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:72)
>     at 
> org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3927)
>     at 
> org.hibernate.event.internal.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:460)
>     at 
> org.hibernate.event.internal.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:429)
>     at 
> org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListener.java:206)
>     at 
> org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:262)
>     at 
> org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:150)
>     at org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1092)
>     at org.hibernate.internal.SessionImpl.access$2000(SessionImpl.java:175)
>     at 
> org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.load(SessionImpl.java:2476)
>     at org.hibernate.internal.SessionImpl.get(SessionImpl.java:988)
>     at 
> org.apache.ignite.cache.store.hibernate.CacheHibernateBlobStore.load(CacheHibernateBlobStore.java:149)
>     at 
> org.apache.ignite.testframework.junits.cache.GridAbstractCacheStoreSelfTest$1.call(GridAbstractCacheStoreSelfTest.java:331)
>     at 
> org.apache.ignite.testframework.GridTestThread.run(GridTestThread.java:86)
> [21:04:22,417][ERROR][main][root] Test failed.
> java.lang.NullPointerException
>     at 
> org.apache.maven.surefire.shade.org.apache.commons.io.output.DeferredFileOutputStream.thresholdReached(DeferredFileOutputStream.java:179)
>     at 
> org.apache.maven.surefire.shade.org.apache.commons.io.output.ThresholdingOutputStream.checkThreshold(ThresholdingOutputStream.java:224)
>     at 
> org.apache.maven.surefire.shade.org.apache.commons.io.output.ThresholdingOutputStream.write(ThresholdingOutputStream.java:128)
>     at 
> org.apache.maven.plugin.surefire.report.Utf8RecodingDeferredFileOutputStream.write(Utf8RecodingDeferredFileOutputStream.java:59)
>     at 
> org.apache.maven.plugin.surefire.report.TestSetRunListener.writeTestOutput(TestSetRunListener.java:98)
>     at 
> org.apache.maven.surefire.report.ConsoleOutputCapture$ForwardingPrintStream.println(ConsoleOutputCapture.java:91)
>     at 
> org.hibernate.engine.jdbc.spi.SqlStatementLogger.logStatement(SqlStatementLogger.java:106)
>     at 
> org.hibernate.engine.jdbc.spi.SqlStatementLogger.logStatement(SqlStatementLogger.java:95)
>     at 
> org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement(StatementPreparerImpl.java:180)
>     at 
> org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareStatement(StatementPreparerImpl.java:85)
>     at 
> org.hibernate.persister.entity.AbstractEntityPersister.getDatabaseSnapshot(AbstractEntityPersister.java:1513)
>     at 
> org.hibernate.engine.internal.StatefulPersistenceContext.getDatabaseSnapshot(StatefulPersistenceContext.java:316)
>     at 
> org.hibernate.engine.internal.ForeignKeys.isTransient(ForeignKeys.java:217)
>     at 
> org.hibernate.event.internal.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:497)
>     at 
> org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:100)
>     at 
> org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:90)
>     at 
> org.hibernate.internal.SessionImpl.fireSaveOrUpdate(SessionImpl.java:735)
>     at org.hibernate.internal.SessionImpl.saveOrUpdate(SessionImpl.java:727)
>     at org.hibernate.internal.SessionImpl.saveOrUpdate(SessionImpl.java:723)
>     at 
> org.apache.ignite.cache.store.hibernate.CacheHibernateBlobStore.write(CacheHibernateBlobStore.java:190)
>     at 
> org.apache.ignite.testframework.junits.cache.GridAbstractCacheStoreSelfTest$1.call(GridAbstractCacheStoreSelfTest.java:396)
>     at 
> org.apache.ignite.testframework.GridTestThread.run(GridTestThread.java:86)
> [21:04:22,419][ERROR][main][ErrorCounter] <AST>:0:0: unexpected end of subtree
> [21:04:22,419][ERROR][main][ErrorCounter] <AST>:0:0: unexpected end of subtree
> <AST>:0:0: unexpected end of subtree
>     at 
> org.hibernate.hql.internal.antlr.SqlGeneratorBase.whereClauseExpr(SqlGeneratorBase.java:1378)
>     at 
> org.hibernate.hql.internal.antlr.SqlGeneratorBase.whereClause(SqlGeneratorBase.java:1272)
>     at 
> org.hibernate.hql.internal.ast.exec.DeleteExecutor.<init>(DeleteExecutor.java:72)
>     at 
> org.hibernate.hql.internal.ast.QueryTranslatorImpl.buildAppropriateStatementExecutor(QueryTranslatorImpl.java:535)
>     at 
> org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:201)
>     at 
> org.hibernate.hql.internal.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:138)
>     at 
> org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:105)
>     at 
> org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:80)
>     at 
> org.hibernate.engine.query.spi.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:168)
>     at 
> org.hibernate.internal.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:221)
>     at 
> org.hibernate.internal.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:199)
>     at org.hibernate.internal.SessionImpl.createQuery(SessionImpl.java:1778)
>     at 
> org.apache.ignite.cache.store.hibernate.CacheHibernateBlobStoreSelfTest.afterTest(CacheHibernateBlobStoreSelfTest.java:50)
>     at 
> org.apache.ignite.testframework.junits.GridAbstractTest.tearDown(GridAbstractTest.java:1321)
>     at 
> org.apache.ignite.testframework.junits.common.GridCommonAbstractTest.tearDown(GridCommonAbstractTest.java:387)
>     at junit.framework.TestCase.runBare(TestCase.java:146)
>     at junit.framework.TestResult$1.protect(TestResult.java:122)
>     at junit.framework.TestResult.runProtected(TestResult.java:142)
>     at junit.framework.TestResult.run(TestResult.java:125)
>     at junit.framework.TestCase.run(TestCase.java:129)
>     at junit.framework.TestSuite.runTest(TestSuite.java:255)
>     at junit.framework.TestSuite.run(TestSuite.java:250)
>     at junit.framework.TestSuite.runTest(TestSuite.java:255)
>     at junit.framework.TestSuite.run(TestSuite.java:250)
>     at 
> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
>     at 
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
>     at 
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
>     at 
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:606)
>     at 
> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:208)
>     at 
> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:156)
>     at 
> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:82)
>     at 
> org.apache.maven.plugin.surefire.InPluginVMSurefireStarter.runSuitesInProcess(InPluginVMSurefireStarter.java:82)
>     at 
> org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:951)
>     at 
> org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:831)
>     at 
> org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:729)
>     at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>     at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>     at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>     at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
>     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>     at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:606)
>     at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>     at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>     at 
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>     at 
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> {noformat}



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

Reply via email to