[
https://issues.apache.org/jira/browse/IGNITE-14783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17351795#comment-17351795
]
Sergei Ryzhov edited comment on IGNITE-14783 at 5/26/21, 4:19 PM:
------------------------------------------------------------------
*SystemViewComputeJobTest.testCancelComputeTask*
when job cancel, job.finishTime more than 0
the test flaky because job.finishTime does not always have time to update
race between
{code:java}
ComputeJobView.finishTime(ComputeJobView.java:165)
SystemViewComputeJobTest.checkJobView(SystemViewComputeJobTest.java:472)
SystemViewComputeJobTest.testCancelComputeTask(SystemViewComputeJobTest.java:424)
{code}
and
{code:java}
GridJobWorker.finishJob(GridJobWorker.java:833)
GridJobWorker.finishJob(GridJobWorker.java:818)
GridJobWorker.execute0(GridJobWorker.java:665)
GridJobWorker.body(GridJobWorker.java:522)
{code}
was (Author: ryzhovsv):
*SystemViewComputeJobTest.testCancelComputeTask*
when job cancel, job.finishTime more than 0
the test flaky because job.finishTime does not always have time to update
*IoStatisticsSelfTest.testPersistentIOGlobalStat*
in the PageMemoryImpl.acquirePage(int grpId, long pageId, IoStatisticsHolder
statHolder, boolean restore, @nullable AtomicBoolean pageAllocated)
{code:java}
long relPtr = seg.loadedPages.get(
grpId,
PageIdUtils.effectivePageId(pageId),
seg.partGeneration(grpId, partId),
INVALID_REL_PTR,
INVALID_REL_PTR
);
// The page is loaded to the memory.
if (relPtr != INVALID_REL_PTR) {
long absPtr = seg.absolute(relPtr);
seg.acquirePage(absPtr);
seg.pageReplacementPolicy.onHit(relPtr);
statHolder.trackLogicalRead(absPtr + PAGE_OVERHEAD);
return absPtr;
}
{code}
so we don't call IoStatisticsHolderCache.trackPhysicalAndLogicalRead
the call to IoStatisticsHolderCache.trackPhysicalAndLogicalRead happens when
reading from disk, it does not happen because the data is in memory
one of the solutions, to increase the amount of loaded data
> Fix tests fail: IgniteCacheTestSuite9:SystemViewComputeJobTest,
> IoStatisticsSelfTest
> ------------------------------------------------------------------------------------
>
> Key: IGNITE-14783
> URL: https://issues.apache.org/jira/browse/IGNITE-14783
> Project: Ignite
> Issue Type: Test
> Reporter: Sergei Ryzhov
> Assignee: Sergei Ryzhov
> Priority: Minor
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Fix tests fail:
> IgniteCacheTestSuite9:
> - SystemViewComputeJobTest.testCancelComputeTask
> - IoStatisticsSelfTest.testPersistentIOGlobalStat
--
This message was sent by Atlassian Jira
(v8.3.4#803005)