aerospike / aerospike-client-go

Aerospike Client Go
Apache License 2.0
433 stars 199 forks source link

Test suit. 12(9) tests failed. #93

Closed logrusorgru closed 8 years ago

logrusorgru commented 8 years ago

Hello everyone.

I just install the Aerospike server and this Golang client.

Test with race detection

Run tests:

$ ginkgo -r -race

Output:

[1447213345] Aerospike Client Library Suite - 147/147 specs ••••••••••••••••••••••••••
------------------------------
• [SLOW TEST:5.747 seconds]
Index operations test Index creation Create non-existing index must drop an Index, and recreate it again to verify 
/home/username/go/src/github.com/aerospike/aerospike-client-go/index_test.go:114
------------------------------
•••••••••
------------------------------
• Failure [0.089 seconds]
LargeMap Test [It] should create a valid LargeMap; Support PutMap() and Size(), Destroy() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_map_test.go:67

  Expected error:
      <types.AerospikeError>: {
          error: {
              s: "/opt/aerospike/sys/udf/lua/ldt/lib_lmap.lua:3326: 1500:LDT-Not Enabled on Namespace",
          },
          resultCode: 100,
      }
      /opt/aerospike/sys/udf/lua/ldt/lib_lmap.lua:3326: 1500:LDT-Not Enabled on Namespace
  not to have occurred

  /home/username/go/src/github.com/aerospike/aerospike-client-go/large_map_test.go:45
------------------------------
• Failure [0.084 seconds]
LargeMap Test [It] should create a valid LargeMap; Support Put(), Exists(), Get(), Remove(), Find(), Size(), Scan() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_map_test.go:120

  Expected error:
      <types.AerospikeError>: {
          error: {
              s: "/opt/aerospike/sys/udf/lua/ldt/lib_lmap.lua:3326: 1500:LDT-Not Enabled on Namespace",
          },
          resultCode: 100,
      }
      /opt/aerospike/sys/udf/lua/ldt/lib_lmap.lua:3326: 1500:LDT-Not Enabled on Namespace
  not to have occurred

  /home/username/go/src/github.com/aerospike/aerospike-client-go/large_map_test.go:72
------------------------------
• Failure [0.079 seconds]
LargeMap Test [It] should correctly GetConfig() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_map_test.go:130

  Expected error:
      <types.AerospikeError>: {
          error: {
              s: "/opt/aerospike/sys/udf/lua/ldt/lib_lmap.lua:2620: 1500:LDT-Not Enabled on Namespace",
          },
          resultCode: 100,
      }
      /opt/aerospike/sys/udf/lua/ldt/lib_lmap.lua:2620: 1500:LDT-Not Enabled on Namespace
  not to have occurred

  /home/username/go/src/github.com/aerospike/aerospike-client-go/large_map_test.go:125
------------------------------
••••
------------------------------
• Failure [0.097 seconds]
LargeStack Test [It] should create a valid LargeStack; Support Push(), Peek(), Pop(), Size(), Scan(), Destroy() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_stack_test.go:88

  Expected error:
      <types.AerospikeError>: {
          error: {
              s: "/opt/aerospike/sys/udf/lua/ldt/lib_lstack.lua:4912: 1500:LDT-Not Enabled on Namespace",
          },
          resultCode: 100,
      }
      /opt/aerospike/sys/udf/lua/ldt/lib_lstack.lua:4912: 1500:LDT-Not Enabled on Namespace
  not to have occurred

  /home/username/go/src/github.com/aerospike/aerospike-client-go/large_stack_test.go:45
------------------------------
• Failure [0.079 seconds]
LargeStack Test [It] should correctly GetConfig() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_stack_test.go:98

  Expected error:
      <types.AerospikeError>: {
          error: {
              s: "/opt/aerospike/sys/udf/lua/ldt/lib_lstack.lua:4411: 1500:LDT-Not Enabled on Namespace",
          },
          resultCode: 100,
      }
      /opt/aerospike/sys/udf/lua/ldt/lib_lstack.lua:4411: 1500:LDT-Not Enabled on Namespace
  not to have occurred

  /home/username/go/src/github.com/aerospike/aerospike-client-go/large_stack_test.go:93
------------------------------
••••••••••••••••••••••••••••••••••••••••••••••••••••••••
------------------------------
• Failure [0.078 seconds]
LargeList Test [It] should create a valid LargeList; Support Add(), Remove(), Find(), Size(), Scan(), Range(), Destroy() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_list_test.go:103

  Expected error:
      <types.AerospikeError>: {
          error: {
              s: "/opt/aerospike/sys/udf/lua/ldt/lib_llist.lua:6604: 1500:LDT-Not Enabled on Namespace",
          },
          resultCode: 100,
      }
      /opt/aerospike/sys/udf/lua/ldt/lib_llist.lua:6604: 1500:LDT-Not Enabled on Namespace
  not to have occurred

  /home/username/go/src/github.com/aerospike/aerospike-client-go/large_list_test.go:46
------------------------------
• Failure [0.085 seconds]
LargeList Test [It] should correctly GetConfig() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_list_test.go:113

  Expected error:
      <types.AerospikeError>: {
          error: {
              s: "/opt/aerospike/sys/udf/lua/ldt/lib_llist.lua:5639: 1500:LDT-Not Enabled on Namespace",
          },
          resultCode: 100,
      }
      /opt/aerospike/sys/udf/lua/ldt/lib_llist.lua:5639: 1500:LDT-Not Enabled on Namespace
  not to have occurred

  /home/username/go/src/github.com/aerospike/aerospike-client-go/large_list_test.go:108
------------------------------
• Failure [0.086 seconds]
LargeSet Test [It] should create a valid LargeSet; Support Add(), Get(), Remove(), Exists(), Size(), Scan(), Destroy() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_set_test.go:108

  Expected error:
      <types.AerospikeError>: {
          error: {
              s: "/opt/aerospike/sys/udf/lua/ldt/lib_lset.lua:4010: 1500:LDT-Not Enabled on Namespace",
          },
          resultCode: 100,
      }
      /opt/aerospike/sys/udf/lua/ldt/lib_lset.lua:4010: 1500:LDT-Not Enabled on Namespace
  not to have occurred

  /home/username/go/src/github.com/aerospike/aerospike-client-go/large_set_test.go:55
------------------------------
• Failure [0.080 seconds]
LargeSet Test [It] should correctly GetConfig() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_set_test.go:118

  Expected error:
      <types.AerospikeError>: {
          error: {
              s: "/opt/aerospike/sys/udf/lua/ldt/lib_lset.lua:3435: 1500:LDT-Not Enabled on Namespace",
          },
          resultCode: 100,
      }
      /opt/aerospike/sys/udf/lua/ldt/lib_lset.lua:3435: 1500:LDT-Not Enabled on Namespace
  not to have occurred

  /home/username/go/src/github.com/aerospike/aerospike-client-go/large_set_test.go:113
------------------------------
••••••••••••••••••••••••••••••••••••••••••

Summarizing 9 Failures:

[Fail] LargeMap Test [It] should create a valid LargeMap; Support PutMap() and Size(), Destroy() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_map_test.go:45

[Fail] LargeMap Test [It] should create a valid LargeMap; Support Put(), Exists(), Get(), Remove(), Find(), Size(), Scan() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_map_test.go:72

[Fail] LargeMap Test [It] should correctly GetConfig() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_map_test.go:125

[Fail] LargeStack Test [It] should create a valid LargeStack; Support Push(), Peek(), Pop(), Size(), Scan(), Destroy() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_stack_test.go:45

[Fail] LargeStack Test [It] should correctly GetConfig() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_stack_test.go:93

[Fail] LargeList Test [It] should create a valid LargeList; Support Add(), Remove(), Find(), Size(), Scan(), Range(), Destroy() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_list_test.go:46

[Fail] LargeList Test [It] should correctly GetConfig() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_list_test.go:108

[Fail] LargeSet Test [It] should create a valid LargeSet; Support Add(), Get(), Remove(), Exists(), Size(), Scan(), Destroy() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_set_test.go:55

[Fail] LargeSet Test [It] should correctly GetConfig() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_set_test.go:113

Ran 147 of 147 Specs in 81.015 seconds
FAIL! -- 138 Passed | 9 Failed | 0 Pending | 0 Skipped --- FAIL: TestAerospike (81.02s)
FAIL

Ginkgo ran 1 suite in 1m55.355303746s
Test Suite Failed

Turn off race detection

Runt tests:

ginkgo -r

Its output:

[1447213491] Aerospike Client Library Suite - 147/147 specs •••
------------------------------
• Failure [0.040 seconds]
LargeList Test [It] should create a valid LargeList; Support Add(), Remove(), Find(), Size(), Scan(), Range(), Destroy() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_list_test.go:103

  Expected error:
      <types.AerospikeError>: {
          error: {
              s: "/opt/aerospike/sys/udf/lua/ldt/lib_llist.lua:6604: 1500:LDT-Not Enabled on Namespace",
          },
          resultCode: 100,
      }
      /opt/aerospike/sys/udf/lua/ldt/lib_llist.lua:6604: 1500:LDT-Not Enabled on Namespace
  not to have occurred

  /home/username/go/src/github.com/aerospike/aerospike-client-go/large_list_test.go:46
------------------------------
• Failure [0.039 seconds]
LargeList Test [It] should correctly GetConfig() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_list_test.go:113

  Expected error:
      <types.AerospikeError>: {
          error: {
              s: "/opt/aerospike/sys/udf/lua/ldt/lib_llist.lua:5639: 1500:LDT-Not Enabled on Namespace",
          },
          resultCode: 100,
      }
      /opt/aerospike/sys/udf/lua/ldt/lib_llist.lua:5639: 1500:LDT-Not Enabled on Namespace
  not to have occurred

  /home/username/go/src/github.com/aerospike/aerospike-client-go/large_list_test.go:108
------------------------------
••
------------------------------
• [SLOW TEST:5.266 seconds]
Index operations test Index creation Create non-existing index must drop an Index, and recreate it again to verify 
/home/username/go/src/github.com/aerospike/aerospike-client-go/index_test.go:114
------------------------------
••••••••••••••••••••••••••••••••••••••••••••••
------------------------------
• Failure [0.017 seconds]
LargeMap Test [It] should create a valid LargeMap; Support PutMap() and Size(), Destroy() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_map_test.go:67

  Expected error:
      <types.AerospikeError>: {
          error: {
              s: "/opt/aerospike/sys/udf/lua/ldt/lib_lmap.lua:3326: 1500:LDT-Not Enabled on Namespace",
          },
          resultCode: 100,
      }
      /opt/aerospike/sys/udf/lua/ldt/lib_lmap.lua:3326: 1500:LDT-Not Enabled on Namespace
  not to have occurred

  /home/username/go/src/github.com/aerospike/aerospike-client-go/large_map_test.go:45
------------------------------
• Failure [0.036 seconds]
LargeMap Test [It] should create a valid LargeMap; Support Put(), Exists(), Get(), Remove(), Find(), Size(), Scan() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_map_test.go:120

  Expected error:
      <types.AerospikeError>: {
          error: {
              s: "/opt/aerospike/sys/udf/lua/ldt/lib_lmap.lua:3326: 1500:LDT-Not Enabled on Namespace",
          },
          resultCode: 100,
      }
      /opt/aerospike/sys/udf/lua/ldt/lib_lmap.lua:3326: 1500:LDT-Not Enabled on Namespace
  not to have occurred

  /home/username/go/src/github.com/aerospike/aerospike-client-go/large_map_test.go:72
------------------------------
• Failure [0.016 seconds]
LargeMap Test [It] should correctly GetConfig() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_map_test.go:130

  Expected error:
      <types.AerospikeError>: {
          error: {
              s: "/opt/aerospike/sys/udf/lua/ldt/lib_lmap.lua:2620: 1500:LDT-Not Enabled on Namespace",
          },
          resultCode: 100,
      }
      /opt/aerospike/sys/udf/lua/ldt/lib_lmap.lua:2620: 1500:LDT-Not Enabled on Namespace
  not to have occurred

  /home/username/go/src/github.com/aerospike/aerospike-client-go/large_map_test.go:125
------------------------------
• Failure [0.016 seconds]
LargeStack Test [It] should create a valid LargeStack; Support Push(), Peek(), Pop(), Size(), Scan(), Destroy() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_stack_test.go:88

  Expected error:
      <types.AerospikeError>: {
          error: {
              s: "/opt/aerospike/sys/udf/lua/ldt/lib_lstack.lua:4912: 1500:LDT-Not Enabled on Namespace",
          },
          resultCode: 100,
      }
      /opt/aerospike/sys/udf/lua/ldt/lib_lstack.lua:4912: 1500:LDT-Not Enabled on Namespace
  not to have occurred

  /home/username/go/src/github.com/aerospike/aerospike-client-go/large_stack_test.go:45
------------------------------
• Failure [0.016 seconds]
LargeStack Test [It] should correctly GetConfig() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_stack_test.go:98

  Expected error:
      <types.AerospikeError>: {
          error: {
              s: "/opt/aerospike/sys/udf/lua/ldt/lib_lstack.lua:4411: 1500:LDT-Not Enabled on Namespace",
          },
          resultCode: 100,
      }
      /opt/aerospike/sys/udf/lua/ldt/lib_lstack.lua:4411: 1500:LDT-Not Enabled on Namespace
  not to have occurred

  /home/username/go/src/github.com/aerospike/aerospike-client-go/large_stack_test.go:93
------------------------------
••••••••••••••••••
------------------------------
• Failure [0.016 seconds]
LargeSet Test [It] should create a valid LargeSet; Support Add(), Get(), Remove(), Exists(), Size(), Scan(), Destroy() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_set_test.go:108

  Expected error:
      <types.AerospikeError>: {
          error: {
              s: "/opt/aerospike/sys/udf/lua/ldt/lib_lset.lua:4010: 1500:LDT-Not Enabled on Namespace",
          },
          resultCode: 100,
      }
      /opt/aerospike/sys/udf/lua/ldt/lib_lset.lua:4010: 1500:LDT-Not Enabled on Namespace
  not to have occurred

  /home/username/go/src/github.com/aerospike/aerospike-client-go/large_set_test.go:55
------------------------------
• Failure [0.015 seconds]
LargeSet Test [It] should correctly GetConfig() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_set_test.go:118

  Expected error:
      <types.AerospikeError>: {
          error: {
              s: "/opt/aerospike/sys/udf/lua/ldt/lib_lset.lua:3435: 1500:LDT-Not Enabled on Namespace",
          },
          resultCode: 100,
      }
      /opt/aerospike/sys/udf/lua/ldt/lib_lset.lua:3435: 1500:LDT-Not Enabled on Namespace
  not to have occurred

  /home/username/go/src/github.com/aerospike/aerospike-client-go/large_set_test.go:113
------------------------------
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••

Summarizing 9 Failures:

[Fail] LargeList Test [It] should create a valid LargeList; Support Add(), Remove(), Find(), Size(), Scan(), Range(), Destroy() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_list_test.go:46

[Fail] LargeList Test [It] should correctly GetConfig() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_list_test.go:108

[Fail] LargeMap Test [It] should create a valid LargeMap; Support PutMap() and Size(), Destroy() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_map_test.go:45

[Fail] LargeMap Test [It] should create a valid LargeMap; Support Put(), Exists(), Get(), Remove(), Find(), Size(), Scan() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_map_test.go:72

[Fail] LargeMap Test [It] should correctly GetConfig() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_map_test.go:125

[Fail] LargeStack Test [It] should create a valid LargeStack; Support Push(), Peek(), Pop(), Size(), Scan(), Destroy() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_stack_test.go:45

[Fail] LargeStack Test [It] should correctly GetConfig() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_stack_test.go:93

[Fail] LargeSet Test [It] should create a valid LargeSet; Support Add(), Get(), Remove(), Exists(), Size(), Scan(), Destroy() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_set_test.go:55

[Fail] LargeSet Test [It] should correctly GetConfig() 
/home/username/go/src/github.com/aerospike/aerospike-client-go/large_set_test.go:113

Ran 147 of 147 Specs in 60.311 seconds
FAIL! -- 138 Passed | 9 Failed | 0 Pending | 0 Skipped --- FAIL: TestAerospike (60.31s)
FAIL

Ginkgo ran 1 suite in 1m27.145283273s
Test Suite Failed

System hard & soft

My server version is aerospike-server-community-3.6.3-ubuntu12.04. My system is Linux Ubuntu 15.10 x64

$ uname -a
Linux asus 4.2.0-18-generic #22-Ubuntu SMP Fri Nov 6 18:25:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

My hardware: CPU: Athlon64 X2 Actually, it is notebook ASUS F3ke (2Gb RAM)

Golang version: go1.5.1 linux/amd64

Server installation: I just follow instructions described here: aerospike.com/docs/operations/install/linux/ubuntu/ Verification: I just follow instructions described here: aerospike.com/docs/operations/verify/ and all works fine.

Output of sudo /etc/init.d/aerospike status

● aerospike.service - LSB: Aerospike Clustered Data Service
   Loaded: loaded (/etc/init.d/aerospike)
   Active: active (running) since Ср. 2015-11-11 06:41:59 MSK; 2s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 2471 ExecStart=/etc/init.d/aerospike start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/aerospike.service
           └─2483 /usr/bin/asd --config-file /etc/aerospike/aerospike.conf

нояб. 11 06:41:58 asus systemd[1]: Starting LSB: Aerospike Clustered Data Service...
нояб. 11 06:41:58 asus aerospike[2476]: ulimit -n= 100000
нояб. 11 06:41:58 asus aerospike[2471]: * Starting aerospike
нояб. 11 06:41:59 asus aerospike[2471]: ...done.
нояб. 11 06:41:59 asus systemd[1]: Started LSB: Aerospike Clustered Data Service.

How can I help to solve this?

khaf commented 8 years ago

Thank you for your report. You haven't enabled LDTs for your namespace.

Take a look here for more info: http://www.aerospike.com/docs/guide/ldt.html

logrusorgru commented 8 years ago

Ok. Now LDT is enabled. But one of the tests failed. This is output:

[1447241955] Aerospike Client Library Suite - 147/147 specs ••••••••••••
------------------------------
• Failure [0.069 seconds]
Aerospike Node Connection Pool When A Connection Count Limit Is Set [It] must return an error when maximum number of connections are polled 
/home/username/go/src/github.com/aerospike/aerospike-client-go/node_test.go:120

  Expected
      <time.Duration>: 9080232
  to be <
      <time.Duration>: 3000000

  /home/username/go/src/github.com/aerospike/aerospike-client-go/node_test.go:117
------------------------------
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
------------------------------
• [SLOW TEST:5.320 seconds]
Index operations test Index creation Create non-existing index must drop an Index, and recreate it again to verify 
/home/username/go/src/github.com/aerospike/aerospike-client-go/index_test.go:114
------------------------------
•••••••••••••••••••••••••••••••••••••••••••••••

Summarizing 1 Failure:

[Fail] Aerospike Node Connection Pool When A Connection Count Limit Is Set [It] must return an error when maximum number of connections are polled 
/home/username/go/src/github.com/aerospike/aerospike-client-go/node_test.go:117

Ran 147 of 147 Specs in 63.430 seconds
FAIL! -- 146 Passed | 1 Failed | 0 Pending | 0 Skipped --- FAIL: TestAerospike (63.43s)
FAIL

Ginkgo ran 1 suite in 1m28.882993165s
Test Suite Failed

The output is exactly the same if I turn the race detection.

Do I need to create a new issue for this? It seems that this is a separate issue, and the current issue can be considered closed.

khaf commented 8 years ago

Thanks for taking the time. No need to file a new issue, I'll take care of it.