Code Monkey home page Code Monkey logo

tsxdb's Introduction

tsxdb Build Status

Timeseries DB

tsxdb's People

Contributors

flxrobin avatar gkemps avatar robinus2 avatar stephan-r42 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

route42 loct

tsxdb's Issues

Data race condition

Getting a race condition

Read at 0x00c000033cb0 by goroutine 26:
  runtime.mapaccess1_fast64()
      /usr/local/bin/go/src/runtime/map_fast64.go:12 +0x0
  github.com/RobinUS2/tsxdb/server/backend.(*MemoryBackend).__notLockedInitMaps()
      /usr/local/go/pkg/mod/github.com/!robin!u!s2/tsxdb/[email protected]/backend/backend_memory.go:82 +0x30c
  github.com/RobinUS2/tsxdb/server/backend.(*MemoryBackend).Read()
      /usr/local/go/pkg/mod/github.com/!robin!u!s2/tsxdb/[email protected]/backend/backend_memory.go:121 +0x8e
  github.com/RobinUS2/tsxdb/server.(*ReaderEndpoint).Execute()
      /usr/local/go/pkg/mod/github.com/!robin!u!s2/tsxdb/[email protected]/rpc_reader.go:41 +0x244
  runtime.call64()
      /usr/local/bin/go/src/runtime/asm_amd64.s:520 +0x3a
  reflect.Value.Call()
      /usr/local/bin/go/src/reflect/value.go:308 +0xc0
  net/rpc.(*service).call()
      /usr/local/bin/go/src/net/rpc/server.go:384 +0x21c

Previous write at 0x00c000033cb0 by goroutine 25:
  runtime.mapassign_fast64()
      /usr/local/bin/go/src/runtime/map_fast64.go:92 +0x0
  github.com/RobinUS2/tsxdb/server/backend.(*MemoryBackend).CreateOrUpdateSeries()
      /usr/local/go/pkg/mod/github.com/!robin!u!s2/tsxdb/[email protected]/backend/backend_memory.go:210 +0x843
  github.com/RobinUS2/tsxdb/server/backend.(*Metadata).CreateOrUpdateSeries()
      /usr/local/go/pkg/mod/github.com/!robin!u!s2/tsxdb/[email protected]/backend/metadata.go:8 +0x5a
  github.com/RobinUS2/tsxdb/server.(*SeriesMetadataEndpoint).Execute()
      /usr/local/go/pkg/mod/github.com/!robin!u!s2/tsxdb/[email protected]/rpc_series_metadata.go:41 +0x740
  runtime.call64()
      /usr/local/bin/go/src/runtime/asm_amd64.s:520 +0x3a
  reflect.Value.Call()
      /usr/local/bin/go/src/reflect/value.go:308 +0xc0
  net/rpc.(*service).call()
      /usr/local/bin/go/src/net/rpc/server.go:384 +0x21c

Goroutine 26 (running) created at:
  net/rpc.(*Server).ServeCodec()
      /usr/local/bin/go/src/net/rpc/server.go:481 +0x491
  net/rpc.(*Server).ServeConn()
      /usr/local/bin/go/src/net/rpc/server.go:456 +0x244
  github.com/RobinUS2/tsxdb/server.(*Instance).ServeConn()
      /usr/local/go/pkg/mod/github.com/!robin!u!s2/tsxdb/[email protected]/connection.go:64 +0xb6

Goroutine 25 (finished) created at:
  net/rpc.(*Server).ServeCodec()
      /usr/local/bin/go/src/net/rpc/server.go:481 +0x491
  net/rpc.(*Server).ServeConn()
      /usr/local/bin/go/src/net/rpc/server.go:456 +0x244
  github.com/RobinUS2/tsxdb/server.(*Instance).ServeConn()
      /usr/local/go/pkg/mod/github.com/!robin!u!s2/tsxdb/[email protected]/connection.go:64 +0xb6```

Race condition in rpc_auth

Write at 0x00c0000100c0 by goroutine 1015:
  github.com/RobinUS2/tsxdb/server.(*AuthEndpoint).register()
      /usr/local/go/pkg/mod/github.com/!robin!u!s2/tsxdb/[email protected]/rpc_auth.go:100 +0xf3
  github.com/RobinUS2/tsxdb/server.(*Instance).Init()
      /usr/local/go/pkg/mod/github.com/!robin!u!s2/tsxdb/[email protected]/server.go:99 +0x10a6
  github.com/Route42/timeseries-events/app/service.(*Instance).Init()
      /home/jenkins/agent/workspace/snip/app/service/instance.go:86 +0x118e
  github.com/Route42/timeseries-events/app/service_test.TestNew()
      /home/jenkins/agent/workspace/snip/app/service/instance_test.go:17 +0x146
  testing.tRunner()
      /usr/local/bin/go/src/testing/testing.go:991 +0x1eb

Previous read at 0x00c0000100c0 by goroutine 1223:
  github.com/RobinUS2/tsxdb/server.(*AuthEndpoint).Execute.func2()
      /usr/local/go/pkg/mod/github.com/!robin!u!s2/tsxdb/[email protected]/rpc_auth.go:77 +0x51

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.