This is an automated email from the ASF dual-hosted git repository.
alexkun pushed a commit to branch dev-1.1.3
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git
The following commit(s) were added to refs/heads/dev-1.1.3 by this push:
new 38a4bb0c4 Fix issue #2148 that optimize to a timestamped path
38a4bb0c4 is described below
commit 38a4bb0c4eacf267845db11f6bad3a149b1856bb
Author: peacewong <[email protected]>
AuthorDate: Sun May 22 17:18:13 2022 +0800
Fix issue #2148 that optimize to a timestamped path
---
.../main/scala/org/apache/linkis/jobhistory/util/QueryUtils.scala | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git
a/linkis-public-enhancements/linkis-publicservice/linkis-jobhistory/src/main/scala/org/apache/linkis/jobhistory/util/QueryUtils.scala
b/linkis-public-enhancements/linkis-publicservice/linkis-jobhistory/src/main/scala/org/apache/linkis/jobhistory/util/QueryUtils.scala
index 178140c21..27e3a7d05 100644
---
a/linkis-public-enhancements/linkis-publicservice/linkis-jobhistory/src/main/scala/org/apache/linkis/jobhistory/util/QueryUtils.scala
+++
b/linkis-public-enhancements/linkis-publicservice/linkis-jobhistory/src/main/scala/org/apache/linkis/jobhistory/util/QueryUtils.scala
@@ -118,10 +118,11 @@ object QueryUtils extends Logging {
private def getCodeStorePath(user: String): String = {
val date: String = DateFormatUtils.format(new Date, "yyyyMMdd")
+ val suffix: String = DateFormatUtils.format(System.currentTimeMillis,
"HH_mm_ss_SSS") + "_scripts"
if (IS_VIEW_FS_ENV.getValue) {
-
s"${CODE_STORE_PREFIX_VIEW_FS.getValue}${user}${CODE_STORE_SUFFIX.getValue}/executionCode/${date}/_scripts"
- }else{
-
s"${CODE_STORE_PREFIX.getValue}${user}${CODE_STORE_SUFFIX.getValue}/executionCode/${date}/_scripts"
+
s"${CODE_STORE_PREFIX_VIEW_FS.getValue}${user}${CODE_STORE_SUFFIX.getValue}/executionCode/${date}/$suffix"
+ } else {
+
s"${CODE_STORE_PREFIX.getValue}${user}${CODE_STORE_SUFFIX.getValue}/executionCode/${date}/$suffix"
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]