You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by shahidki31 <gi...@git.apache.org> on 2018/11/27 18:09:22 UTC

[GitHub] spark pull request #23158: [SPARK-26186][SPARK-26184] Last updated time is n...

GitHub user shahidki31 opened a pull request:

    https://github.com/apache/spark/pull/23158

    [SPARK-26186][SPARK-26184] Last updated time is not getting updated for the Inprogress application

    ## What changes were proposed in this pull request?
    
    When the 'spark.history.fs.inProgressOptimization.enabled' is true, inProgress application's last updated time is not getting updated in the History UI. Also, during the cleaning time, InProgress application is getting removed from the listing, even if the last updated time is within the cleaning threshold time.
    
    ## How was this patch tested?
    Added UT, attached screen shot.
    Before patch:
    ![screenshot from 2018-11-27 23-22-38](https://user-images.githubusercontent.com/23054875/49101600-9b5a3380-f29c-11e8-8efc-3fb594e4279a.png)
    ![screenshot from 2018-11-27 23-20-11](https://user-images.githubusercontent.com/23054875/49101601-9c8b6080-f29c-11e8-928e-643a8c8f4477.png)
    
    
    After Patch:
    ![screenshot from 2018-11-27 23-37-10](https://user-images.githubusercontent.com/23054875/49101911-669aac00-f29d-11e8-8181-663e4a08ab0e.png)
    ![screenshot from 2018-11-27 23-39-04](https://user-images.githubusercontent.com/23054875/49102010-a5306680-f29d-11e8-947a-e8a2a09a785a.png)
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/shahidki31/spark HistoryLastUpdateTime

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/23158.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #23158
    
----
commit 985470c0e12a3c67df47b5174748652c6e6f6e57
Author: Shahid <sh...@...>
Date:   2018-11-27T13:32:58Z

    update lastUpdateTime for inprogress application

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by shahidki31 <gi...@git.apache.org>.
Github user shahidki31 commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Thanks a lot @vanzin 


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by shahidki31 <gi...@git.apache.org>.
Github user shahidki31 commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    It is random failure. Jenkins, retest this please 


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184] Last updated time is not gett...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    **[Test build #99338 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/99338/testReport)** for PR 23158 at commit [`985470c`](https://github.com/apache/spark/commit/985470c0e12a3c67df47b5174748652c6e6f6e57).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Merged build finished. Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #23158: [SPARK-26186][SPARK-26184] Last updated time is n...

Posted by vanzin <gi...@git.apache.org>.
Github user vanzin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/23158#discussion_r237280935
  
    --- Diff: core/src/test/scala/org/apache/spark/deploy/history/FsHistoryProviderSuite.scala ---
    @@ -334,6 +334,42 @@ class FsHistoryProviderSuite extends SparkFunSuite with BeforeAndAfter with Matc
         assert(!log2.exists())
       }
     
    +  test("should not clean inprogress application with lastUpdated time less the maxTime") {
    +    val firstFileModifiedTime = TimeUnit.DAYS.toMillis(1)
    +    val secondFileModifiedTime = TimeUnit.DAYS.toMillis(6)
    +    val maxAge = TimeUnit.DAYS.toMillis(7)
    +    val clock = new ManualClock(0)
    +    val provider = new FsHistoryProvider(
    +      createTestConf().set("spark.history.fs.cleaner.maxAge", s"${maxAge}ms"), clock)
    --- End diff --
    
    Use config constant.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    **[Test build #99433 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/99433/testReport)** for PR 23158 at commit [`5b2d6c9`](https://github.com/apache/spark/commit/5b2d6c920c30113d1517bfdb7d34696b399a234e).
     * This patch **fails due to an unknown error code, -9**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #23158: [SPARK-26186][SPARK-26184] Last updated time is n...

Posted by shahidki31 <gi...@git.apache.org>.
Github user shahidki31 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/23158#discussion_r237295187
  
    --- Diff: core/src/test/scala/org/apache/spark/deploy/history/FsHistoryProviderSuite.scala ---
    @@ -334,6 +334,42 @@ class FsHistoryProviderSuite extends SparkFunSuite with BeforeAndAfter with Matc
         assert(!log2.exists())
       }
     
    +  test("should not clean inprogress application with lastUpdated time less the maxTime") {
    +    val firstFileModifiedTime = TimeUnit.DAYS.toMillis(1)
    +    val secondFileModifiedTime = TimeUnit.DAYS.toMillis(6)
    +    val maxAge = TimeUnit.DAYS.toMillis(7)
    +    val clock = new ManualClock(0)
    +    val provider = new FsHistoryProvider(
    +      createTestConf().set("spark.history.fs.cleaner.maxAge", s"${maxAge}ms"), clock)
    +    val log = newLogFile("inProgressApp1", None, inProgress = true)
    +    writeFile(log, true, None,
    +      SparkListenerApplicationStart(
    +        "inProgressApp1", Some("inProgressApp1"), 3L, "test", Some("attempt1"))
    +    )
    +    clock.setTime(firstFileModifiedTime)
    +    provider.checkForLogs()
    --- End diff --
    
    I see, Thanks.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184] Last updated time is not gett...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    **[Test build #99409 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/99409/testReport)** for PR 23158 at commit [`a07aaa4`](https://github.com/apache/spark/commit/a07aaa44987d6c5a8281d320a0804d6354935a58).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184] Last updated time is not gett...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/5416/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #23158: [SPARK-26186][SPARK-26184] Last updated time is n...

Posted by shahidki31 <gi...@git.apache.org>.
Github user shahidki31 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/23158#discussion_r237292237
  
    --- Diff: core/src/test/scala/org/apache/spark/deploy/history/FsHistoryProviderSuite.scala ---
    @@ -334,6 +334,42 @@ class FsHistoryProviderSuite extends SparkFunSuite with BeforeAndAfter with Matc
         assert(!log2.exists())
       }
     
    +  test("should not clean inprogress application with lastUpdated time less the maxTime") {
    +    val firstFileModifiedTime = TimeUnit.DAYS.toMillis(1)
    +    val secondFileModifiedTime = TimeUnit.DAYS.toMillis(6)
    +    val maxAge = TimeUnit.DAYS.toMillis(7)
    +    val clock = new ManualClock(0)
    +    val provider = new FsHistoryProvider(
    +      createTestConf().set("spark.history.fs.cleaner.maxAge", s"${maxAge}ms"), clock)
    +    val log = newLogFile("inProgressApp1", None, inProgress = true)
    +    writeFile(log, true, None,
    +      SparkListenerApplicationStart(
    +        "inProgressApp1", Some("inProgressApp1"), 3L, "test", Some("attempt1"))
    +    )
    +    clock.setTime(firstFileModifiedTime)
    +    provider.checkForLogs()
    --- End diff --
    
    added Thanks. 
    But for inProgress application, do we really need to set log file's last modified time, as the cleaner check only the application's lastUpdated time, which we update whenever size of the logFile changes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Merged build finished. Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    **[Test build #99433 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/99433/testReport)** for PR 23158 at commit [`5b2d6c9`](https://github.com/apache/spark/commit/5b2d6c920c30113d1517bfdb7d34696b399a234e).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Merged build finished. Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    **[Test build #99409 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/99409/testReport)** for PR 23158 at commit [`a07aaa4`](https://github.com/apache/spark/commit/a07aaa44987d6c5a8281d320a0804d6354935a58).
     * This patch **fails Spark unit tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184] Last updated time is not gett...

Posted by shahidki31 <gi...@git.apache.org>.
Github user shahidki31 commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    cc @vanzin @srowen Kindly review


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by vanzin <gi...@git.apache.org>.
Github user vanzin commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Merging to master / 2.4.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    **[Test build #99438 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/99438/testReport)** for PR 23158 at commit [`5b2d6c9`](https://github.com/apache/spark/commit/5b2d6c920c30113d1517bfdb7d34696b399a234e).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184] Last updated time is not gett...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    **[Test build #99419 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/99419/testReport)** for PR 23158 at commit [`5b2d6c9`](https://github.com/apache/spark/commit/5b2d6c920c30113d1517bfdb7d34696b399a234e).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #23158: [SPARK-26186][SPARK-26184] Last updated time is n...

Posted by vanzin <gi...@git.apache.org>.
Github user vanzin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/23158#discussion_r237280881
  
    --- Diff: core/src/test/scala/org/apache/spark/deploy/history/FsHistoryProviderSuite.scala ---
    @@ -334,6 +334,42 @@ class FsHistoryProviderSuite extends SparkFunSuite with BeforeAndAfter with Matc
         assert(!log2.exists())
       }
     
    +  test("should not clean inprogress application with lastUpdated time less the maxTime") {
    +    val firstFileModifiedTime = TimeUnit.DAYS.toMillis(1)
    +    val secondFileModifiedTime = TimeUnit.DAYS.toMillis(6)
    +    val maxAge = TimeUnit.DAYS.toMillis(7)
    +    val clock = new ManualClock(0)
    +    val provider = new FsHistoryProvider(
    +      createTestConf().set("spark.history.fs.cleaner.maxAge", s"${maxAge}ms"), clock)
    +    val log = newLogFile("inProgressApp1", None, inProgress = true)
    +    writeFile(log, true, None,
    +      SparkListenerApplicationStart(
    +        "inProgressApp1", Some("inProgressApp1"), 3L, "test", Some("attempt1"))
    +    )
    +    clock.setTime(firstFileModifiedTime)
    +    provider.checkForLogs()
    --- End diff --
    
    You need to set the log file's modified time before calling this, otherwise the cleaner won't be checking what you expect.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184] Last updated time is not gett...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by shahidki31 <gi...@git.apache.org>.
Github user shahidki31 commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    retest this please


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/99411/
    Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    **[Test build #99438 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/99438/testReport)** for PR 23158 at commit [`5b2d6c9`](https://github.com/apache/spark/commit/5b2d6c920c30113d1517bfdb7d34696b399a234e).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    **[Test build #99411 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/99411/testReport)** for PR 23158 at commit [`95587b8`](https://github.com/apache/spark/commit/95587b87f0526774c5cdf2041d38d556ef45517c).
     * This patch **fails from timeout after a configured wait of `400m`**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    **[Test build #99419 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/99419/testReport)** for PR 23158 at commit [`5b2d6c9`](https://github.com/apache/spark/commit/5b2d6c920c30113d1517bfdb7d34696b399a234e).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #23158: [SPARK-26186][SPARK-26184][CORE] Last updated tim...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/23158


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #23158: [SPARK-26186][SPARK-26184] Last updated time is n...

Posted by shahidki31 <gi...@git.apache.org>.
Github user shahidki31 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/23158#discussion_r237291446
  
    --- Diff: core/src/test/scala/org/apache/spark/deploy/history/FsHistoryProviderSuite.scala ---
    @@ -334,6 +334,42 @@ class FsHistoryProviderSuite extends SparkFunSuite with BeforeAndAfter with Matc
         assert(!log2.exists())
       }
     
    +  test("should not clean inprogress application with lastUpdated time less the maxTime") {
    +    val firstFileModifiedTime = TimeUnit.DAYS.toMillis(1)
    +    val secondFileModifiedTime = TimeUnit.DAYS.toMillis(6)
    +    val maxAge = TimeUnit.DAYS.toMillis(7)
    +    val clock = new ManualClock(0)
    +    val provider = new FsHistoryProvider(
    +      createTestConf().set("spark.history.fs.cleaner.maxAge", s"${maxAge}ms"), clock)
    --- End diff --
    
    Done. Thanks


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184] Last updated time is not gett...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184] Last updated time is not gett...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    **[Test build #99338 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/99338/testReport)** for PR 23158 at commit [`985470c`](https://github.com/apache/spark/commit/985470c0e12a3c67df47b5174748652c6e6f6e57).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/99409/
    Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184] Last updated time is not gett...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/5483/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184] Last updated time is not gett...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Merged build finished. Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184] Last updated time is not gett...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    **[Test build #99411 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/99411/testReport)** for PR 23158 at commit [`95587b8`](https://github.com/apache/spark/commit/95587b87f0526774c5cdf2041d38d556ef45517c).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/99433/
    Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184] Last updated time is not gett...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #23158: [SPARK-26186][SPARK-26184] Last updated time is n...

Posted by vanzin <gi...@git.apache.org>.
Github user vanzin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/23158#discussion_r237293492
  
    --- Diff: core/src/test/scala/org/apache/spark/deploy/history/FsHistoryProviderSuite.scala ---
    @@ -334,6 +334,42 @@ class FsHistoryProviderSuite extends SparkFunSuite with BeforeAndAfter with Matc
         assert(!log2.exists())
       }
     
    +  test("should not clean inprogress application with lastUpdated time less the maxTime") {
    +    val firstFileModifiedTime = TimeUnit.DAYS.toMillis(1)
    +    val secondFileModifiedTime = TimeUnit.DAYS.toMillis(6)
    +    val maxAge = TimeUnit.DAYS.toMillis(7)
    +    val clock = new ManualClock(0)
    +    val provider = new FsHistoryProvider(
    +      createTestConf().set("spark.history.fs.cleaner.maxAge", s"${maxAge}ms"), clock)
    +    val log = newLogFile("inProgressApp1", None, inProgress = true)
    +    writeFile(log, true, None,
    +      SparkListenerApplicationStart(
    +        "inProgressApp1", Some("inProgressApp1"), 3L, "test", Some("attempt1"))
    +    )
    +    clock.setTime(firstFileModifiedTime)
    +    provider.checkForLogs()
    --- End diff --
    
    Perhaps. Better to be consistent with other tests. Also because you're using a manual clock, and otherwise your mod times will be way higher than the clock's time.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by shahidki31 <gi...@git.apache.org>.
Github user shahidki31 commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Jenkins, retest this please


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184] Last updated time is not gett...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/99338/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184] Last updated time is not gett...

Posted by shahidki31 <gi...@git.apache.org>.
Github user shahidki31 commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Expired was determined by the `lastUpdateTime` which we need to update when ever an eventLog update happens
    https://github.com/apache/spark/blob/2d89d109e19d1e84c4ada3c9d5d48cfcf3d997ea/core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala#L788-L793
    
    https://github.com/apache/spark/blob/2d89d109e19d1e84c4ada3c9d5d48cfcf3d997ea/core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala#L1129-L1130


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/5505/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184] Last updated time is not gett...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/5490/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/99438/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184] Last updated time is not gett...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Can one of the admins verify this patch?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184] Last updated time is not gett...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/5510/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184][CORE] Last updated time is no...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/99419/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #23158: [SPARK-26186][SPARK-26184] Last updated time is not gett...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/23158
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/5481/
    Test FAILed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org