Skip to content

Commit

Permalink
Merge branch 'master' into push_dowm_limit_sample
Browse files Browse the repository at this point in the history
  • Loading branch information
bright-starry-sky authored Sep 14, 2021
2 parents 6f5b4ae + 14b3cc4 commit 14fe287
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG BRANCH=master
COPY . /home/nebula/BUILD

RUN cd /home/nebula/BUILD/package \
&& ./package.sh -v $(git rev-parse --short HEAD) -n OFF -b ${BRANCH}
&& ./package.sh -n OFF -b ${BRANCH}

FROM centos:7 as graphd

Expand All @@ -15,8 +15,8 @@ COPY --from=builder /home/nebula/BUILD/pkg-build/cpack_output/nebula-*-graph.rpm
WORKDIR /usr/local/nebula

RUN rpm -ivh *.rpm \
&& mkdir -p ./{logs,data,pids} \
&& rm -rf *.rpm
&& mkdir -p ./{logs,data,pids} \
&& rm -rf *.rpm

EXPOSE 9669 19669 19670

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.graphd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ COPY . /home/nebula/BUILD
ARG BRANCH=master

RUN cd /home/nebula/BUILD/package \
&& ./package.sh -v $(git rev-parse --short HEAD) -n OFF -b ${BRANCH} -g OFF
&& ./package.sh -n OFF -b ${BRANCH} -g OFF

FROM centos:7

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.metad
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG BRANCH=master
COPY . /home/nebula/BUILD

RUN cd /home/nebula/BUILD/package \
&& ./package.sh -v $(git rev-parse --short HEAD) -n OFF -b ${BRANCH}
&& ./package.sh -n OFF -b ${BRANCH}

FROM centos:7

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.storaged
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG BRANCH=master
COPY . /home/nebula/BUILD

RUN cd /home/nebula/BUILD/package \
&& ./package.sh -v $(git rev-parse --short HEAD) -n OFF -b ${BRANCH}
&& ./package.sh -n OFF -b ${BRANCH}

FROM centos:7

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.tools
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG BRANCH=master
COPY . /home/nebula/BUILD

RUN cd /home/nebula/BUILD/package \
&& ./package.sh -v $(git rev-parse --short HEAD) -n OFF -b ${BRANCH}
&& ./package.sh -n OFF -b ${BRANCH}

FROM centos:7

Expand Down
2 changes: 1 addition & 1 deletion package/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Package nebula as deb/rpm package
#
# introduce the args
# -v: The version of package, the version should be match tag name, default value is the `commitId`
# -v: The version of package, the version should be match tag name, default value is null
# -n: Package to one or multi-packages, `ON` means one package, `OFF` means multi packages, default value is `ON`
# -s: Whether to strip the package, default value is `FALSE`
# -b: Branch, default master
Expand Down
4 changes: 2 additions & 2 deletions src/meta/processors/job/JobManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,15 +247,15 @@ nebula::cpp2::ErrorCode JobManager::saveTaskStatus(TaskDescription& td,
}

if (!optJobDesc.getParas().empty()) {
GraphSpaceID spaceId = -1;
auto spaceName = optJobDesc.getParas().back();
auto spaceIdRet = getSpaceId(spaceName);
if (!nebula::ok(spaceIdRet)) {
auto retCode = nebula::error(spaceIdRet);
LOG(WARNING) << "Get spaceName " << spaceName
<< " failed, error: " << apache::thrift::util::enumNameSafe(retCode);
return retCode;
} else {
auto spaceId = nebula::value(spaceIdRet);
spaceId = nebula::value(spaceIdRet);
jobExec->setSpaceId(spaceId);
}
}
Expand Down

0 comments on commit 14fe287

Please sign in to comment.