org.apache.jackrabbit.oak.plugins.document.rdb.RDBBlobStore.class Maven / Gradle / Ivy
???? 3? ?{
?|}
| ?~
????
??
|
??????
|?
?
?
?????????? ??
=? A?????? A??
?????
=?
?
=??????
???
?????
=? ???
N?
??
?? ??? ???
=? A?
????????? A???
??
??????????
????
??
????????????
[|?????? ?? A?
?
??
??
??????? ????????
?
??
)?
?? ??
??
???? A??????????
$? ??
$?
=
??
?
?
?
=
)?
B!
?"0
?#
?$ %&'(
B)
?* ?+
?,-
?./?0
[?1
[?23 ?4
56 ??78
?9:
?_;<=>?_@A?BCDE
?FG
HIJK
LM
LN ?OPQR
??ST ChunkIdIterator InnerClasses LOG Lorg/slf4j/Logger; IDSIZE I callStack Ljava/lang/Exception; ch ELorg/apache/jackrabbit/oak/plugins/document/rdb/RDBConnectionHandler; tnData Ljava/lang/String; tnMeta tablesToBeDropped Ljava/util/Set; Signature #Ljava/util/Set; minLastModified J T(Ljavax/sql/DataSource;Lorg/apache/jackrabbit/oak/plugins/document/rdb/RDBOptions;)V Code LineNumberTable LocalVariableTable ex this =Lorg/apache/jackrabbit/oak/plugins/document/rdb/RDBBlobStore; ds Ljavax/sql/DataSource; options ;Lorg/apache/jackrabbit/oak/plugins/document/rdb/RDBOptions;
StackMapTableGU?? (Ljavax/sql/DataSource;)V close ()V Ljava/sql/SQLException; stmt Ljava/sql/Statement; con Ljava/sql/Connection; tname Ljava/io/IOException; dropped?V?W?X?Y? finalize
ExceptionsX
initialize ct checkStatement tableName isolation isolationDiags md Ljava/sql/DatabaseMetaData; db ?Lorg/apache/jackrabbit/oak/plugins/document/rdb/RDBBlobStoreDB; versionDiags dbDesc
driverDesc dbUrl
tablesCreated Ljava/util/List;
tablesPresent createStatement LocalVariableTypeTable $Ljava/util/List;Z[7\
storeBlock ([BI[B)V e digest [B level data storeBlockInDatabase count rows message rs Ljava/sql/ResultSet; dbdata now prep Ljava/sql/PreparedStatement; id]^ readBlockFromBackend ([B)[B_ BlockId B(Lorg/apache/jackrabbit/oak/spi/blob/AbstractBlobStore$BlockId;)[B start blockId >Lorg/apache/jackrabbit/oak/spi/blob/AbstractBlobStore$BlockId; len d2_ startMark
isMarkEnabled ()Z mark A(Lorg/apache/jackrabbit/oak/spi/blob/AbstractBlobStore$BlockId;)V sweep ()I sweepFromDatabase mrows drows ids Ljava/util/ArrayList; prepCheck prepDelMeta prepDelData )Ljava/util/ArrayList;? countDeleteChunks (Ljava/util/List;J)J inClause` PreparedStatementComponent XLorg/apache/jackrabbit/oak/plugins/document/rdb/RDBJDBCTools$PreparedStatementComponent;
metaStatement Ljava/lang/StringBuilder;
dataStatement mindex dindex deletedMeta deletedData prepMeta prepData chunk chunkIds maxLastModifiedTime` ((Ljava/util/List;J)J getAllChunkIds (J)Ljava/util/Iterator; +(J)Ljava/util/Iterator;
access$000 ()Lorg/slf4j/Logger; Ljava/security/MessageDigest; (Ljava/security/NoSuchAlgorithmException;P
SourceFile RDBBlobStore.java ? ? ? ? java/util/HashSet ? ? ? java/lang/Exception Aorg/apache/jackrabbit/oak/plugins/document/DocumentStoreException initializing RDB blob store ?a 9org/apache/jackrabbit/oak/plugins/document/rdb/RDBOptions ? ? bcM java/lang/StringBuilder attempting to drop: dedfghYijklVmMno java/lang/String ? ?pq%r drop table Wst ? ?u ? vwx java/sql/SQLExceptioniayz{h java/io/IOException closing connection handler|a RDBBlobStore (}~h ) closed (tables dropped: )j?M ? ? 1finalizing RDBDocumentStore that was not disposed ??h DATASTORE_DATA?? ? ? DATASTORE_META ? ? Corg/apache/jackrabbit/oak/plugins/document/rdb/RDBConnectionHandler ? ??Q?? java/sql/Connection %Detected transaction isolation level is lower higher than expected ! - check datasource configuration??Z?h[????|j
%s %s (%d.%d) java/lang/Object?h?Q????Q?? [
]???h?h?Q?Q?h java/util/ArrayList select ID from where ID = '0'??^??? ????????M?? ) instantiated for database , using driver: , connecting to: , transaction isolation level: Tables present upon startup: Tables created upon startup: (will be dropped on exit)?M #call stack of RDBBlobStore creation ?j3- ????????????? update set LASTMOD = ? where ID = ???]?????Q trying to update metadata insert into (ID, DATA) values(?, ?)?? insert-data id={} rows={}??
Insert of id into failed with result d??z select DATA from
where ID = ???nM???? insert document failed for id
with length ( (check max size of datastore_data.data)??? (DATA table already contains blob for id (, but the actual data differs (lengths: , 'recovered from DB inconsistency for id H: meta record was missing (impact will be minor performance degradation) # (ID, LVL, LASTMOD) values(?, ?, ?)?? insert-meta id={} rows={} inserting meta record for id ?q Datastore block
not found?????????????????? ? ?? ? - set LASTMOD = ? where ID = ? and LASTMOD < ?RQ where LASTMOD < ??? delete from delete-meta id={} rows={} delete-data id={} rows={}? ???? java/util/List ID?? where ?h and LASTMOD <= ? and not exists(select * from .ID = .ID and LASTMOD > ?)?? delete-meta rows={}?? delete-data rows={} Tchunk deletion affected different numbers of DATA records (%s) and META records (%s) Korg/apache/jackrabbit/oak/plugins/document/rdb/RDBBlobStore$ChunkIdIterator ?? ;org/apache/jackrabbit/oak/plugins/document/rdb/RDBBlobStore??? 4org/apache/jackrabbit/oak/spi/blob/AbstractBlobStore SHA-256????Q ? ? &java/security/NoSuchAlgorithmException ,can't determine digest length for blob store java/lang/RuntimeException 7org/apache/jackrabbit/oak/plugins/blob/CachingBlobStore java/io/Closeable javax/sql/DataSource java/util/Iterator java/sql/Statement java/lang/Throwable org/slf4j/Logger java/sql/DatabaseMetaData =org/apache/jackrabbit/oak/plugins/document/rdb/RDBBlobStoreDB [Ljava/lang/String; java/sql/PreparedStatement java/sql/ResultSet