Skip to content

Commit

Permalink
Merge branch '3.7-dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhuuu committed Aug 22, 2024
2 parents cd07120 + fceffb1 commit 54926bd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ This release also includes changes from <<release-3-6-8, 3.6.8>>.
* Fix cases where Map keys of incomparable types could panic in `gremlin-go`.
* Fixed an issue where missing necessary parameters for logging, resulting in '%!x(MISSING)' output in `gremlin-go`.
* Added getter method to `ConcatStep`, `ConjoinStep`, `SplitGlobalStep` and `SplitLocalStep` for their private fields.
* Gremlin Server docker containers shutdown gracefully when receiving a SIGTERM.
[[release-3-7-2]]
=== TinkerPop 3.7.2 (April 8, 2024)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ public void setLoopName(final String loopName) {
this.loopName = loopName;
}

public String getLoopName() {
return this.loopName;
}

public void setUntilTraversal(final Traversal.Admin<S, ?> untilTraversal) {
if (null != this.untilTraversal)
throw new IllegalStateException("The repeat()-step already has its until()-modulator declared: " + this);
Expand Down
2 changes: 1 addition & 1 deletion gremlin-server/src/main/bin/gremlin-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ startForeground() {
fi

if [[ -z "$RUNAS" ]]; then
$JAVA -Dlogback.configurationFile=$LOGBACK_CONF $JAVA_OPTIONS -cp $CLASSPATH $GREMLIN_SERVER_CMD "$GREMLIN_YAML"
exec $JAVA -Dlogback.configurationFile=$LOGBACK_CONF $JAVA_OPTIONS -cp $CLASSPATH $GREMLIN_SERVER_CMD "$GREMLIN_YAML"
exit 0
else
echo Starting in foreground not supported with RUNAS
Expand Down
10 changes: 1 addition & 9 deletions gremlin-server/src/main/docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,4 @@ GREMLIN_SERVER=/opt/gremlin-server/bin/gremlin-server.sh
IP=$(ip -o -4 addr list eth0 | perl -n -e 'if (m{inet\s([\d\.]+)\/\d+\s}xms) { print $1 }')
sed -i "s|^host:.*|host: $IP|" $CONF_FILE

handler()
{
kill -s SIGINT "$PID"
}

exec $GREMLIN_SERVER "$@" &
PID=$(ps | grep -w $GREMLIN_SERVER | grep -v grep | awk 'NR==1 {print $1}')
trap 'handler $PID' SIGTERM
wait "$PID"
exec $GREMLIN_SERVER "$@"

0 comments on commit 54926bd

Please sign in to comment.