akdump throws NPE on Debian reinstall of server

Bug #1025271 reported by Louis Li
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Akiban Client Tools
Fix Released
Critical
Mike McMahon

Bug Description

This is on an Ubuntu EC2 instance that I used to test installing from the repositories. I can't remember for sure, but I think akdump was working correctly before the first time that I tested (on server r1892, when the first CE packages were put on the website). I ran sudo apt-get install akiban-server -y and overwrote the existing install, which stopped the server, reinstalled, then started again.

ubuntu=> create table customers (id int, telephone int);
CREATE TABLE
ubuntu=> insert into customers (id, telephone) values (0, 12345), (1, 23456), (2, 23421);
INSERT 0 3
ubuntu=> exit
ubuntu-> \q
ubuntu@ip-10-100-223-32:~$ akdump
ls: cannot access /usr/bin/../target/akiban-client-tools-*.*.*-SNAPSHOT.jar: No such file or directory
Exception in thread "main" java.lang.NullPointerException
 at java.util.TreeMap.getEntry(TreeMap.java:324)
 at java.util.TreeMap.get(TreeMap.java:255)
 at com.akiban.client.dump.DumpClient.findOrCreateTable(DumpClient.java:242)
 at com.akiban.client.dump.DumpClient.loadGroups(DumpClient.java:191)
 at com.akiban.client.dump.DumpClient.dump(DumpClient.java:158)
 at com.akiban.client.dump.DumpClient.main(DumpClient.java:44)

ubuntu@ip-10-100-223-32:~$ ls -l /usr/share/akiban
total 20884
-rw-r--r-- 1 root root 12868 Jul 16 05:01 akiban-client-tools-1.3.0-SNAPSHOT.jar
lrwxrwxrwx 1 root root 38 Jul 16 05:01 akiban-client-tools.jar -> akiban-client-tools-1.3.0-SNAPSHOT.jar
-rw-r--r-- 1 root root 21350553 Jul 16 05:01 akiban-server-1.3.0-SNAPSHOT-jar-with-dependencies.jar
lrwxrwxrwx 1 root root 54 Jul 16 05:01 akiban-server.jar -> akiban-server-1.3.0-SNAPSHOT-jar-with-dependencies.jar
-rw-r--r-- 1 root root 0 Jul 16 05:01 community.tag
-rw-r--r-- 1 root root 13106 Jul 16 05:01 LICENSE.txt
ubuntu@ip-10-100-223-32:~$ ls -l /usr/bin | grep akdump
-rwxr-xr-x 1 root root 249 Jul 16 05:01 akdump

ubuntu@ip-10-100-223-32:~$ ls /usr/share/java -l | grep postgres
lrwxrwxrwx 1 root root 20 Apr 20 15:37 postgresql.jar -> postgresql-jdbc3.jar
-rw-r--r-- 1 root root 520130 Apr 20 15:37 postgresql-jdbc3-9.1.jar
lrwxrwxrwx 1 root root 24 Apr 20 15:37 postgresql-jdbc3.jar -> postgresql-jdbc3-9.1.jar
-rw-r--r-- 1 root root 547818 Apr 20 15:37 postgresql-jdbc4-9.1.jar
lrwxrwxrwx 1 root root 24 Apr 20 15:37 postgresql-jdbc4.jar -> postgresql-jdbc4-9.1.jar

Louis Li (louisli)
description: updated
Revision history for this message
Mike McMahon (mmcm) wrote :

DumpClient knows uses the grouping_constraints system table, which recently changed.

Same failure from its own unit test.

affects: akiban-server → akiban-client-tools
Mike McMahon (mmcm)
Changed in akiban-client-tools:
assignee: nobody → Mike McMahon (mmcm)
importance: Undecided → Critical
status: New → Confirmed
Revision history for this message
Nathan Williams (nwilliams) wrote :

Ack. We might want to add client-build to the downstream of server-build (under end-to-end test I suppose).

Mike McMahon (mmcm)
Changed in akiban-client-tools:
status: Confirmed → Fix Committed
Changed in akiban-client-tools:
milestone: none → 1.3.1
status: Fix Committed → Fix Released
information type: Private → Public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.