Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pike pike
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 121
    • Issues 121
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pikelang
  • pikepike
  • Issues
  • #8063
Closed
Open
Created Feb 07, 2018 by Peter Bortas@zinoOwner

Thread.Thread->id_number() sometimes returns same value for different threads

Imported from https://youtrack.roxen.com/issue/PIKE-63

Reported by KG Sterneberg kg@roxen.com

Encountered this problem when writing and running tests for the new Edition Purger. Tried to reproduce the problem in an isolated test but failed.

In order to reproduce, checkout branch kg/PIKE-X-thread-id-number-issue in Print and Roxen repos. Then run the the PurgerTest by executing: TEST_SUITE=PurgerTest ./start --self-test --tests=rep_archive -DARCHIVE_DEBUG

NB: You need to have Elasticsearch installed and configured on localhost:9200 and test-indices created. Go to the directory scripts in the Archive repo and execute sh create_indices.sh test (NB: You must stand in directory 'scripts').

In the debug-log you will see stuff like this: TRACE: Clearing cache. thread id: 140735632249664, Thread: Thread.Thread(0x70000c65a000) TRACE: Clearing cache. thread id: 140735632249664, Thread: Thread.Thread(0x70000c14b000) TRACE: Clearing cache. thread id: 140735632249664, Thread: Thread.Thread(0x70000c351000) TRACE: Clearing cache. thread id: 140735632249664, Thread: Thread.Thread(0x70000c24e000)

Assignee
Assign to
Time tracking