[ 
https://issues.apache.org/jira/browse/TINKERPOP-2767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17677524#comment-17677524
 ] 

ASF GitHub Bot commented on TINKERPOP-2767:
-------------------------------------------

codecov-commenter commented on PR #1946:
URL: https://github.com/apache/tinkerpop/pull/1946#issuecomment-1384628526

   # 
[Codecov](https://codecov.io/gh/apache/tinkerpop/pull/1946?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
 Report
   > Merging 
[#1946](https://codecov.io/gh/apache/tinkerpop/pull/1946?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
 (1972653) into 
[3.5-dev](https://codecov.io/gh/apache/tinkerpop/commit/b8e6b2827d68bfbc73205df00f201a0e75bd7ca2?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
 (b8e6b28) will **decrease** coverage by `5.60%`.
   > The diff coverage is `n/a`.
   
   ```diff
   @@              Coverage Diff              @@
   ##             3.5-dev    #1946      +/-   ##
   =============================================
   - Coverage      69.29%   63.69%   -5.61%     
   =============================================
     Files            865       24     -841     
     Lines          41086     3680   -37406     
     Branches        5417        0    -5417     
   =============================================
   - Hits           28472     2344   -26128     
   + Misses         10696     1159    -9537     
   + Partials        1918      177    -1741     
   ```
   
   
   | [Impacted 
Files](https://codecov.io/gh/apache/tinkerpop/pull/1946?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
 | Coverage Δ | |
   |---|---|---|
   | 
[...kerpop/gremlin/server/handler/AbstractSession.java](https://codecov.io/gh/apache/tinkerpop/pull/1946?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Z3JlbWxpbi1zZXJ2ZXIvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3RpbmtlcnBvcC9ncmVtbGluL3NlcnZlci9oYW5kbGVyL0Fic3RyYWN0U2Vzc2lvbi5qYXZh)
 | | |
   | 
[.../gremlin/server/op/session/SessionOpProcessor.java](https://codecov.io/gh/apache/tinkerpop/pull/1946?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Z3JlbWxpbi1zZXJ2ZXIvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3RpbmtlcnBvcC9ncmVtbGluL3NlcnZlci9vcC9zZXNzaW9uL1Nlc3Npb25PcFByb2Nlc3Nvci5qYXZh)
 | | |
   | 
[...mlin/server/op/traversal/TraversalOpProcessor.java](https://codecov.io/gh/apache/tinkerpop/pull/1946?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Z3JlbWxpbi1zZXJ2ZXIvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3RpbmtlcnBvcC9ncmVtbGluL3NlcnZlci9vcC90cmF2ZXJzYWwvVHJhdmVyc2FsT3BQcm9jZXNzb3IuamF2YQ==)
 | | |
   | 
[...pop/gremlin/process/traversal/TraversalSource.java](https://codecov.io/gh/apache/tinkerpop/pull/1946?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Z3JlbWxpbi1jb3JlL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS90aW5rZXJwb3AvZ3JlbWxpbi9wcm9jZXNzL3RyYXZlcnNhbC9UcmF2ZXJzYWxTb3VyY2UuamF2YQ==)
 | | |
   | 
[...n/language/grammar/ParseTreeContextCastHelper.java](https://codecov.io/gh/apache/tinkerpop/pull/1946?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Z3JlbWxpbi1jb3JlL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS90aW5rZXJwb3AvZ3JlbWxpbi9sYW5ndWFnZS9ncmFtbWFyL1BhcnNlVHJlZUNvbnRleHRDYXN0SGVscGVyLmphdmE=)
 | | |
   | 
[...remlin/structure/io/graphson/JsonParserConcat.java](https://codecov.io/gh/apache/tinkerpop/pull/1946?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Z3JlbWxpbi1jb3JlL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS90aW5rZXJwb3AvZ3JlbWxpbi9zdHJ1Y3R1cmUvaW8vZ3JhcGhzb24vSnNvblBhcnNlckNvbmNhdC5qYXZh)
 | | |
   | 
[...mlin/process/traversal/dsl/ProcessorException.java](https://codecov.io/gh/apache/tinkerpop/pull/1946?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Z3JlbWxpbi1jb3JlL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS90aW5rZXJwb3AvZ3JlbWxpbi9wcm9jZXNzL3RyYXZlcnNhbC9kc2wvUHJvY2Vzc29yRXhjZXB0aW9uLmphdmE=)
 | | |
   | 
[...traversal/step/map/TraversalVertexProgramStep.java](https://codecov.io/gh/apache/tinkerpop/pull/1946?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Z3JlbWxpbi1jb3JlL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS90aW5rZXJwb3AvZ3JlbWxpbi9wcm9jZXNzL2NvbXB1dGVyL3RyYXZlcnNhbC9zdGVwL21hcC9UcmF2ZXJzYWxWZXJ0ZXhQcm9ncmFtU3RlcC5qYXZh)
 | | |
   | 
[...lin/structure/io/binary/types/ClassSerializer.java](https://codecov.io/gh/apache/tinkerpop/pull/1946?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Z3JlbWxpbi1jb3JlL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS90aW5rZXJwb3AvZ3JlbWxpbi9zdHJ1Y3R1cmUvaW8vYmluYXJ5L3R5cGVzL0NsYXNzU2VyaWFsaXplci5qYXZh)
 | | |
   | 
[...e/tinkerpop/gremlin/server/util/LifeCycleHook.java](https://codecov.io/gh/apache/tinkerpop/pull/1946?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Z3JlbWxpbi1zZXJ2ZXIvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3RpbmtlcnBvcC9ncmVtbGluL3NlcnZlci91dGlsL0xpZmVDeWNsZUhvb2suamF2YQ==)
 | | |
   | ... and [831 
more](https://codecov.io/gh/apache/tinkerpop/pull/1946?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
 | |
   
   :mega: We’re building smart automated test selection to slash your CI/CD 
build times. [Learn 
more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
   




> Repeat Out Times traversal hangs indefinitely on first execution
> ----------------------------------------------------------------
>
>                 Key: TINKERPOP-2767
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2767
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 3.5.3
>         Environment: Windows 10
>            Reporter: Simon Zhao
>            Priority: Major
>
> Originally encountered when fixing TINKERPOP-2754
>  
> The following traversal in JS seems to cause hanging the first time you run 
> it on a newly launched gremlin-server (3.5.3) via docker
>  
> {{await g.V('1').repeat(_.out()).times(1500).next();}}
>  
> The same hanging occurs in gremlin-go. 
>  
> {code:java}
> _, err = g.With("evaluationTimeout", 
> 1000).V("1").Repeat(gremlingo.T__.Out()).Times(int32(1500)).Next() {code}
>  
> The timeout is optional, but indicates that something is going wrong since it 
> is not returning. Interestingly enough, if the timeout is very low, then it 
> won't hang because it will say the timeout was exceeded. This indicates that 
> if the traversal is completed within the timeout, it's just not returning for 
> some reason on the first call.
>  
> If you were to write a script and invoke this snippet of code, it will hang. 
> If you forcefully terminate the script and rerun it, then it doesn't hang.
>  
> main.go
> {code:java}
> package main
> import (
>    gremlingo "github.com/apache/tinkerpop/gremlin-go/v3/driver"
>    "log"
> )
> func main() {
>    driver, err := 
> gremlingo.NewDriverRemoteConnection("ws://localhost:45940/gremlin")
>    if err != nil {
>       log.Print("Err creating DRC")
>       return
>    }
>    defer driver.Close()
>    log.Println("Start")
>    g := gremlingo.Traversal_().WithRemote(driver)
>    LABEL := "test"
>    _, err = g.V().HasLabel(LABEL).Drop().Next()
>    _, err = g.AddV(LABEL).Property(gremlingo.T.Id, "1").Next()
>    _, err = g.AddV(LABEL).Property(gremlingo.T.Id, "2").Next()
>    _, err = 
> g.AddE(LABEL).From(gremlingo.T__.V("1")).To(gremlingo.T__.V("2")).Property(gremlingo.T.Id,
>  "e1").Next()
>    _, err = 
> g.AddE(LABEL).From(gremlingo.T__.V("2")).To(gremlingo.T__.V("1")).Property(gremlingo.T.Id,
>  "e2").Next()
>    if err != nil {
>       log.Println("Error during setup")
>       return
>    }
>    log.Println("Start the problematic traversal")
>    _, err = g.With("evaluationTimeout", 
> 1000).V("1").Repeat(gremlingo.T__.Out()).Times(int32(1500)).Next()
>    if err != nil {
>       log.Println("Error with the problematic traversal, but we didn't hang")
>       return
>    }
>    log.Println("End")
> } {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to