Build failure in multi-threaded mode

Open
#4,319 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
build-system

Research direction

Start by running ./mvnw clean package -Dmaven.javadoc.skip=true --threads 4 and inspect the Maven module setup around spring-batch-core. Use the reported missing org.springframework.batch.repeat, item, and support packages to trace the parallel-build dependency ordering; done means the command completes successfully with four threads.

Written by the indexing model from the issue text.

Description

in: build status: for-internal-team type: bug

When building the project with the following command (skipping javadocs because the maven-javadoc-plugin is marked as non thread-safe):

$>./mvnw clean package -Dmaven.javadoc.skip=true --threads 4

the build fails with the following errors:

[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/CallableTaskletAdapter.java:[22,40] package org.springframework.batch.repeat does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/Tasklet.java:[20,40] package org.springframework.batch.repeat does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/CallableTaskletAdapter.java:[35,26] cannot find symbol
  symbol:   class RepeatStatus
  location: class org.springframework.batch.core.step.tasklet.CallableTaskletAdapter
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/CallableTaskletAdapter.java:[41,42] cannot find symbol
  symbol:   class RepeatStatus
  location: class org.springframework.batch.core.step.tasklet.CallableTaskletAdapter
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/CallableTaskletAdapter.java:[62,16] cannot find symbol
  symbol:   class RepeatStatus
  location: class org.springframework.batch.core.step.tasklet.CallableTaskletAdapter
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/scope/context/StepContext.java:[34,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/scope/context/StepContext.java:[35,48] package org.springframework.batch.repeat.context does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/scope/context/StepContext.java:[52,34] cannot find symbol
  symbol: class SynchronizedAttributeAccessor
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/StepExecution.java:[26,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/JobExecution.java:[31,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/StepExecution.java:[72,26] cannot find symbol
  symbol:   class ExecutionContext
  location: class org.springframework.batch.core.StepExecution
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/StepExecution.java:[126,16] cannot find symbol
  symbol:   class ExecutionContext
  location: class org.springframework.batch.core.StepExecution
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/StepExecution.java:[134,41] cannot find symbol
  symbol:   class ExecutionContext
  location: class org.springframework.batch.core.StepExecution
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/JobExecution.java:[65,26] cannot find symbol
  symbol:   class ExecutionContext
  location: class org.springframework.batch.core.JobExecution
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/JobExecution.java:[278,41] cannot find symbol
  symbol:   class ExecutionContext
  location: class org.springframework.batch.core.JobExecution
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/JobExecution.java:[287,16] cannot find symbol
  symbol:   class ExecutionContext
  location: class org.springframework.batch.core.JobExecution
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/Tasklet.java:[47,9] cannot find symbol
  symbol:   class RepeatStatus
  location: interface org.springframework.batch.core.step.tasklet.Tasklet
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/listener/AbstractListenerFactoryBean.java:[31,41] package org.springframework.batch.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/listener/AbstractListenerFactoryBean.java:[32,41] package org.springframework.batch.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/listener/AbstractListenerFactoryBean.java:[38,48] package org.springframework.batch.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/listener/AbstractListenerFactoryBean.java:[38,1] static import only from classes and interfaces
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/listener/AbstractListenerFactoryBean.java:[39,48] package org.springframework.batch.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/listener/AbstractListenerFactoryBean.java:[39,1] static import only from classes and interfaces
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/listener/AbstractListenerFactoryBean.java:[175,19] cannot find symbol
  symbol:   class MethodInvoker
  location: class org.springframework.batch.core.listener.AbstractListenerFactoryBean<T>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/job/AbstractJob.java:[58,40] package org.springframework.batch.repeat does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/repository/JobRepository.java:[27,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/StepBuilder.java:[24,40] package org.springframework.batch.repeat does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/StepBuilderHelper.java:[37,41] package org.springframework.batch.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/AbstractTaskletStepBuilder.java:[32,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/AbstractTaskletStepBuilder.java:[33,40] package org.springframework.batch.repeat does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/AbstractTaskletStepBuilder.java:[34,50] package org.springframework.batch.repeat.exception does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/AbstractTaskletStepBuilder.java:[35,50] package org.springframework.batch.repeat.exception does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/AbstractTaskletStepBuilder.java:[36,48] package org.springframework.batch.repeat.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/AbstractTaskletStepBuilder.java:[37,48] package org.springframework.batch.repeat.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/AbstractTaskletStepBuilder.java:[38,41] package org.springframework.batch.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[48,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[49,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[50,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[51,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[52,40] package org.springframework.batch.repeat does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[53,40] package org.springframework.batch.repeat does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[54,47] package org.springframework.batch.repeat.policy does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[55,48] package org.springframework.batch.repeat.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[56,41] package org.springframework.batch.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/StepBuilder.java:[142,53] cannot find symbol
  symbol:   class CompletionPolicy
  location: class org.springframework.batch.core.step.builder.StepBuilder
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/StepBuilder.java:[165,53] cannot find symbol
  symbol:   class CompletionPolicy
  location: class org.springframework.batch.core.step.builder.StepBuilder
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/Partitioner.java:[21,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/partition/PartitionHandler.java:[22,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/Partitioner.java:[43,21] cannot find symbol
  symbol:   class ExecutionContext
  location: interface org.springframework.batch.core.partition.support.Partitioner
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[75,17] cannot find symbol
  symbol:   class ItemReader
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[77,17] cannot find symbol
  symbol:   class ItemWriter
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[79,17] cannot find symbol
  symbol:   class ItemProcessor
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[83,17] cannot find symbol
  symbol:   class RepeatOperations
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[85,17] cannot find symbol
  symbol:   class CompletionPolicy
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/FaultTolerantStepBuilder.java:[60,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/FaultTolerantStepBuilder.java:[61,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/FaultTolerantStepBuilder.java:[62,40] package org.springframework.batch.repeat does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/FaultTolerantStepBuilder.java:[63,48] package org.springframework.batch.repeat.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/FaultTolerantStepBuilder.java:[64,41] package org.springframework.batch.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[34,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[35,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[36,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[37,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[38,46] package org.springframework.batch.item.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[39,40] package org.springframework.batch.repeat does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[40,40] package org.springframework.batch.repeat does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[41,40] package org.springframework.batch.repeat does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[42,48] package org.springframework.batch.repeat.support does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/AbstractStep.java:[49,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/AbstractStep.java:[50,40] package org.springframework.batch.repeat does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[197,46] cannot find symbol
  symbol:   class CompletionPolicy
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[213,47] cannot find symbol
  symbol:   class ItemReader
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[225,47] cannot find symbol
  symbol:   class ItemWriter
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[237,50] cannot find symbol
  symbol:   class ItemProcessor
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/ItemReadListener.java:[18,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/ItemWriteListener.java:[21,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/ItemWriteListener.java:[22,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/ItemProcessListener.java:[18,38] package org.springframework.batch.item does not exist
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[320,56] cannot find symbol
  symbol:   class RepeatOperations
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[330,19] cannot find symbol
  symbol:   class RepeatOperations
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[340,19] cannot find symbol
  symbol:   class ItemReader
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[344,19] cannot find symbol
  symbol:   class ItemWriter
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[348,19] cannot find symbol
  symbol:   class ItemProcessor
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[368,19] cannot find symbol
  symbol:   class CompletionPolicy
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[385,54] cannot find symbol
  symbol:   class ItemReader
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[386,25] cannot find symbol
  symbol:   class ItemProcessor
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/builder/SimpleStepBuilder.java:[386,78] cannot find symbol
  symbol:   class ItemWriter
  location: class org.springframework.batch.core.step.builder.SimpleStepBuilder<I,O>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/ItemWriteListener.java:[49,34] cannot find symbol
  symbol:   class Chunk
  location: interface org.springframework.batch.core.ItemWriteListener<S>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/ItemWriteListener.java:[57,33] cannot find symbol
  symbol:   class Chunk
  location: interface org.springframework.batch.core.ItemWriteListener<S>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/ItemWriteListener.java:[67,56] cannot find symbol
  symbol:   class Chunk
  location: interface org.springframework.batch.core.ItemWriteListener<S>
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[80,17] cannot find symbol
  symbol:   class RepeatOperations
  location: class org.springframework.batch.core.step.tasklet.TaskletStep
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[87,17] cannot find symbol
  symbol:   class CompositeItemStream
  location: class org.springframework.batch.core.step.tasklet.TaskletStep
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[184,32] cannot find symbol
  symbol:   class ItemStream
  location: class org.springframework.batch.core.step.tasklet.TaskletStep
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[194,36] cannot find symbol
  symbol:   class ItemStream
  location: class org.springframework.batch.core.step.tasklet.TaskletStep
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[204,39] cannot find symbol
  symbol:   class RepeatOperations
  location: class org.springframework.batch.core.step.tasklet.TaskletStep
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[287,30] cannot find symbol
  symbol:   class ExecutionContext
  location: class org.springframework.batch.core.step.tasklet.TaskletStep
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java:[292,29] cannot find symbol
  symbol:   class ExecutionContext
  location: class org.springframework.batch.core.step.tasklet.TaskletStep
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/AbstractStep.java:[180,29] cannot find symbol
  symbol:   class ExecutionContext
  location: class org.springframework.batch.core.step.AbstractStep
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/AbstractStep.java:[190,30] cannot find symbol
  symbol:   class ExecutionContext
  location: class org.springframework.batch.core.step.AbstractStep
[ERROR] /projects/spring-batch/spring-batch-core/src/main/java/org/springframework/batch/core/step/item/ChunkMonitor.java:[20,38] package org.springframework.batch.item does not exist
[INFO] 100 errors 
[INFO] -------------------------------------------------------------

The build should succeed no matter the execution mode (sequential or parallel).

Dominant language
Java
Stars
3k
Forks
2.5k
Avg merge
6d 53m
Merged PRs (30d)
3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from spring-projects/spring-batch

All issues in spring-projects/spring-batch

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.