question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

aerospike-client-c patch fails

See original GitHub issue

After fixing multiple issues to run aerospike (with PerfKitBenchmarker) on PPC64le, I’m running into this issue with a patch. I am using the latest versions of PerfKit and Aerospike. Can anybody help with this? I haven’t done much poking yet to see what’s in this patch. Thanks!

root@015d33095dc0:/tmp/pkb# cd aerospike-client-c/benchmarks/src/main && patch -p1 -f  < aerospike.patch
patching file latency.c
Hunk #1 FAILED at 31.
Hunk #2 succeeded at 59 with fuzz 2 (offset 1 line).
Hunk #3 succeeded at 140 (offset 1 line).
1 out of 3 hunks FAILED -- saving rejects to file latency.c.rej
patching file latency.h
Hunk #1 succeeded at 27 with fuzz 1.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ehanklandcommented, Apr 27, 2016

Can you try out https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/pull/978 (it works for me)? I’m not sure why the patch failed - its possible your text editor might have messed up the spaces in the patch file and patch didn’t like it (or if you are no longer targeting version 4.0.4 that could also explain it).

0reactions
mlpesantcommented, May 3, 2016

@ehankland , thanks so much for your response. Adding internal_ip to the json file definitely solved that problem. I am now stuck further down the rabbit hole but I think I need to debug this one on my system and I’ll open a separate issue if needed. Thanks!

2016-05-03 13:58:17,233 41e53b55 MainThread aerospike(1/1) INFO     Ran ssh -A -p 22 ubuntu@9.40.200.243 -2 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o PreferredAuthentications=publickey -o PasswordAuthentication=no -o ConnectTimeout=5 -o GSSAPIAuthentication=no -o ServerAliveInterval=30 -o ServerAliveCountMax=10 -i /home/ubuntu/.ssh/id_rsa sudo docker exec 1051146a22f6faa137387bd0c60475e6676c71b254daebda431527d7c5792788 bash -c 'timeout 15 ./aerospike-client-c/benchmarks/target/benchmarks -z 8 -n test -w RU,90 -o B:1000 -k 1000000 --latency 5,1 -h 9.40.200.241;:'. Got return code (0).
STDOUT: hosts:          9.40.200.241
port:           3000
user:           (null)
namespace:      test
set:            testset
keys/records:   1000000
object spec:    byte[1000]
random values:  false
minimum number of transactions:  -1
workload:       read 90% write 10%
threads:        8
max throughput: unlimited
read timeout:   0 ms
write timeout:  0 ms
max retries:    1
debug:          false
latency:        5 columns, shift exponent 1
shared memory:  false
read replica:   master
read consistency level: one
write commit level: all
asynchronous mode:  off
2016-05-03 13:58:17 WARN Failed to connect to seed 9.40.200.241:3000. AEROSPIKE_ERR_TIMEOUT 
2016-05-03 13:58:17 ERROR Aerospike connect failed: -1 : Failed to seed cluster

STDERR: Warning: Permanently added '9.40.200.243' (ECDSA) to the list of known hosts.

2016-05-03 13:58:17,239 41e53b55 MainThread aerospike(1/1) ERROR    Error during benchmark aerospike
Traceback (most recent call last):
  File "/home/ubuntu/PerfKitBenchmarker.new/perfkitbenchmarker/pkb.py", line 472, in RunBenchmark
    detailed_timer)
  File "/home/ubuntu/PerfKitBenchmarker.new/perfkitbenchmarker/pkb.py", line 365, in DoRunPhase
    samples = benchmark.Run(spec)
  File "/home/ubuntu/PerfKitBenchmarker.new/perfkitbenchmarker/linux_benchmarks/aerospike_benchmark.py", line 179, in Run
    tps, latency = ParseOutput(stdout)
  File "/home/ubuntu/PerfKitBenchmarker.new/perfkitbenchmarker/linux_benchmarks/aerospike_benchmark.py", line 157, in ParseOutput
    r'Overall Average Latency \(ms\) ([0-9]+\.[0-9]+)', output)[-2:]
ValueError: need more than 0 values to unpack
Read more comments on GitHub >

github_iconTop Results From Across the Web

Build Error within aerospike-client-c-src-4.6.8
I'm trying to put the Aerospike Node.js client into an alpine Docker container. This needs some building the client-c-src.
Read more >
C Client Library Release Note | Download - Aerospike
CLIENT -1932 Retry a foreground scan/query partition to a different replica when a partition unavailable error occurs. Download. 6.2.1. Release Date: September ...
Read more >
Error Codes - Aerospike Documentation
This page describes the error codes that can be returned from both client and server.
Read more >
Why do clients reports error code 22 - Aerospike Support
This error indicates that the record cannot be written. There can be different situations that cause this issue. The most common causes with ......
Read more >
C Client - Aerospike | Developer Hub
Working with the Aerospike C Client. ... This information is critical to debug transaction failures resulting from cluster tend errors.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found