You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tajo.apache.org by hy...@apache.org on 2015/05/18 12:10:57 UTC
tajo git commit: TAJO-1607: Tajo Rest Cache-Id should be bigger than
zero.
Repository: tajo
Updated Branches:
refs/heads/master 5491f0e75 -> 3870a61b2
TAJO-1607: Tajo Rest Cache-Id should be bigger than zero.
Signed-off-by: Hyunsik Choi <hy...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/tajo/repo
Commit: http://git-wip-us.apache.org/repos/asf/tajo/commit/3870a61b
Tree: http://git-wip-us.apache.org/repos/asf/tajo/tree/3870a61b
Diff: http://git-wip-us.apache.org/repos/asf/tajo/diff/3870a61b
Branch: refs/heads/master
Commit: 3870a61b228f7c2dd3e3073dc033b03c248fab39
Parents: 5491f0e
Author: clark.kang <cl...@kakao.com>
Authored: Sun May 17 02:09:27 2015 +0900
Committer: Hyunsik Choi <hy...@apache.org>
Committed: Mon May 18 03:09:17 2015 -0700
----------------------------------------------------------------------
CHANGES | 5 ++++-
.../src/main/java/org/apache/tajo/ws/rs/ClientApplication.java | 6 +++++-
2 files changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tajo/blob/3870a61b/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 21f5e5a..ba9daf2 100644
--- a/CHANGES
+++ b/CHANGES
@@ -24,9 +24,12 @@ Release 0.11.0 - unreleased
IMPROVEMENT
+ TAJO-1607: Tajo Rest Cache-Id should be bigger than zero. (Contributed by
+ DaeMyoung Kang, Committed by hyunsik)
+
TAJO-1603: Refactor StorageManager. (hyunsik)
- TAJO-1542: Refactoring of HashJoinExecs. (Contributed Navis, Committed by
+ TAJO-1542: Refactoring of HashJoinExecs. (Contributed by Navis, Committed by
hyunsik)
TAJO-1591: Change StoreType represented as Enum to String type. (hyunsik)
http://git-wip-us.apache.org/repos/asf/tajo/blob/3870a61b/tajo-core/src/main/java/org/apache/tajo/ws/rs/ClientApplication.java
----------------------------------------------------------------------
diff --git a/tajo-core/src/main/java/org/apache/tajo/ws/rs/ClientApplication.java b/tajo-core/src/main/java/org/apache/tajo/ws/rs/ClientApplication.java
index 943f356..b88b8ed 100644
--- a/tajo-core/src/main/java/org/apache/tajo/ws/rs/ClientApplication.java
+++ b/tajo-core/src/main/java/org/apache/tajo/ws/rs/ClientApplication.java
@@ -95,7 +95,11 @@ public class ClientApplication extends Application {
for (byte generatedByte: generatedBytes) {
generatedId = (generatedId << 8) + (generatedByte & 0xff);
}
-
+
+ if (generatedId < 0) {
+ generatedId = generatedId * -1;
+ }
+
return generatedId;
}