Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-7212

"go test -bench=8192 -run=. ./math" fails

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.15.0
    • Fix Version/s: 0.16.0
    • Component/s: Go
    • Environment:
      go version go1.13.4 linux/amd64

      Description

      Starting at commit 699878dfc (ARROW-4081), "go test -bench=8192 -run=. ./math" fails:

      % go test -bench=8192 -run=. ./math       
      --- FAIL: BenchmarkFloat64Funcs_Sum_8192
          float64_test.go:69: invalid memory size exp=0, got=67584
      --- FAIL: BenchmarkInt64Funcs_Sum_8192
          int64_test.go:69: invalid memory size exp=0, got=67584
      --- FAIL: BenchmarkUint64Funcs_Sum_8192
          uint64_test.go:69: invalid memory size exp=0, got=67584
      FAIL
      exit status 1
      FAIL	github.com/apache/arrow/go/arrow/math	0.008s
      FAIL
      

      Adding a call to 

      vec.Release()

      at the end of the benchmark{{.Name}}Funcs_Sum() template fixes this.
       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sbinet Sebastien Binet
                Reporter:
                entrope Michael Poole
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h