Skip to content

Instantly share code, notes, and snippets.

juven@mac ~$ unzip -lv ~/.m2/repository/junit/junit/4.8.2/junit-4.8.2.jar
Archive: /Users/juven/.m2/repository/junit/junit/4.8.2/junit-4.8.2.jar
Length Method Size Ratio Date Time CRC-32 Name
-------- ------ ------- ----- ---- ---- ------ ----
0 Stored 0 0% 04-08-10 13:07 00000000 META-INF/
95 Defl:N 83 13% 04-08-10 13:07 e0d91e91 META-INF/MANIFEST.MF
0 Stored 0 0% 04-08-10 13:07 00000000 junit/
0 Stored 0 0% 04-08-10 13:07 00000000 junit/extensions/
0 Stored 0 0% 04-08-10 13:07 00000000 junit/framework/
0 Stored 0 0% 04-08-10 13:07 00000000 junit/runner/
juven@mac tmp$ touch a.txt
juven@mac tmp$ ls -al a.txt
-rw-r--r-- 1 juven staff 0 Aug 11 23:54 a.txt
juven@mac tmp$ date
Thu Aug 11 23:55:42 CST 2011
juven@mac tmp$ zip a.zip a.txt
adding: a.txt (stored 0%)
juven@mac tmp$ unzip -l a.zip
Archive: a.zip
Length Date Time Name
<field name="path" type="string" indexed="false" stored="true" required="true" multiValued="false"/>
<field name="subPath" type="string" indexed="false" stored="true" required="false" multiValued="false"/>
<field name="sha1" type="hash" indexed="true" stored="true" required="false" multiValued="false"/>
<!-- Number of files an archive (if it is) contains, archive of archive is only counted as 1. -->
<field name="size" type="int" indexed="false" stored="true" required="false" multiValued="false"/>
<!-- If the file is in an Archive Of Archive. -->
<field name="nested" type="boolean" indexed="true" stored="true" multiValued="false"/>
<!-- last modified timestamp of the file itself. -->
<field name="f_time" type="long" indexed="false" stored="true" multiValued="false"/>
<!-- last modified timestamp of the inner level archive containing this file. -->
/*
* It's not easy to test the last modified time (mtime), because 1) while checking out the file's mtime changed,
* so you have to set it before testing; 2) on different timezone and different OS, the mtime value might change,
* (I don't have too many details now, but the mtime value of files within zip is different on my machine from on
* CI Linux server).
*
* So, since I did test the mtime on my local machine and we don't care too much about the accuracy, I'm ignoring
* the mtime here.
*/
2011-08-30 09:32:04 DEBUG [t-1-thread-6438] - org.sonatype.nexus.events.NexusAuthenticationEventInspector - Sucessfully authenticated user [edburns] from IP address 148.87.19.214
2011-08-30 09:32:04 DEBUG [0-7-javadoc.jar] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - getTargetsForRequest() :: snapshots:/com/sun/faces/jsf-api/2.1.3-SNAPSHOT/jsf-api-2.1.3-20110830.143150-7-javadoc.jar
2011-08-30 09:32:04 DEBUG [0-7-javadoc.jar] - org.sonatype.nexus.proxy.target.DefaultTargetRegistry - Resolving targets for repository='snapshots' for path='/com/sun/faces/jsf-api/2.1.3-SNAPSHOT/jsf-api-2.1.3-20110830.143150-7-javadoc.jar'
2011-08-30 09:32:04 DEBUG [H2DBWriter ] - com.sonatype.nexus.licensing.api.access.h2.H2DatabaseManager - UIPTracker updated for user edburns, number of records updated: 1
2011-08-30 09:32:04 DEBUG [0-7-javadoc.jar] - org.sonatype.nexus.proxy.maven.maven2.M2GroupRepository - getTargetsForRequest() :: public:/com/sun/faces/jsf-api/2.1.3-SNAPSHOT/jsf-api-2.1.3-20110830.143150-7-javado
Caused by: org.h2.jdbc.JdbcSQLException: Syntax error in SQL statement " CREATE TABLE hash_file ( sha1 varchar(41) NOT NULL, container_sha1 varchar(41) default NULL, path varchar(400) NOT NULL, fileSize int(11) NOT NULL, "; expected "identifier"; SQL statement:
CREATE TABLE hash_file ( sha1 varchar(41) NOT NULL, container_sha1 varchar(41) default NULL, path varchar(400) NOT NULL, fileSize int(11) NOT NULL, -- This could be joined in from the hash table, but that may be pointless. lastModified bigint(20) NOT NULL, CONSTRAINT hash_file_pk PRIMARY KEY (sha1, path, filename, extension), CONSTRAINT hash_file_fk FOREIGN KEY (sha1) REFERENCES hash(sha1) CON
2011-09-14 08:29:27 INFO [er_start_runner] - o.s.p.a.SimpleAppli~ - Unexpected exception in listener, continuing listener notification.
com.google.inject.ProvisionException: Guice provision errors:
1) Error injecting constructor, java.lang.IllegalStateException: Could not start up H2DatabaseManager components!
at com.sonatype.nexus.licensing.api.access.h2.H2UserIPTracker.<init>(Unknown Source)
at file:/home/nexus/nexus-professional-webapp-1.9.2.2/./runtime/apps/nexus/plugin-repository/nexus-licensing-plugin-1.9.2.2/nexus-licensing-plugin-1.9.2.2.jar!/
while locating com.sonatype.nexus.licensing.api.access.h2.H2UserIPTracker
while locating com.sonatype.nexus.licensing.api.access.UserIPTracker annotated with @com.google.inject.name.Named(value=h2)
for field at com.sonatype.nexus.licensing.api.access.UserIPEventInspector.usersIpTracker(Unknown Source)
at file:/home/nexus/nexus-professional-webapp-1.9.2.2/./runtime/apps/nexus/plugin-repository/nexus-licensing-plugin-1.9.2.2/nexus-licensin
[maven@sonatype-central02 logs]$ ps -ef | grep rsync
maven 6309 20317 1 08:12 ? 00:00:04 rsync --exclude-from=/home/maven/bin/synchronize/syncopate/exclusions-nexus.txt --ignore-existing -Lrtivz --rsh=ssh [email protected]:/x1/nexus-work/storage/releases/org/apache/ /home/maven/repository-staging/to-ibiblio/maven2/org/apache/
maven 6312 6309 0 08:12 ? 00:00:00 ssh -l central repository.apache.org rsync --server --sender -vLtrz . /x1/nexus-work/storage/releases/org/apache/
maven 8011 6309 0 08:12 ? 00:00:00 rsync --exclude-from=/home/maven/bin/synchronize/syncopate/exclusions-nexus.txt --ignore-existing -Lrtivz --rsh=ssh [email protected]:/x1/nexus-work/storage/releases/org/apache/ /home/maven/repository-staging/to-ibiblio/maven2/org/apache/
maven 10758 10750 1 06:30 ? 00:01:06 rsync -avz --delete /data/repositories/to-ibiblio/maven2 172.16.1.3:/data/repositories/to-ibiblio/
maven 10759 10758 0 06:30 ? 00:00:05 ssh 172.16.1.3
--delete
0:00am (148m) sent 90163832 bytes received 6124 bytes 10304.55 bytes/sec
4:00am (150m) sent 133433213 bytes received 39736 bytes 14975.93 bytes/sec
-- del
8:00am (106m) sent 210545136 bytes received 133064 bytes 34131.75 bytes/sec
@juven
juven / gc
Created November 14, 2011 15:51
gc
bash-3.2$ /opt/java/sdk/current/bin/jstack -l 4482
2011-11-14 09:50:10
Full thread dump Java HotSpot(TM) 64-Bit Server VM (20.1-b02 mixed mode):
"Attach Listener" daemon prio=10 tid=0x0000000040a29800 nid=0x5e2b waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
Locked ownable synchronizers:
- None