Skip to content

Commit

Permalink
Merge pull request #385 from hanahmily/master
Browse files Browse the repository at this point in the history
Fixed #384
  • Loading branch information
terrymanu authored Jul 12, 2017
2 parents def983a + 1d1920c commit 3fe29a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## 2.1.6

### 缺陷修正

1. [ISSUE #384](https://github.com/dangdangdotcom/elastic-job/issues/384) Cloud的执行器线程ContextClassLoader为空


## 2.1.5

### 新功能
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ class TaskThread implements Runnable {

@Override
public void run() {
Thread.currentThread().setContextClassLoader(TaskThread.class.getClassLoader());
executorDriver.sendStatusUpdate(Protos.TaskStatus.newBuilder().setTaskId(taskInfo.getTaskId()).setState(Protos.TaskState.TASK_RUNNING).build());
Map<String, Object> data = SerializationUtils.deserialize(taskInfo.getData().toByteArray());
ShardingContexts shardingContexts = (ShardingContexts) data.get("shardingContext");
Expand Down

0 comments on commit 3fe29a8

Please sign in to comment.