You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2020/07/29 06:16:46 UTC

[shardingsphere-elasticjob] branch master updated: Update release note for 3.0.0-alpha (#1290)

This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere-elasticjob.git


The following commit(s) were added to refs/heads/master by this push:
     new 3b5422d  Update release note for 3.0.0-alpha (#1290)
3b5422d is described below

commit 3b5422d8356c717339e18b8af66cabaa143291f7
Author: Liang Zhang <te...@163.com>
AuthorDate: Wed Jul 29 14:16:39 2020 +0800

    Update release note for 3.0.0-alpha (#1290)
    
    * For code style
    
    * Update release note for 3.0.0-alpha
---
 RELEASE-NOTES.md                                   | 33 ++++++++++++++++++++--
 .../config/job/CloudJobConfigurationListener.java  |  2 +-
 .../state/failover/FailoverServiceTest.java        |  4 ++-
 3 files changed, 34 insertions(+), 5 deletions(-)

diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md
index f94b415..e661064 100644
--- a/RELEASE-NOTES.md
+++ b/RELEASE-NOTES.md
@@ -1,15 +1,42 @@
-## 3.0.0.M1
+## 3.0.0-alpha
+
+### Build & Dependencies
+
+1. Upgrade to Java 8
+1. Upgrade ZooKeeper to 3.6.x
+
+### API Changes
+
+1. Change maven groupId to org.apache.shardingsphere.elasticjob
+1. Change package name to org.apache.shardingsphere.elasticjob
+1. Change spring namespace name to http://shardingsphere.apache.org/schema/elasticjob
+1. New job API, use SPI for customize job type for easy extension
+1. Use SPI to introduce configuration strategies
+1. Split console and UI from job core modules
+
+### New Features
+
+1. Add One-off job executor
+1. Add Spring Boot Starter for ElasticJob-Lite
+1. Add more databases support for event trace persist
 
 ### Bug Fixes
 
-1. [ISSUE #384](https://github.com/elasticjob/elastic-job/issues/384) Cloud's executor thread ContextClassLoader is empty
+1. Cloud's executor thread ContextClassLoader is empty
+1. Enable job from web console have no effect
+1. Shutdown job when application exit
+1. Fix NPE when failover out-of-order in Curator asynchronized persist
+1. Get correct job class name when using CGLIB proxy
+
+###  Change Logs
 
+1. [MILESTONE](https://github.com/apache/shardingsphere-elasticjob/milestone/1)
 
 ## 2.1.5
 
 ### New Features
 
-1. [ISSUE #373](https://github.com/elasticjob/elastic-job/issues/373) Cloud can distinguishes processing TASK_UNREACHABLE,TASK_UNKNOWN,TASK_DROPPED,TASK_GONE,etc
+1. [ISSUE #373](https://github.com/elasticjob/elastic-job/issues/373) Cloud can distinguish processing TASK_UNREACHABLE,TASK_UNKNOWN,TASK_DROPPED,TASK_GONE,etc
 
 ### Bug Fixes
 
diff --git a/elasticjob-cloud/elasticjob-cloud-scheduler/src/main/java/org/apache/shardingsphere/elasticjob/cloud/scheduler/config/job/CloudJobConfigurationListener.java b/elasticjob-cloud/elasticjob-cloud-scheduler/src/main/java/org/apache/shardingsphere/elasticjob/cloud/scheduler/config/job/CloudJobConfigurationListener.java
index dc13531..2bcef50 100755
--- a/elasticjob-cloud/elasticjob-cloud-scheduler/src/main/java/org/apache/shardingsphere/elasticjob/cloud/scheduler/config/job/CloudJobConfigurationListener.java
+++ b/elasticjob-cloud/elasticjob-cloud-scheduler/src/main/java/org/apache/shardingsphere/elasticjob/cloud/scheduler/config/job/CloudJobConfigurationListener.java
@@ -86,7 +86,7 @@ public final class CloudJobConfigurationListener implements CuratorCacheListener
             return YamlEngine.unmarshal(new String(data.getData()), CloudJobConfigurationPOJO.class);
             // CHECKSTYLE:OFF
         } catch (final Exception ex) {
-            log.warn("Wrong Cloud Job Configuration with:", ex.getMessage());
+            log.warn("Wrong Cloud Job Configuration with:", ex);
             // CHECKSTYLE:ON
             return null;
         }
diff --git a/elasticjob-cloud/elasticjob-cloud-scheduler/src/test/java/org/apache/shardingsphere/elasticjob/cloud/scheduler/state/failover/FailoverServiceTest.java b/elasticjob-cloud/elasticjob-cloud-scheduler/src/test/java/org/apache/shardingsphere/elasticjob/cloud/scheduler/state/failover/FailoverServiceTest.java
index f57da41..2fddbf9 100755
--- a/elasticjob-cloud/elasticjob-cloud-scheduler/src/test/java/org/apache/shardingsphere/elasticjob/cloud/scheduler/state/failover/FailoverServiceTest.java
+++ b/elasticjob-cloud/elasticjob-cloud-scheduler/src/test/java/org/apache/shardingsphere/elasticjob/cloud/scheduler/state/failover/FailoverServiceTest.java
@@ -153,7 +153,9 @@ public final class FailoverServiceTest {
         failoverService.add(TaskContext.from(taskNode.getTaskNodeValue()));
         when(regCenter.isExisted("/state/failover/test_job/" + taskNode.getTaskNodePath())).thenReturn(true);
         when(regCenter.get("/state/failover/test_job/" + taskNode.getTaskNodePath())).thenReturn(taskNode.getTaskNodeValue());
-        assertThat(failoverService.getTaskId(taskNode.getMetaInfo()).get(), is(taskNode.getTaskNodeValue()));
+        Optional<String> taskId = failoverService.getTaskId(taskNode.getMetaInfo());
+        assertTrue(taskId.isPresent());
+        assertThat(taskId.get(), is(taskNode.getTaskNodeValue()));
         verify(regCenter, times(2)).isExisted("/state/failover/test_job/" + taskNode.getTaskNodePath());
     }