Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BePPPower committed Jan 18, 2024
1 parent 24fe2da commit 14157a4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions conf/be.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ JAVA_OPTS_FOR_JDK_9="-Xmx1024m -DlogPath=$DORIS_HOME/log/jni.log -Xlog:gc:$DORIS
# For jdk 17+, this JAVA_OPTS will be used as default JVM options
JAVA_OPTS_FOR_JDK_17="-Xmx1024m -DlogPath=$DORIS_HOME/log/jni.log -Xlog:gc:$DORIS_HOME/log/be.gc.log.$CUR_DATE -Djavax.security.auth.useSubjectCredsOnly=false -Dsun.security.krb5.debug=true -Dsun.java.command=DorisBE -XX:-CriticalJNINatives --add-opens=java.base/java.net=ALL-UNNAMED"

# For jdk 17+, this JAVA_OPTS will be used as default JVM options
JAVA_OPTS_FOR_JDK_17="-Xmx1024m -DlogPath=$DORIS_HOME/log/jni.log -Xlog:gc:$DORIS_HOME/log/be.gc.log.$CUR_DATE -Djavax.security.auth.useSubjectCredsOnly=false -Dsun.security.krb5.debug=true -Dsun.java.command=DorisBE -XX:-CriticalJNINatives --add-opens=java.base/java.net=ALL-UNNAMED"

# since 1.2, the JAVA_HOME need to be set to run BE process.
# JAVA_HOME=/path/to/jdk/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,14 @@
// used to mark QueryQueue offer result
// if offer failed, then need to cancel query
// and return failed reason to user client
public class QueueToken {
public class QueueToken implements Comparable<QueueToken> {
private static final Logger LOG = LogManager.getLogger(QueueToken.class);

@Override
public int compareTo(QueueToken other) {
return Long.compare(this.tokenId, other.getTokenId());
}

enum TokenState {
ENQUEUE_SUCCESS,
READY_TO_RUN
Expand Down Expand Up @@ -136,4 +141,7 @@ public boolean equals(Object obj) {
return tokenId == other.tokenId;
}

public long getTokenId() {
return tokenId;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ suite("test_array_zip_array_enumerate_uniq", "p0") {
SELECT array_zip();
"""
} catch (Exception ex) {
assertTrue(ex.getMessage().contains("errCode = 2, detailMessage = Unexpected exception: 0"))
assertTrue(ex.getMessage().contains("errCode = 2, detailMessage = Unexpected exception: "))
}

try {
Expand Down

0 comments on commit 14157a4

Please sign in to comment.