-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Labels
Description
Bug Report
For English only, other languages will not accept.
Before report a bug, make sure you have:
- Searched open and closed GitHub issues.
- Read documentation: ElasticJob Doc.
Please pay attention on issues you submitted, because we maybe need more details.
If no response anymore and we cannot reproduce it on current information, we will close it.
Please answer these questions before submitting your issue. Thanks!
Which version of ElasticJob did you use?
Expected behavior
- Under a specific combination of
Windows Server 2025andJDK 24, all unit tests performed normally.
Actual behavior
- Two unit tests are failing on a
Windows Server 2025andJDK 24specific combination. See Support building and using ElasticJob with JDK24 #2481 .
org.apache.shardingsphere.elasticjob.spring.namespace.job.JobSpringNamespaceWithTypeTest
org.apache.shardingsphere.elasticjob.spring.namespace.job.OneOffJobSpringNamespaceWithTypeTest
Reason analyze (If you can)
Windows Server 2025usesPowerShell 7as its default shell, which behaves differently fromBash, the shell used byUbuntu. However, further investigation is still needed, as I personally do not have aWindows Server 2025testing environment on my local machine. As for whyJDK 8doesn't have this problem, I really don't know.- The related unit tests also involve the issue at Prevent unit tests and E2E from using host ports
3181,9898and18181#2410 .
Steps to reproduce the behavior.
- For
PowerShell 7underWindows 11,
winget install --id version-fox.vfox --source winget
echo 'Invoke-Expression "$(vfox activate pwsh)"' >> $PROFILE
# Open a new PowerShell 7 terminal
vfox add java
vfox install java@24.0.2-graalce
vfox use --global java@24.0.2-graalce
git clone git@github.com:apache/shardingsphere-elasticjob.git
cd ./shardingsphere-elasticjob/
./mvnw --batch-mode --no-transfer-progress '-Dmaven.javadoc.skip=true' clean install -T1CExample codes for reproduce this issue (such as a github link).
- Not really needed.