Class org.syncany.tests.integration.scenarios.FirstVersionDirtyScenarioTest

1

tests

0

failures

0

ignored

0.911s

duration

100%

successful

Tests

Test Duration Result
testFirstVersionDirty 0.911s passed

Standard error

25-5-17 10:16:38.139 | org.syncany.plu | Test worker    | FINE : Validating required fields
25-5-17 10:16:38.144 | LocalTransferMa | Test worker    | INFO : testTargetExists: Target exists.
25-5-17 10:16:38.164 | org.syncany.plu | Test worker    | FINE : Validating required fields
25-5-17 10:16:38.164 | TransferManager | Test worker    | INFO : Building LocalTransferManager from config 'syncany-170525101614951-62348-client-A' ...
25-5-17 10:16:38.164 | TransferManager | Test worker    | INFO : - With feature ReadAfterWriteConsistent
25-5-17 10:16:38.164 | TransferManager | Test worker    | INFO : - With feature Retriable
25-5-17 10:16:38.164 | TransferManager | Test worker    | FINE : - Checking if selected features supported ...
25-5-17 10:16:38.164 | TransferManager | Test worker    | FINE : - Checking for duplicate features ...
25-5-17 10:16:38.165 | TransferManager | Test worker    | FINE : - Checking required feature TransactionAware in LocalTransferManager ...
25-5-17 10:16:38.165 | TransferManager | Test worker    | FINE : - Checking required feature Retriable in LocalTransferManager ...
25-5-17 10:16:38.165 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature ReadAfterWriteConsistent
25-5-17 10:16:38.165 | TransferManager | Test worker    | FINE : - Wrapping TransferManager LocalTransferManager in RetriableFeatureTransferManager
25-5-17 10:16:38.165 | org.syncany.plu | Test worker    | FINE : Validating required fields
25-5-17 10:16:38.165 | TransferManager | Test worker    | INFO : Building LocalTransferManager from config 'syncany-170525101614951-62348-client-A' ...
25-5-17 10:16:38.165 | TransferManager | Test worker    | INFO : - With feature ReadAfterWriteConsistent
25-5-17 10:16:38.165 | TransferManager | Test worker    | INFO : - With feature Retriable
25-5-17 10:16:38.165 | TransferManager | Test worker    | INFO : - With feature PathAware
25-5-17 10:16:38.165 | TransferManager | Test worker    | INFO : - With feature TransactionAware
25-5-17 10:16:38.166 | TransferManager | Test worker    | FINE : - Checking if selected features supported ...
25-5-17 10:16:38.166 | TransferManager | Test worker    | FINE : - Checking for duplicate features ...
25-5-17 10:16:38.166 | TransferManager | Test worker    | FINE : - Checking required feature TransactionAware in LocalTransferManager ...
25-5-17 10:16:38.166 | TransferManager | Test worker    | FINE : - Checking required feature Retriable in LocalTransferManager ...
25-5-17 10:16:38.166 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature ReadAfterWriteConsistent
25-5-17 10:16:38.166 | TransferManager | Test worker    | FINE : - Wrapping TransferManager LocalTransferManager in RetriableFeatureTransferManager
25-5-17 10:16:38.166 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature PathAware
25-5-17 10:16:38.166 | TransferManager | Test worker    | FINE : - Wrapping TransferManager RetriableFeatureTransferManager in TransactionAwareFeatureTransferManager
25-5-17 10:16:38.184 | hsqldb.db.HSQLD | Test worker    | INFO : Checkpoint start
25-5-17 10:16:38.184 | hsqldb.db.HSQLD | Test worker    | INFO : checkpointClose start
25-5-17 10:16:38.195 | hsqldb.db.HSQLD | Test worker    | FINE : log close size: 0
25-5-17 10:16:38.198 | hsqldb.db.HSQLD | Test worker    | INFO : checkpointClose end
25-5-17 10:16:38.199 | hsqldb.db.HSQLD | Test worker    | INFO : Checkpoint end - txts: 1
25-5-17 10:16:38.205 | DatabaseConnect | Test worker    | INFO : Found 0 tables.
25-5-17 10:16:38.206 | DatabaseConnect | Test worker    | INFO : Database has no tables. Creating tables from script.create.all.sql
25-5-17 10:16:38.206 | SqlRunner       | Test worker    | INFO : SQL (comment): -- Tables
25-5-17 10:16:38.206 | SqlRunner       | Test worker    | INFO : SQL:  CREATE CACHED TABLE IF NOT EXISTS databaseversion ( id int NOT NULL IDENTITY, status varchar(45) NOT NULL, localtime datetime NOT NULL, client varchar(45) NOT NULL, vectorclock_serialized varchar(1024) NOT NULL, UNIQUE (vectorclock_serialized) ); 
25-5-17 10:16:38.210 | SqlRunner       | Test worker    | INFO : SQL:  CREATE CACHED TABLE IF NOT EXISTS  chunk ( checksum varchar(40) NOT NULL, databaseversion_id int NOT NULL, size bigint NOT NULL, PRIMARY KEY (checksum), FOREIGN KEY (databaseversion_id) REFERENCES databaseversion (id) ON DELETE NO ACTION ON UPDATE NO ACTION ); 
25-5-17 10:16:38.213 | SqlRunner       | Test worker    | INFO : SQL:  CREATE CACHED TABLE IF NOT EXISTS  databaseversion_vectorclock ( databaseversion_id int NOT NULL, client varchar(45) NOT NULL, logicaltime int NOT NULL, PRIMARY KEY (databaseversion_id, client), FOREIGN KEY (databaseversion_id) REFERENCES databaseversion (id) ON DELETE NO ACTION ON UPDATE NO ACTION ); 
25-5-17 10:16:38.216 | SqlRunner       | Test worker    | INFO : SQL:  CREATE CACHED TABLE IF NOT EXISTS  filecontent ( checksum varchar(40) NOT NULL, databaseversion_id int NOT NULL, size bigint NOT NULL, PRIMARY KEY (checksum), FOREIGN KEY (databaseversion_id) REFERENCES databaseversion (id) ON DELETE NO ACTION ON UPDATE NO ACTION ); 
25-5-17 10:16:38.219 | SqlRunner       | Test worker    | INFO : SQL:  CREATE CACHED TABLE IF NOT EXISTS  filecontent_chunk ( filecontent_checksum varchar(40) NOT NULL, chunk_checksum varchar(40) NOT NULL, num int NOT NULL, PRIMARY KEY (filecontent_checksum, chunk_checksum, num), FOREIGN KEY (filecontent_checksum) REFERENCES filecontent (checksum) ON DELETE NO ACTION ON UPDATE NO ACTION, FOREIGN KEY (chunk_checksum) REFERENCES chunk (checksum) ON DELETE NO ACTION ON UPDATE NO ACTION ); 
25-5-17 10:16:38.223 | SqlRunner       | Test worker    | INFO : SQL:  CREATE CACHED TABLE IF NOT EXISTS  filehistory ( id varchar(40) NOT NULL, databaseversion_id int NOT NULL, PRIMARY KEY (id, databaseversion_id), FOREIGN KEY (databaseversion_id) REFERENCES databaseversion (id) ON DELETE NO ACTION ON UPDATE NO ACTION ); 
25-5-17 10:16:38.227 | SqlRunner       | Test worker    | INFO : SQL:  CREATE CACHED TABLE IF NOT EXISTS  fileversion ( filehistory_id varchar(40) NOT NULL, version int NOT NULL, databaseversion_id int NOT NULL, path varchar(1024) NOT NULL, type varchar(45) NOT NULL, status varchar(45) NOT NULL, size bigint NOT NULL, lastmodified datetime NOT NULL, linktarget varchar(1024), filecontent_checksum varchar(40) DEFAULT NULL, updated datetime NOT NULL, posixperms varchar(45) DEFAULT NULL, dosattrs varchar(45) DEFAULT NULL, PRIMARY KEY (filehistory_id, version, databaseversion_id), FOREIGN KEY (filehistory_id, databaseversion_id) REFERENCES filehistory (id, databaseversion_id) ON DELETE NO ACTION ON UPDATE NO ACTION, FOREIGN KEY (filecontent_checksum) REFERENCES filecontent (checksum) ON DELETE NO ACTION ON UPDATE NO ACTION ); 
25-5-17 10:16:38.231 | SqlRunner       | Test worker    | INFO : SQL:  CREATE CACHED TABLE IF NOT EXISTS  multichunk ( id varchar(40) NOT NULL, databaseversion_id int NOT NULL, size bigint NOT NULL, PRIMARY KEY (id), FOREIGN KEY (databaseversion_id) REFERENCES databaseversion (id) ON DELETE NO ACTION ON UPDATE NO ACTION ); 
25-5-17 10:16:38.234 | SqlRunner       | Test worker    | INFO : SQL:  CREATE CACHED TABLE IF NOT EXISTS  multichunk_chunk ( multichunk_id varchar(40) NOT NULL, chunk_checksum varchar(40) NOT NULL, PRIMARY KEY (multichunk_id, chunk_checksum), FOREIGN KEY (multichunk_id) REFERENCES multichunk (id) ON DELETE NO ACTION ON UPDATE NO ACTION, FOREIGN KEY (chunk_checksum) REFERENCES chunk (checksum) ON DELETE NO ACTION ON UPDATE NO ACTION ); 
25-5-17 10:16:38.236 | SqlRunner       | Test worker    | INFO : SQL:  CREATE CACHED TABLE IF NOT EXISTS  multichunk_muddy ( id varchar(40) NOT NULL, machine_name varchar(255) NOT NULL, machine_version int NOT NULL, PRIMARY KEY (id) ); 
25-5-17 10:16:38.239 | SqlRunner       | Test worker    | INFO : SQL:  CREATE CACHED TABLE IF NOT EXISTS  known_databases ( id int NOT NULL IDENTITY, client varchar(45) NOT NULL, filenumber int NOT NULL, UNIQUE (client, filenumber) ); 
25-5-17 10:16:38.241 | SqlRunner       | Test worker    | INFO : SQL:  CREATE CACHED TABLE IF NOT EXISTS  general_settings ( key varchar(255) NOT NULL, value varchar(255) NOT NULL, PRIMARY KEY (key) ); 
25-5-17 10:16:38.244 | SqlRunner       | Test worker    | INFO : SQL (comment): -- Non-primary indices
25-5-17 10:16:38.244 | SqlRunner       | Test worker    | INFO : SQL:   CREATE INDEX idx_databaseversion_status ON databaseversion (status); 
25-5-17 10:16:38.245 | hsqldb.db.HSQLD | Test worker    | INFO : dataFileCache open start
25-5-17 10:16:38.248 | hsqldb.db.HSQLD | Test worker    | INFO : dataFileCache open end
25-5-17 10:16:38.251 | SqlRunner       | Test worker    | INFO : SQL: CREATE INDEX idx_databaseversion_vectorclock_serialized ON databaseversion (vectorclock_serialized); 
25-5-17 10:16:38.254 | SqlRunner       | Test worker    | INFO : SQL: CREATE INDEX idx_fileversion_path ON fileversion (path); 
25-5-17 10:16:38.256 | SqlRunner       | Test worker    | INFO : SQL: CREATE INDEX idx_fileversion_status ON fileversion (status); 
25-5-17 10:16:38.259 | SqlRunner       | Test worker    | INFO : SQL: CREATE INDEX idx_fileversion_filecontent_checksum ON fileversion (filecontent_checksum); 
25-5-17 10:16:38.262 | SqlRunner       | Test worker    | INFO : SQL (comment): -- Views
25-5-17 10:16:38.262 | SqlRunner       | Test worker    | INFO : SQL:    CREATE VIEW databaseversion_master AS SELECT dbv.*, vc.logicaltime as client_version FROM databaseversion dbv JOIN databaseversion_vectorclock vc on dbv.id=vc.databaseversion_id and dbv.client=vc.client WHERE dbv.status='MASTER'; 
25-5-17 10:16:38.270 | SqlRunner       | Test worker    | INFO : SQL:  CREATE VIEW fileversion_master AS SELECT fv0.* FROM fileversion fv0 JOIN databaseversion dbv ON fv0.databaseversion_id=dbv.id AND dbv.status='MASTER'; 
25-5-17 10:16:38.273 | SqlRunner       | Test worker    | INFO : SQL:  CREATE VIEW fileversion_master_maxversion AS SELECT DISTINCT filehistory_id, MAX(version) version FROM fileversion_master GROUP BY filehistory_id; 
25-5-17 10:16:38.276 | SqlRunner       | Test worker    | INFO : SQL:  CREATE VIEW fileversion_master_last AS SELECT fv.* FROM fileversion_master_maxversion fvmax JOIN fileversion_master fv ON fvmax.filehistory_id=fv.filehistory_id AND fvmax.version=fv.version WHERE fv.status<>'DELETED'; 
25-5-17 10:16:38.280 | SqlRunner       | Test worker    | INFO : SQL (comment): -- Full Views
25-5-17 10:16:38.280 | SqlRunner       | Test worker    | INFO : SQL:    create view filehistory_full as select dbv.status as databaseversion_status, dbv.localtime as databaseversion_localtime, dbv.client as databaseversion_client, dbv.vectorclock_serialized as databaseversion_vectorclock_serialized, fh.* from databaseversion dbv join filehistory fh on dbv.id=fh.databaseversion_id; 
25-5-17 10:16:38.283 | SqlRunner       | Test worker    | INFO : SQL:  create view fileversion_full as select fhf.databaseversion_status, fhf.databaseversion_localtime, fhf.databaseversion_client, fhf.databaseversion_vectorclock_serialized, fv.* from filehistory_full fhf join fileversion fv on fhf.id=fv.filehistory_id and fhf.databaseversion_id=fv.databaseversion_id; 
25-5-17 10:16:38.287 | SqlRunner       | Test worker    | INFO : SQL (comment): -- Functions
25-5-17 10:16:38.287 | SqlRunner       | Test worker    | INFO : SQL (new delimiter): end;
25-5-17 10:16:38.288 | SqlRunner       | Test worker    | INFO : SQL:     create function substr_count(haystack varchar(255), needle varchar(255)) returns integer begin atomic declare strCount integer; declare lastIndex integer;  set strCount = 0; set lastIndex = 1;  while lastIndex <> 0 do set lastIndex = locate(needle, haystack, lastIndex);  if lastIndex <> 0 then set strCount = strCount + 1; set lastIndex = lastIndex + length(needle); end if; end while;  return strCount; end; 
25-5-17 10:16:38.290 | UpOperation     | Test worker    | INFO : 
25-5-17 10:16:38.291 | UpOperation     | Test worker    | INFO : Running 'Sync up' at client A ...
25-5-17 10:16:38.291 | UpOperation     | Test worker    | INFO : --------------------------------------------
25-5-17 10:16:38.291 | InternalEventBu | Test worker    | INFO : Event bus 'LocalEventBus': Posting event UpStartSyncExternalEvent (org.syncany.operations.daemon.messages.UpStartSyncExternalEvent@53eb2b0d) ...
25-5-17 10:16:38.292 | DatabaseConnect | Test worker    | INFO : Found 12 tables.
25-5-17 10:16:38.292 | StatusOperation | Test worker    | INFO : 
25-5-17 10:16:38.292 | StatusOperation | Test worker    | INFO : Running 'Status' at client A ...
25-5-17 10:16:38.292 | StatusOperation | Test worker    | INFO : --------------------------------------------
25-5-17 10:16:38.292 | StatusOperation | Test worker    | INFO : Querying current file tree from database ...
25-5-17 10:16:38.292 | InternalEventBu | Test worker    | INFO : Event bus 'LocalEventBus': Posting event StatusStartSyncExternalEvent (org.syncany.operations.daemon.messages.StatusStartSyncExternalEvent@7c220058) ...
25-5-17 10:16:38.293 | StatusOperation | Test worker    | INFO : Analyzing local folder /tmp/syncanytest/syncany-170525101614951-62348-client-A ...
25-5-17 10:16:38.293 | StatusOperation | Test worker    | FINE : - Ignoring file (syncany app-related): .syncany
25-5-17 10:16:38.293 | StatusOperation | Test worker    | FINE : - New file: A-file1.jpg
25-5-17 10:16:38.294 | InternalEventBu | Test worker    | INFO : Event bus 'LocalEventBus': Posting event StatusEndSyncExternalEvent (org.syncany.operations.daemon.messages.StatusEndSyncExternalEvent@392475c6) ...
25-5-17 10:16:38.294 | AbstractTransfe | Test worker    | INFO : Looking for other running remote operations ...
25-5-17 10:16:38.294 | UpOperation     | Test worker    | INFO : Force (--force-upload) is enabled, ignoring potential remote changes.
25-5-17 10:16:38.294 | ActionFileHandl | Test worker    | INFO : Starting action for RemoteFile[name=action-up-A-1495707398166] ...
25-5-17 10:16:38.294 | ActionFileHandl | Test worker    | INFO : Uploading action file: RemoteFile[name=action-up-A-1495707398166]
25-5-17 10:16:38.294 | ActionFileHandl | Test worker    | INFO : Scheduling action renewal task for every 2 minutes, for RemoteFile[name=action-up-A-1495707398166] ...
25-5-17 10:16:38.295 | DatabaseConnect | Test worker    | INFO : Found 12 tables.
25-5-17 10:16:38.295 | TransactionAwar | Test worker    | INFO : Done rolling back previous transactions.
25-5-17 10:16:38.296 | AsyncIndexer    | AsyncI/syncany | INFO : Starting Indexing.
25-5-17 10:16:38.296 | InternalEventBu | AsyncI/syncany | INFO : Event bus 'LocalEventBus': Posting event UpIndexStartSyncExternalEvent (org.syncany.operations.daemon.messages.UpIndexStartSyncExternalEvent@5e565065) ...
25-5-17 10:16:38.296 | Indexer         | AsyncI/syncany | FINE : - Looking for deleted files ...
25-5-17 10:16:38.296 | Indexer         | AsyncI/syncany | FINE : - +File /tmp/syncanytest/syncany-170525101614951-62348-client-A/A-file1.jpg
25-5-17 10:16:38.296 | Indexer         | AsyncI/syncany | FINE : - +FileContent: /tmp/syncanytest/syncany-170525101614951-62348-client-A/A-file1.jpg
25-5-17 10:16:38.303 | Indexer         | AsyncI/syncany | FINE : - Chunk new: b85cc0679b71ac705c1890601694ceaf9d7c2e78
25-5-17 10:16:38.303 | Indexer         | AsyncI/syncany | FINE : - +MultiChunk 7acc25b1e796295943b641ade8c4077636820919
25-5-17 10:16:38.309 | Indexer         | AsyncI/syncany | FINE : - Chunk > MultiChunk: b85cc0679b71ac705c1890601694ceaf9d7c2e78 > 7acc25b1e796295943b641ade8c4077636820919
25-5-17 10:16:38.309 | Indexer         | AsyncI/syncany | FINE : - Chunk > FileContent: b85cc0679b71ac705c1890601694ceaf9d7c2e78 > /tmp/syncanytest/syncany-170525101614951-62348-client-A/A-file1.jpg
25-5-17 10:16:38.315 | Indexer         | AsyncI/syncany | FINE : - Chunk new: da9d2e97861f13f0097cb21bf5b68b64aab79be3
25-5-17 10:16:38.320 | Indexer         | AsyncI/syncany | FINE : - Chunk > MultiChunk: da9d2e97861f13f0097cb21bf5b68b64aab79be3 > 7acc25b1e796295943b641ade8c4077636820919
25-5-17 10:16:38.320 | Indexer         | AsyncI/syncany | FINE : - Chunk > FileContent: da9d2e97861f13f0097cb21bf5b68b64aab79be3 > /tmp/syncanytest/syncany-170525101614951-62348-client-A/A-file1.jpg
25-5-17 10:16:38.321 | Indexer         | AsyncI/syncany | FINE : - /File: A-file1.jpg (checksum 7edcac250cf9fd7b1f930a7f33b6fd9cd96af7fa)
25-5-17 10:16:38.323 | Indexer         | AsyncI/syncany | FINE :    * No old file history found, starting new history (path: A-file1.jpg, checksum: 7edcac250cf9fd7b1f930a7f33b6fd9cd96af7fa)
25-5-17 10:16:38.323 | FileVersionComp | AsyncI/syncany | INFO :      - [DELETED]: Local file DIFFERS from file version, actual file is NULL, for file A-file1.jpg
25-5-17 10:16:38.323 | Indexer         | AsyncI/syncany | INFO :    * Added file version:    FileVersion [version=1, path=A-file1.jpg, type=FILE, status=NEW, size=1048576, lastModified=Thu May 25 10:16:38 UTC 2017, linkTarget=null, checksum=7edcac250cf9fd7b1f930a7f33b6fd9cd96af7fa, updated=Thu May 25 10:16:38 UTC 2017, posixPermissions=rw-rw-r--, dosAttributes=--a-]
25-5-17 10:16:38.323 | Indexer         | AsyncI/syncany | INFO :      based on file version: null
25-5-17 10:16:38.323 | InternalEventBu | AsyncI/syncany | INFO : Event bus 'LocalEventBus': Posting event UpIndexChangesDetectedSyncExternalEvent (org.syncany.operations.daemon.messages.UpIndexChangesDetectedSyncExternalEvent@76c2890d) ...
25-5-17 10:16:38.324 | Indexer         | AsyncI/syncany | FINE : - /MultiChunk 7acc25b1e796295943b641ade8c4077636820919
25-5-17 10:16:38.324 | InternalEventBu | AsyncI/syncany | INFO : Event bus 'LocalEventBus': Posting event UpIndexEndSyncExternalEvent (org.syncany.operations.daemon.messages.UpIndexEndSyncExternalEvent@71432948) ...
25-5-17 10:16:38.324 | Indexer         | AsyncI/syncany | FINE : Processed new database version: DatabaseVersion [header=UnknownMachine/()/T=1495707398296, chunks=2, multiChunks=1, fileContents=1, fileHistories=1]
25-5-17 10:16:38.324 | UpOperation     | Test worker    | INFO : No DIRTY data found in database (no dirty databases); Nothing to do here.
25-5-17 10:16:38.327 | UpOperation     | Test worker    | INFO : Last vector clock was: ()
25-5-17 10:16:38.328 | UpOperation     | Test worker    | INFO : Uploading new multichunks ...
25-5-17 10:16:38.328 | UpOperation     | Test worker    | INFO : - Uploading multichunk 7acc25b1e796295943b641ade8c4077636820919 from /tmp/syncanytest/syncany-170525101614951-62348-client-A/.syncany/cache/multichunk-7acc25b1e796295943b641ade8c4077636820919 to RemoteFile[name=multichunk-7acc25b1e796295943b641ade8c4077636820919] ...
25-5-17 10:16:38.329 | RemoteTransacti | Test worker    | INFO : - Adding file to TX for UPLOAD: /tmp/syncanytest/syncany-170525101614951-62348-client-A/.syncany/cache/multichunk-7acc25b1e796295943b641ade8c4077636820919 -> Temp. remote file: RemoteFile[name=temp-KDzVJ-multichunk-7acc25b1e796295943b641ade8c4077636820919], final location: RemoteFile[name=multichunk-7acc25b1e796295943b641ade8c4077636820919]
25-5-17 10:16:38.329 | UpOperation     | Test worker    | INFO : Uploading database: DatabaseVersion [header=A/(A1)/T=1495707398328, chunks=2, multiChunks=1, fileContents=1, fileHistories=1]
25-5-17 10:16:38.331 | UpOperation     | Test worker    | INFO : Saving local delta database, version A/(A1)/T=1495707398328 to file /tmp/syncanytest/syncany-170525101614951-62348-client-A/.syncany/cache/database-A-0000000001 ... 
25-5-17 10:16:38.331 | UpOperation     | Test worker    | INFO : - Saving database to /tmp/syncanytest/syncany-170525101614951-62348-client-A/.syncany/cache/database-A-0000000001 ...
25-5-17 10:16:38.331 | InternalEventBu | AsyncI/syncany | INFO : Event bus 'LocalEventBus': Posting event UpIndexMidSyncExternalEvent (org.syncany.operations.daemon.messages.UpIndexMidSyncExternalEvent@4e406188) ...
25-5-17 10:16:38.332 | UpOperation     | Test worker    | INFO : - Uploading local delta database file ...
25-5-17 10:16:38.332 | UpOperation     | Test worker    | INFO : - Uploading /tmp/syncanytest/syncany-170525101614951-62348-client-A/.syncany/cache/database-A-0000000001 to RemoteFile[name=database-A-0000000001] ...
25-5-17 10:16:38.334 | RemoteTransacti | Test worker    | INFO : - Adding file to TX for UPLOAD: /tmp/syncanytest/syncany-170525101614951-62348-client-A/.syncany/cache/database-A-0000000001 -> Temp. remote file: RemoteFile[name=temp-eHEjv-database-A-0000000001], final location: RemoteFile[name=database-A-0000000001]
25-5-17 10:16:38.334 | UpOperation     | Test worker    | INFO : Adding shutdown hook (to allow resuming the upload) ...
25-5-17 10:16:38.334 | RemoteTransacti | Test worker    | INFO : Starting TX.commit() ...
25-5-17 10:16:38.337 | RemoteTransacti | Test worker    | INFO : Wrote transaction manifest to temporary file: /tmp/syncanytest/syncany-170525101614951-62348-client-A/.syncany/cache/temp-transaction-5069741586822788478.tmp
25-5-17 10:16:38.337 | InternalEventBu | Test worker    | INFO : Event bus 'LocalEventBus': Posting event UpUploadFileSyncExternalEvent (org.syncany.operations.daemon.messages.UpUploadFileSyncExternalEvent@65355ede) ...
25-5-17 10:16:38.337 | RemoteTransacti | Test worker    | INFO : - Uploading remote transaction file RemoteFile[name=transaction-42b781a8] ...
25-5-17 10:16:38.338 | AsyncIndexer    | AsyncI/syncany | INFO : Stopping indexing. Signal end of stream with empty databaseversion
25-5-17 10:16:38.338 | RemoteTransacti | Test worker    | INFO : - Starting to upload data in commit.
25-5-17 10:16:38.338 | InternalEventBu | Test worker    | INFO : Event bus 'LocalEventBus': Posting event UpUploadFileInTransactionSyncExternalEvent (org.syncany.operations.daemon.messages.UpUploadFileInTransactionSyncExternalEvent@1e7d645b) ...
25-5-17 10:16:38.338 | RemoteTransacti | Test worker    | INFO : - Uploading /tmp/syncanytest/syncany-170525101614951-62348-client-A/.syncany/cache/multichunk-7acc25b1e796295943b641ade8c4077636820919 to temp. file RemoteFile[name=temp-KDzVJ-multichunk-7acc25b1e796295943b641ade8c4077636820919] ...
25-5-17 10:16:38.340 | InternalEventBu | Test worker    | INFO : Event bus 'LocalEventBus': Posting event UpUploadFileInTransactionSyncExternalEvent (org.syncany.operations.daemon.messages.UpUploadFileInTransactionSyncExternalEvent@2ceffa62) ...
25-5-17 10:16:38.340 | RemoteTransacti | Test worker    | INFO : - Uploading /tmp/syncanytest/syncany-170525101614951-62348-client-A/.syncany/cache/database-A-0000000001 to temp. file RemoteFile[name=temp-eHEjv-database-A-0000000001] ...
25-5-17 10:16:38.340 | RemoteTransacti | Test worker    | INFO : - Moving temp. file RemoteFile[name=temp-KDzVJ-multichunk-7acc25b1e796295943b641ade8c4077636820919] to final location RemoteFile[name=multichunk-7acc25b1e796295943b641ade8c4077636820919] ...
25-5-17 10:16:38.340 | RemoteTransacti | Test worker    | INFO : - Moving temp. file RemoteFile[name=temp-eHEjv-database-A-0000000001] to final location RemoteFile[name=database-A-0000000001] ...
25-5-17 10:16:38.340 | RemoteTransacti | Test worker    | INFO : - Deleting remote transaction file RemoteFile[name=transaction-42b781a8] ...
25-5-17 10:16:38.341 | RemoteTransacti | Test worker    | INFO : END of TX.commmit(): Succesfully committed transaction.
25-5-17 10:16:38.341 | RemoteTransacti | Test worker    | INFO : END of TX.delTemp(): Sucessfully deleted final files.
25-5-17 10:16:38.341 | UpOperation     | Test worker    | INFO : Persisting local SQL database (new database version A/(A1)/T=1495707398328) ...
25-5-17 10:16:38.343 | UpOperation     | Test worker    | INFO : Removing DIRTY database versions from database ...
25-5-17 10:16:38.349 | UpOperation     | Test worker    | INFO : Adding database version to result changes:DatabaseVersion [header=A/(A1)/T=1495707398328, chunks=2, multiChunks=1, fileContents=1, fileHistories=1]
25-5-17 10:16:38.349 | UpOperation     | Test worker    | INFO : Committing local database.
25-5-17 10:16:38.349 | UpOperation     | Test worker    | FINE : Waiting for new database version.
25-5-17 10:16:38.349 | UpOperation     | Test worker    | FINE : Took new database version: DatabaseVersion [header=UnknownMachine/()/T=1495707398338, chunks=0, multiChunks=0, fileContents=0, fileHistories=0]
25-5-17 10:16:38.349 | UpOperation     | Test worker    | INFO : Sync up done.
25-5-17 10:16:38.359 | ActionFileHandl | Test worker    | INFO : Finishing action for RemoteFile[name=action-up-A-1495707398166] ...
25-5-17 10:16:38.365 | ActionFileHandl | Test worker    | INFO : Deleting action file: RemoteFile[name=action-up-A-1495707398166]
25-5-17 10:16:38.365 | AbstractTransfe | Test worker    | INFO : Cleaning own old action files ...
25-5-17 10:16:38.366 | Cache           | Test worker    | INFO : Cache size okay (1025 KB), no need to clean (keep size is 500 MB)
25-5-17 10:16:38.366 | InternalEventBu | Test worker    | INFO : Event bus 'LocalEventBus': Posting event UpEndSyncExternalEvent (org.syncany.operations.daemon.messages.UpEndSyncExternalEvent@c3cc18e) ...
25-5-17 10:16:38.571 | org.syncany.plu | Test worker    | FINE : Validating required fields
25-5-17 10:16:38.571 | TransferManager | Test worker    | INFO : Building LocalTransferManager from config 'syncany-170525101614951-62348-client-B' ...
25-5-17 10:16:38.572 | TransferManager | Test worker    | INFO : - With feature ReadAfterWriteConsistent
25-5-17 10:16:38.572 | TransferManager | Test worker    | INFO : - With feature Retriable
25-5-17 10:16:38.572 | TransferManager | Test worker    | FINE : - Checking if selected features supported ...
25-5-17 10:16:38.572 | TransferManager | Test worker    | FINE : - Checking for duplicate features ...
25-5-17 10:16:38.572 | TransferManager | Test worker    | FINE : - Checking required feature TransactionAware in LocalTransferManager ...
25-5-17 10:16:38.572 | TransferManager | Test worker    | FINE : - Checking required feature Retriable in LocalTransferManager ...
25-5-17 10:16:38.576 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature ReadAfterWriteConsistent
25-5-17 10:16:38.577 | TransferManager | Test worker    | FINE : - Wrapping TransferManager LocalTransferManager in RetriableFeatureTransferManager
25-5-17 10:16:38.577 | org.syncany.plu | Test worker    | FINE : Validating required fields
25-5-17 10:16:38.578 | TransferManager | Test worker    | INFO : Building LocalTransferManager from config 'syncany-170525101614951-62348-client-B' ...
25-5-17 10:16:38.578 | TransferManager | Test worker    | INFO : - With feature ReadAfterWriteConsistent
25-5-17 10:16:38.578 | TransferManager | Test worker    | INFO : - With feature Retriable
25-5-17 10:16:38.580 | TransferManager | Test worker    | INFO : - With feature PathAware
25-5-17 10:16:38.580 | TransferManager | Test worker    | INFO : - With feature TransactionAware
25-5-17 10:16:38.580 | TransferManager | Test worker    | FINE : - Checking if selected features supported ...
25-5-17 10:16:38.580 | TransferManager | Test worker    | FINE : - Checking for duplicate features ...
25-5-17 10:16:38.580 | TransferManager | Test worker    | FINE : - Checking required feature TransactionAware in LocalTransferManager ...
25-5-17 10:16:38.580 | TransferManager | Test worker    | FINE : - Checking required feature Retriable in LocalTransferManager ...
25-5-17 10:16:38.580 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature ReadAfterWriteConsistent
25-5-17 10:16:38.580 | TransferManager | Test worker    | FINE : - Wrapping TransferManager LocalTransferManager in RetriableFeatureTransferManager
25-5-17 10:16:38.581 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature PathAware
25-5-17 10:16:38.581 | TransferManager | Test worker    | FINE : - Wrapping TransferManager RetriableFeatureTransferManager in TransactionAwareFeatureTransferManager
25-5-17 10:16:38.610 | hsqldb.db.HSQLD | Test worker    | INFO : Checkpoint start
25-5-17 10:16:38.611 | hsqldb.db.HSQLD | Test worker    | INFO : checkpointClose start
25-5-17 10:16:38.623 | hsqldb.db.HSQLD | Test worker    | FINE : log close size: 0
25-5-17 10:16:38.631 | hsqldb.db.HSQLD | Test worker    | INFO : checkpointClose end
25-5-17 10:16:38.631 | hsqldb.db.HSQLD | Test worker    | INFO : Checkpoint end - txts: 1
25-5-17 10:16:38.641 | DatabaseConnect | Test worker    | INFO : Found 0 tables.
25-5-17 10:16:38.641 | DatabaseConnect | Test worker    | INFO : Database has no tables. Creating tables from script.create.all.sql
25-5-17 10:16:38.642 | SqlRunner       | Test worker    | INFO : SQL (comment): -- Tables
25-5-17 10:16:38.642 | SqlRunner       | Test worker    | INFO : SQL:  CREATE CACHED TABLE IF NOT EXISTS databaseversion ( id int NOT NULL IDENTITY, status varchar(45) NOT NULL, localtime datetime NOT NULL, client varchar(45) NOT NULL, vectorclock_serialized varchar(1024) NOT NULL, UNIQUE (vectorclock_serialized) ); 
25-5-17 10:16:38.646 | SqlRunner       | Test worker    | INFO : SQL:  CREATE CACHED TABLE IF NOT EXISTS  chunk ( checksum varchar(40) NOT NULL, databaseversion_id int NOT NULL, size bigint NOT NULL, PRIMARY KEY (checksum), FOREIGN KEY (databaseversion_id) REFERENCES databaseversion (id) ON DELETE NO ACTION ON UPDATE NO ACTION ); 
25-5-17 10:16:38.650 | SqlRunner       | Test worker    | INFO : SQL:  CREATE CACHED TABLE IF NOT EXISTS  databaseversion_vectorclock ( databaseversion_id int NOT NULL, client varchar(45) NOT NULL, logicaltime int NOT NULL, PRIMARY KEY (databaseversion_id, client), FOREIGN KEY (databaseversion_id) REFERENCES databaseversion (id) ON DELETE NO ACTION ON UPDATE NO ACTION ); 
25-5-17 10:16:38.652 | SqlRunner       | Test worker    | INFO : SQL:  CREATE CACHED TABLE IF NOT EXISTS  filecontent ( checksum varchar(40) NOT NULL, databaseversion_id int NOT NULL, size bigint NOT NULL, PRIMARY KEY (checksum), FOREIGN KEY (databaseversion_id) REFERENCES databaseversion (id) ON DELETE NO ACTION ON UPDATE NO ACTION ); 
25-5-17 10:16:38.655 | SqlRunner       | Test worker    | INFO : SQL:  CREATE CACHED TABLE IF NOT EXISTS  filecontent_chunk ( filecontent_checksum varchar(40) NOT NULL, chunk_checksum varchar(40) NOT NULL, num int NOT NULL, PRIMARY KEY (filecontent_checksum, chunk_checksum, num), FOREIGN KEY (filecontent_checksum) REFERENCES filecontent (checksum) ON DELETE NO ACTION ON UPDATE NO ACTION, FOREIGN KEY (chunk_checksum) REFERENCES chunk (checksum) ON DELETE NO ACTION ON UPDATE NO ACTION ); 
25-5-17 10:16:38.680 | SqlRunner       | Test worker    | INFO : SQL:  CREATE CACHED TABLE IF NOT EXISTS  filehistory ( id varchar(40) NOT NULL, databaseversion_id int NOT NULL, PRIMARY KEY (id, databaseversion_id), FOREIGN KEY (databaseversion_id) REFERENCES databaseversion (id) ON DELETE NO ACTION ON UPDATE NO ACTION ); 
25-5-17 10:16:38.683 | SqlRunner       | Test worker    | INFO : SQL:  CREATE CACHED TABLE IF NOT EXISTS  fileversion ( filehistory_id varchar(40) NOT NULL, version int NOT NULL, databaseversion_id int NOT NULL, path varchar(1024) NOT NULL, type varchar(45) NOT NULL, status varchar(45) NOT NULL, size bigint NOT NULL, lastmodified datetime NOT NULL, linktarget varchar(1024), filecontent_checksum varchar(40) DEFAULT NULL, updated datetime NOT NULL, posixperms varchar(45) DEFAULT NULL, dosattrs varchar(45) DEFAULT NULL, PRIMARY KEY (filehistory_id, version, databaseversion_id), FOREIGN KEY (filehistory_id, databaseversion_id) REFERENCES filehistory (id, databaseversion_id) ON DELETE NO ACTION ON UPDATE NO ACTION, FOREIGN KEY (filecontent_checksum) REFERENCES filecontent (checksum) ON DELETE NO ACTION ON UPDATE NO ACTION ); 
25-5-17 10:16:38.686 | SqlRunner       | Test worker    | INFO : SQL:  CREATE CACHED TABLE IF NOT EXISTS  multichunk ( id varchar(40) NOT NULL, databaseversion_id int NOT NULL, size bigint NOT NULL, PRIMARY KEY (id), FOREIGN KEY (databaseversion_id) REFERENCES databaseversion (id) ON DELETE NO ACTION ON UPDATE NO ACTION ); 
25-5-17 10:16:38.689 | SqlRunner       | Test worker    | INFO : SQL:  CREATE CACHED TABLE IF NOT EXISTS  multichunk_chunk ( multichunk_id varchar(40) NOT NULL, chunk_checksum varchar(40) NOT NULL, PRIMARY KEY (multichunk_id, chunk_checksum), FOREIGN KEY (multichunk_id) REFERENCES multichunk (id) ON DELETE NO ACTION ON UPDATE NO ACTION, FOREIGN KEY (chunk_checksum) REFERENCES chunk (checksum) ON DELETE NO ACTION ON UPDATE NO ACTION ); 
25-5-17 10:16:38.692 | SqlRunner       | Test worker    | INFO : SQL:  CREATE CACHED TABLE IF NOT EXISTS  multichunk_muddy ( id varchar(40) NOT NULL, machine_name varchar(255) NOT NULL, machine_version int NOT NULL, PRIMARY KEY (id) ); 
25-5-17 10:16:38.695 | SqlRunner       | Test worker    | INFO : SQL:  CREATE CACHED TABLE IF NOT EXISTS  known_databases ( id int NOT NULL IDENTITY, client varchar(45) NOT NULL, filenumber int NOT NULL, UNIQUE (client, filenumber) ); 
25-5-17 10:16:38.697 | SqlRunner       | Test worker    | INFO : SQL:  CREATE CACHED TABLE IF NOT EXISTS  general_settings ( key varchar(255) NOT NULL, value varchar(255) NOT NULL, PRIMARY KEY (key) ); 
25-5-17 10:16:38.700 | SqlRunner       | Test worker    | INFO : SQL (comment): -- Non-primary indices
25-5-17 10:16:38.700 | SqlRunner       | Test worker    | INFO : SQL:   CREATE INDEX idx_databaseversion_status ON databaseversion (status); 
25-5-17 10:16:38.700 | hsqldb.db.HSQLD | Test worker    | INFO : dataFileCache open start
25-5-17 10:16:38.703 | hsqldb.db.HSQLD | Test worker    | INFO : dataFileCache open end
25-5-17 10:16:38.705 | SqlRunner       | Test worker    | INFO : SQL: CREATE INDEX idx_databaseversion_vectorclock_serialized ON databaseversion (vectorclock_serialized); 
25-5-17 10:16:38.707 | SqlRunner       | Test worker    | INFO : SQL: CREATE INDEX idx_fileversion_path ON fileversion (path); 
25-5-17 10:16:38.710 | SqlRunner       | Test worker    | INFO : SQL: CREATE INDEX idx_fileversion_status ON fileversion (status); 
25-5-17 10:16:38.712 | SqlRunner       | Test worker    | INFO : SQL: CREATE INDEX idx_fileversion_filecontent_checksum ON fileversion (filecontent_checksum); 
25-5-17 10:16:38.715 | SqlRunner       | Test worker    | INFO : SQL (comment): -- Views
25-5-17 10:16:38.715 | SqlRunner       | Test worker    | INFO : SQL:    CREATE VIEW databaseversion_master AS SELECT dbv.*, vc.logicaltime as client_version FROM databaseversion dbv JOIN databaseversion_vectorclock vc on dbv.id=vc.databaseversion_id and dbv.client=vc.client WHERE dbv.status='MASTER'; 
25-5-17 10:16:38.718 | SqlRunner       | Test worker    | INFO : SQL:  CREATE VIEW fileversion_master AS SELECT fv0.* FROM fileversion fv0 JOIN databaseversion dbv ON fv0.databaseversion_id=dbv.id AND dbv.status='MASTER'; 
25-5-17 10:16:38.726 | SqlRunner       | Test worker    | INFO : SQL:  CREATE VIEW fileversion_master_maxversion AS SELECT DISTINCT filehistory_id, MAX(version) version FROM fileversion_master GROUP BY filehistory_id; 
25-5-17 10:16:38.749 | SqlRunner       | Test worker    | INFO : SQL:  CREATE VIEW fileversion_master_last AS SELECT fv.* FROM fileversion_master_maxversion fvmax JOIN fileversion_master fv ON fvmax.filehistory_id=fv.filehistory_id AND fvmax.version=fv.version WHERE fv.status<>'DELETED'; 
25-5-17 10:16:38.753 | SqlRunner       | Test worker    | INFO : SQL (comment): -- Full Views
25-5-17 10:16:38.754 | SqlRunner       | Test worker    | INFO : SQL:    create view filehistory_full as select dbv.status as databaseversion_status, dbv.localtime as databaseversion_localtime, dbv.client as databaseversion_client, dbv.vectorclock_serialized as databaseversion_vectorclock_serialized, fh.* from databaseversion dbv join filehistory fh on dbv.id=fh.databaseversion_id; 
25-5-17 10:16:38.757 | SqlRunner       | Test worker    | INFO : SQL:  create view fileversion_full as select fhf.databaseversion_status, fhf.databaseversion_localtime, fhf.databaseversion_client, fhf.databaseversion_vectorclock_serialized, fv.* from filehistory_full fhf join fileversion fv on fhf.id=fv.filehistory_id and fhf.databaseversion_id=fv.databaseversion_id; 
25-5-17 10:16:38.760 | SqlRunner       | Test worker    | INFO : SQL (comment): -- Functions
25-5-17 10:16:38.760 | SqlRunner       | Test worker    | INFO : SQL (new delimiter): end;
25-5-17 10:16:38.761 | SqlRunner       | Test worker    | INFO : SQL:     create function substr_count(haystack varchar(255), needle varchar(255)) returns integer begin atomic declare strCount integer; declare lastIndex integer;  set strCount = 0; set lastIndex = 1;  while lastIndex <> 0 do set lastIndex = locate(needle, haystack, lastIndex);  if lastIndex <> 0 then set strCount = strCount + 1; set lastIndex = lastIndex + length(needle); end if; end while;  return strCount; end; 
25-5-17 10:16:38.768 | UpOperation     | Test worker    | INFO : 
25-5-17 10:16:38.768 | UpOperation     | Test worker    | INFO : Running 'Sync up' at client B ...
25-5-17 10:16:38.768 | UpOperation     | Test worker    | INFO : --------------------------------------------
25-5-17 10:16:38.768 | InternalEventBu | Test worker    | INFO : Event bus 'LocalEventBus': Posting event UpStartSyncExternalEvent (org.syncany.operations.daemon.messages.UpStartSyncExternalEvent@2bb1171b) ...
25-5-17 10:16:38.769 | DatabaseConnect | Test worker    | INFO : Found 12 tables.
25-5-17 10:16:38.769 | StatusOperation | Test worker    | INFO : 
25-5-17 10:16:38.769 | StatusOperation | Test worker    | INFO : Running 'Status' at client B ...
25-5-17 10:16:38.769 | StatusOperation | Test worker    | INFO : --------------------------------------------
25-5-17 10:16:38.769 | StatusOperation | Test worker    | INFO : Querying current file tree from database ...
25-5-17 10:16:38.769 | InternalEventBu | Test worker    | INFO : Event bus 'LocalEventBus': Posting event StatusStartSyncExternalEvent (org.syncany.operations.daemon.messages.StatusStartSyncExternalEvent@5e5846f3) ...
25-5-17 10:16:38.770 | StatusOperation | Test worker    | INFO : Analyzing local folder /tmp/syncanytest/syncany-170525101614951-62348-client-B ...
25-5-17 10:16:38.771 | StatusOperation | Test worker    | FINE : - Ignoring file (syncany app-related): .syncany
25-5-17 10:16:38.772 | StatusOperation | Test worker    | FINE : - New file: A-file1.jpg
25-5-17 10:16:38.772 | InternalEventBu | Test worker    | INFO : Event bus 'LocalEventBus': Posting event StatusEndSyncExternalEvent (org.syncany.operations.daemon.messages.StatusEndSyncExternalEvent@763d47eb) ...
25-5-17 10:16:38.773 | AbstractTransfe | Test worker    | INFO : Looking for other running remote operations ...
25-5-17 10:16:38.773 | UpOperation     | Test worker    | INFO : Force (--force-upload) is enabled, ignoring potential remote changes.
25-5-17 10:16:38.773 | ActionFileHandl | Test worker    | INFO : Starting action for RemoteFile[name=action-up-B-1495707398581] ...
25-5-17 10:16:38.773 | ActionFileHandl | Test worker    | INFO : Uploading action file: RemoteFile[name=action-up-B-1495707398581]
25-5-17 10:16:38.774 | ActionFileHandl | Test worker    | INFO : Scheduling action renewal task for every 2 minutes, for RemoteFile[name=action-up-B-1495707398581] ...
25-5-17 10:16:38.775 | DatabaseConnect | Test worker    | INFO : Found 12 tables.
25-5-17 10:16:38.786 | TransactionAwar | Test worker    | INFO : Done rolling back previous transactions.
25-5-17 10:16:38.787 | AsyncIndexer    | AsyncI/syncany | INFO : Starting Indexing.
25-5-17 10:16:38.787 | InternalEventBu | AsyncI/syncany | INFO : Event bus 'LocalEventBus': Posting event UpIndexStartSyncExternalEvent (org.syncany.operations.daemon.messages.UpIndexStartSyncExternalEvent@490a0fee) ...
25-5-17 10:16:38.787 | Indexer         | AsyncI/syncany | FINE : - Looking for deleted files ...
25-5-17 10:16:38.787 | Indexer         | AsyncI/syncany | FINE : - +File /tmp/syncanytest/syncany-170525101614951-62348-client-B/A-file1.jpg
25-5-17 10:16:38.787 | Indexer         | AsyncI/syncany | FINE : - +FileContent: /tmp/syncanytest/syncany-170525101614951-62348-client-B/A-file1.jpg
25-5-17 10:16:38.807 | Indexer         | AsyncI/syncany | FINE : - Chunk new: b85cc0679b71ac705c1890601694ceaf9d7c2e78
25-5-17 10:16:38.807 | Indexer         | AsyncI/syncany | FINE : - +MultiChunk 555e41855a53e63f84524887169c8ca1c0976a66
25-5-17 10:16:38.813 | Indexer         | AsyncI/syncany | FINE : - Chunk > MultiChunk: b85cc0679b71ac705c1890601694ceaf9d7c2e78 > 555e41855a53e63f84524887169c8ca1c0976a66
25-5-17 10:16:38.813 | Indexer         | AsyncI/syncany | FINE : - Chunk > FileContent: b85cc0679b71ac705c1890601694ceaf9d7c2e78 > /tmp/syncanytest/syncany-170525101614951-62348-client-B/A-file1.jpg
25-5-17 10:16:38.830 | Indexer         | AsyncI/syncany | FINE : - Chunk new: da9d2e97861f13f0097cb21bf5b68b64aab79be3
25-5-17 10:16:38.843 | Indexer         | AsyncI/syncany | FINE : - Chunk > MultiChunk: da9d2e97861f13f0097cb21bf5b68b64aab79be3 > 555e41855a53e63f84524887169c8ca1c0976a66
25-5-17 10:16:38.843 | Indexer         | AsyncI/syncany | FINE : - Chunk > FileContent: da9d2e97861f13f0097cb21bf5b68b64aab79be3 > /tmp/syncanytest/syncany-170525101614951-62348-client-B/A-file1.jpg
25-5-17 10:16:38.844 | Indexer         | AsyncI/syncany | FINE : - /File: A-file1.jpg (checksum 7edcac250cf9fd7b1f930a7f33b6fd9cd96af7fa)
25-5-17 10:16:38.850 | Indexer         | AsyncI/syncany | FINE :    * No old file history found, starting new history (path: A-file1.jpg, checksum: 7edcac250cf9fd7b1f930a7f33b6fd9cd96af7fa)
25-5-17 10:16:38.850 | FileVersionComp | AsyncI/syncany | INFO :      - [DELETED]: Local file DIFFERS from file version, actual file is NULL, for file A-file1.jpg
25-5-17 10:16:38.851 | Indexer         | AsyncI/syncany | INFO :    * Added file version:    FileVersion [version=1, path=A-file1.jpg, type=FILE, status=NEW, size=1048576, lastModified=Thu May 25 10:16:38 UTC 2017, linkTarget=null, checksum=7edcac250cf9fd7b1f930a7f33b6fd9cd96af7fa, updated=Thu May 25 10:16:38 UTC 2017, posixPermissions=rw-rw-r--, dosAttributes=--a-]
25-5-17 10:16:38.851 | Indexer         | AsyncI/syncany | INFO :      based on file version: null
25-5-17 10:16:38.851 | InternalEventBu | AsyncI/syncany | INFO : Event bus 'LocalEventBus': Posting event UpIndexChangesDetectedSyncExternalEvent (org.syncany.operations.daemon.messages.UpIndexChangesDetectedSyncExternalEvent@11d6cd64) ...
25-5-17 10:16:38.851 | Indexer         | AsyncI/syncany | FINE : - /MultiChunk 555e41855a53e63f84524887169c8ca1c0976a66
25-5-17 10:16:38.851 | InternalEventBu | AsyncI/syncany | INFO : Event bus 'LocalEventBus': Posting event UpIndexEndSyncExternalEvent (org.syncany.operations.daemon.messages.UpIndexEndSyncExternalEvent@744498b4) ...
25-5-17 10:16:38.851 | Indexer         | AsyncI/syncany | FINE : Processed new database version: DatabaseVersion [header=UnknownMachine/()/T=1495707398787, chunks=2, multiChunks=1, fileContents=1, fileHistories=1]
25-5-17 10:16:38.852 | UpOperation     | Test worker    | INFO : No DIRTY data found in database (no dirty databases); Nothing to do here.
25-5-17 10:16:38.852 | UpOperation     | Test worker    | INFO : Last vector clock was: ()
25-5-17 10:16:38.852 | UpOperation     | Test worker    | INFO : Uploading new multichunks ...
25-5-17 10:16:38.853 | UpOperation     | Test worker    | INFO : - Uploading multichunk 555e41855a53e63f84524887169c8ca1c0976a66 from /tmp/syncanytest/syncany-170525101614951-62348-client-B/.syncany/cache/multichunk-555e41855a53e63f84524887169c8ca1c0976a66 to RemoteFile[name=multichunk-555e41855a53e63f84524887169c8ca1c0976a66] ...
25-5-17 10:16:38.853 | RemoteTransacti | Test worker    | INFO : - Adding file to TX for UPLOAD: /tmp/syncanytest/syncany-170525101614951-62348-client-B/.syncany/cache/multichunk-555e41855a53e63f84524887169c8ca1c0976a66 -> Temp. remote file: RemoteFile[name=temp-JCidc-multichunk-555e41855a53e63f84524887169c8ca1c0976a66], final location: RemoteFile[name=multichunk-555e41855a53e63f84524887169c8ca1c0976a66]
25-5-17 10:16:38.853 | UpOperation     | Test worker    | INFO : Uploading database: DatabaseVersion [header=B/(B1)/T=1495707398852, chunks=2, multiChunks=1, fileContents=1, fileHistories=1]
25-5-17 10:16:38.853 | UpOperation     | Test worker    | INFO : Saving local delta database, version B/(B1)/T=1495707398852 to file /tmp/syncanytest/syncany-170525101614951-62348-client-B/.syncany/cache/database-B-0000000001 ... 
25-5-17 10:16:38.853 | UpOperation     | Test worker    | INFO : - Saving database to /tmp/syncanytest/syncany-170525101614951-62348-client-B/.syncany/cache/database-B-0000000001 ...
25-5-17 10:16:38.854 | UpOperation     | Test worker    | INFO : - Uploading local delta database file ...
25-5-17 10:16:38.854 | UpOperation     | Test worker    | INFO : - Uploading /tmp/syncanytest/syncany-170525101614951-62348-client-B/.syncany/cache/database-B-0000000001 to RemoteFile[name=database-B-0000000001] ...
25-5-17 10:16:38.854 | RemoteTransacti | Test worker    | INFO : - Adding file to TX for UPLOAD: /tmp/syncanytest/syncany-170525101614951-62348-client-B/.syncany/cache/database-B-0000000001 -> Temp. remote file: RemoteFile[name=temp-wDVno-database-B-0000000001], final location: RemoteFile[name=database-B-0000000001]
25-5-17 10:16:38.854 | UpOperation     | Test worker    | INFO : Adding shutdown hook (to allow resuming the upload) ...
25-5-17 10:16:38.855 | RemoteTransacti | Test worker    | INFO : Starting TX.commit() ...
25-5-17 10:16:38.855 | InternalEventBu | AsyncI/syncany | INFO : Event bus 'LocalEventBus': Posting event UpIndexMidSyncExternalEvent (org.syncany.operations.daemon.messages.UpIndexMidSyncExternalEvent@53d497bd) ...
25-5-17 10:16:38.856 | RemoteTransacti | Test worker    | INFO : Wrote transaction manifest to temporary file: /tmp/syncanytest/syncany-170525101614951-62348-client-B/.syncany/cache/temp-transaction-1250465020429571647.tmp
25-5-17 10:16:38.857 | InternalEventBu | Test worker    | INFO : Event bus 'LocalEventBus': Posting event UpUploadFileSyncExternalEvent (org.syncany.operations.daemon.messages.UpUploadFileSyncExternalEvent@7f40af89) ...
25-5-17 10:16:38.857 | RemoteTransacti | Test worker    | INFO : - Uploading remote transaction file RemoteFile[name=transaction-382da663] ...
25-5-17 10:16:38.857 | RemoteTransacti | Test worker    | INFO : - Starting to upload data in commit.
25-5-17 10:16:38.857 | InternalEventBu | Test worker    | INFO : Event bus 'LocalEventBus': Posting event UpUploadFileInTransactionSyncExternalEvent (org.syncany.operations.daemon.messages.UpUploadFileInTransactionSyncExternalEvent@391a7fd2) ...
25-5-17 10:16:38.857 | RemoteTransacti | Test worker    | INFO : - Uploading /tmp/syncanytest/syncany-170525101614951-62348-client-B/.syncany/cache/multichunk-555e41855a53e63f84524887169c8ca1c0976a66 to temp. file RemoteFile[name=temp-JCidc-multichunk-555e41855a53e63f84524887169c8ca1c0976a66] ...
25-5-17 10:16:38.859 | InternalEventBu | Test worker    | INFO : Event bus 'LocalEventBus': Posting event UpUploadFileInTransactionSyncExternalEvent (org.syncany.operations.daemon.messages.UpUploadFileInTransactionSyncExternalEvent@3bfa1caf) ...
25-5-17 10:16:38.859 | RemoteTransacti | Test worker    | INFO : - Uploading /tmp/syncanytest/syncany-170525101614951-62348-client-B/.syncany/cache/database-B-0000000001 to temp. file RemoteFile[name=temp-wDVno-database-B-0000000001] ...
25-5-17 10:16:38.863 | RemoteTransacti | Test worker    | INFO : - Moving temp. file RemoteFile[name=temp-JCidc-multichunk-555e41855a53e63f84524887169c8ca1c0976a66] to final location RemoteFile[name=multichunk-555e41855a53e63f84524887169c8ca1c0976a66] ...
25-5-17 10:16:38.863 | RemoteTransacti | Test worker    | INFO : - Moving temp. file RemoteFile[name=temp-wDVno-database-B-0000000001] to final location RemoteFile[name=database-B-0000000001] ...
25-5-17 10:16:38.864 | RemoteTransacti | Test worker    | INFO : - Deleting remote transaction file RemoteFile[name=transaction-382da663] ...
25-5-17 10:16:38.864 | AsyncIndexer    | AsyncI/syncany | INFO : Stopping indexing. Signal end of stream with empty databaseversion
25-5-17 10:16:38.864 | RemoteTransacti | Test worker    | INFO : END of TX.commmit(): Succesfully committed transaction.
25-5-17 10:16:38.864 | RemoteTransacti | Test worker    | INFO : END of TX.delTemp(): Sucessfully deleted final files.
25-5-17 10:16:38.864 | UpOperation     | Test worker    | INFO : Persisting local SQL database (new database version B/(B1)/T=1495707398852) ...
25-5-17 10:16:38.870 | UpOperation     | Test worker    | INFO : Removing DIRTY database versions from database ...
25-5-17 10:16:38.890 | UpOperation     | Test worker    | INFO : Adding database version to result changes:DatabaseVersion [header=B/(B1)/T=1495707398852, chunks=2, multiChunks=1, fileContents=1, fileHistories=1]
25-5-17 10:16:38.891 | UpOperation     | Test worker    | INFO : Committing local database.
25-5-17 10:16:38.891 | UpOperation     | Test worker    | FINE : Waiting for new database version.
25-5-17 10:16:38.891 | UpOperation     | Test worker    | FINE : Took new database version: DatabaseVersion [header=UnknownMachine/()/T=1495707398864, chunks=0, multiChunks=0, fileContents=0, fileHistories=0]
25-5-17 10:16:38.891 | UpOperation     | Test worker    | INFO : Sync up done.
25-5-17 10:16:38.893 | ActionFileHandl | Test worker    | INFO : Finishing action for RemoteFile[name=action-up-B-1495707398581] ...
25-5-17 10:16:38.904 | ActionFileHandl | Test worker    | INFO : Deleting action file: RemoteFile[name=action-up-B-1495707398581]
25-5-17 10:16:38.904 | AbstractTransfe | Test worker    | INFO : Cleaning own old action files ...
25-5-17 10:16:38.908 | Cache           | Test worker    | INFO : Cache size okay (1025 KB), no need to clean (keep size is 500 MB)
25-5-17 10:16:38.908 | InternalEventBu | Test worker    | INFO : Event bus 'LocalEventBus': Posting event UpEndSyncExternalEvent (org.syncany.operations.daemon.messages.UpEndSyncExternalEvent@7c9a2d6) ...
25-5-17 10:16:38.908 | org.syncany.plu | Test worker    | FINE : Validating required fields
25-5-17 10:16:38.909 | TransferManager | Test worker    | INFO : Building LocalTransferManager from config 'syncany-170525101614951-62348-client-B' ...
25-5-17 10:16:38.909 | TransferManager | Test worker    | INFO : - With feature ReadAfterWriteConsistent
25-5-17 10:16:38.909 | TransferManager | Test worker    | INFO : - With feature Retriable
25-5-17 10:16:38.909 | TransferManager | Test worker    | FINE : - Checking if selected features supported ...
25-5-17 10:16:38.909 | TransferManager | Test worker    | FINE : - Checking for duplicate features ...
25-5-17 10:16:38.909 | TransferManager | Test worker    | FINE : - Checking required feature TransactionAware in LocalTransferManager ...
25-5-17 10:16:38.909 | TransferManager | Test worker    | FINE : - Checking required feature Retriable in LocalTransferManager ...
25-5-17 10:16:38.909 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature ReadAfterWriteConsistent
25-5-17 10:16:38.909 | TransferManager | Test worker    | FINE : - Wrapping TransferManager LocalTransferManager in RetriableFeatureTransferManager
25-5-17 10:16:38.909 | org.syncany.plu | Test worker    | FINE : Validating required fields
25-5-17 10:16:38.909 | TransferManager | Test worker    | INFO : Building LocalTransferManager from config 'syncany-170525101614951-62348-client-B' ...
25-5-17 10:16:38.909 | TransferManager | Test worker    | INFO : - With feature ReadAfterWriteConsistent
25-5-17 10:16:38.909 | TransferManager | Test worker    | INFO : - With feature Retriable
25-5-17 10:16:38.909 | TransferManager | Test worker    | INFO : - With feature PathAware
25-5-17 10:16:38.909 | TransferManager | Test worker    | INFO : - With feature TransactionAware
25-5-17 10:16:38.909 | TransferManager | Test worker    | FINE : - Checking if selected features supported ...
25-5-17 10:16:38.909 | TransferManager | Test worker    | FINE : - Checking for duplicate features ...
25-5-17 10:16:38.909 | TransferManager | Test worker    | FINE : - Checking required feature TransactionAware in LocalTransferManager ...
25-5-17 10:16:38.909 | TransferManager | Test worker    | FINE : - Checking required feature Retriable in LocalTransferManager ...
25-5-17 10:16:38.909 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature ReadAfterWriteConsistent
25-5-17 10:16:38.909 | TransferManager | Test worker    | FINE : - Wrapping TransferManager LocalTransferManager in RetriableFeatureTransferManager
25-5-17 10:16:38.909 | TransferManager | Test worker    | INFO : - SKIPPING unsupported optional feature PathAware
25-5-17 10:16:38.909 | TransferManager | Test worker    | FINE : - Wrapping TransferManager RetriableFeatureTransferManager in TransactionAwareFeatureTransferManager
25-5-17 10:16:38.929 | DatabaseConnect | Test worker    | INFO : Found 12 tables.
25-5-17 10:16:38.929 | DownOperation   | Test worker    | INFO : 
25-5-17 10:16:38.929 | DownOperation   | Test worker    | INFO : Running 'Sync down' at client B ...
25-5-17 10:16:38.929 | DownOperation   | Test worker    | INFO : --------------------------------------------
25-5-17 10:16:38.929 | InternalEventBu | Test worker    | INFO : Event bus 'LocalEventBus': Posting event DownStartSyncExternalEvent (org.syncany.operations.daemon.messages.DownStartSyncExternalEvent@2f1e6f73) ...
25-5-17 10:16:38.929 | AbstractTransfe | Test worker    | INFO : Looking for other running remote operations ...
25-5-17 10:16:38.930 | DatabaseConnect | Test worker    | INFO : Found 12 tables.
25-5-17 10:16:38.930 | LsRemoteOperati | Test worker    | INFO : 
25-5-17 10:16:38.930 | LsRemoteOperati | Test worker    | INFO : Running 'Remote Status' at client B ...
25-5-17 10:16:38.930 | LsRemoteOperati | Test worker    | INFO : --------------------------------------------
25-5-17 10:16:38.930 | InternalEventBu | Test worker    | INFO : Event bus 'LocalEventBus': Posting event LsRemoteStartSyncExternalEvent (org.syncany.operations.daemon.messages.LsRemoteStartSyncExternalEvent@723639bb) ...
25-5-17 10:16:38.930 | LsRemoteOperati | Test worker    | INFO : Retrieving remote database list.
25-5-17 10:16:38.931 | LsRemoteOperati | Test worker    | INFO : - Remote database database-B-0000000001 is already known (in local database). Ignoring.
25-5-17 10:16:38.931 | LsRemoteOperati | Test worker    | INFO : - Remote database database-A-0000000001 is new.
25-5-17 10:16:38.931 | InternalEventBu | Test worker    | INFO : Event bus 'LocalEventBus': Posting event LsRemoteEndSyncExternalEvent (org.syncany.operations.daemon.messages.LsRemoteEndSyncExternalEvent@6f6e4b5a) ...
25-5-17 10:16:38.931 | InternalEventBu | Test worker    | INFO : Event bus 'LocalEventBus': Posting event DownChangesDetectedSyncExternalEvent (org.syncany.operations.daemon.messages.DownChangesDetectedSyncExternalEvent@48f1c5e7) ...
25-5-17 10:16:38.931 | ActionFileHandl | Test worker    | INFO : Starting action for RemoteFile[name=action-down-B-1495707398910] ...
25-5-17 10:16:38.931 | ActionFileHandl | Test worker    | INFO : Uploading action file: RemoteFile[name=action-down-B-1495707398910]
25-5-17 10:16:38.931 | ActionFileHandl | Test worker    | INFO : Scheduling action renewal task for every 2 minutes, for RemoteFile[name=action-down-B-1495707398910] ...
25-5-17 10:16:38.932 | DownOperation   | Test worker    | INFO : Downloading unknown databases.
25-5-17 10:16:38.932 | DownOperation   | Test worker    | INFO : - Downloading database-A-0000000001 to local cache at /tmp/syncanytest/syncany-170525101614951-62348-client-B/.syncany/cache/database-A-0000000001
25-5-17 10:16:38.932 | InternalEventBu | Test worker    | INFO : Event bus 'LocalEventBus': Posting event DownDownloadFileSyncExternalEvent (org.syncany.operations.daemon.messages.DownDownloadFileSyncExternalEvent@1bc72d1d) ...
25-5-17 10:16:38.932 | DownOperation   | Test worker    | INFO : Loading database headers, creating branches ...
25-5-17 10:16:38.932 | DatabaseXmlSeri | Test worker    | INFO : - Loading database (HEADER_ONLY) from file /tmp/syncanytest/syncany-170525101614951-62348-client-B/.syncany/cache/database-A-0000000001 ...
25-5-17 10:16:38.934 | DatabaseXmlPars | Test worker    | INFO :    + Added database version A/(A1)/T=1495707398328
25-5-17 10:16:38.936 | LocalTransferMa | Test worker    | INFO : Cannot create instance of CleanupRemoteFile for file /tmp/syncanytest/syncany-170525101614951-62348-repo/databases/database-B-0000000001; maybe invalid file name pattern. Ignoring file.
25-5-17 10:16:38.936 | LocalTransferMa | Test worker    | INFO : Cannot create instance of CleanupRemoteFile for file /tmp/syncanytest/syncany-170525101614951-62348-repo/databases/database-A-0000000001; maybe invalid file name pattern. Ignoring file.
25-5-17 10:16:38.936 | ApplicationSqlD | Test worker    | INFO : SQL (general_settings): Read cleanupNumber  = (not set)
25-5-17 10:16:38.937 | DownOperation   | Test worker    | INFO : Populated unknown branches: {A=[A/(A1)/T=1495707398328], B=[B/(B1)/T=1495707398852]}
25-5-17 10:16:38.937 | DownOperation   | Test worker    | INFO : Determine winner using database reconciliator ...
25-5-17 10:16:38.937 | DatabaseReconci | Test worker    | INFO : Adding database version to winning branch: A/(A1)/T=1495707398328
25-5-17 10:16:38.937 | DatabaseReconci | Test worker    | INFO : Ignoring databaseVersion: B/(B1)/T=1495707398852
25-5-17 10:16:38.937 | DatabaseReconci | Test worker    | INFO : - Winner is A with branch: 
25-5-17 10:16:38.937 | DatabaseReconci | Test worker    | INFO :   + A/(A1)/T=1495707398328
25-5-17 10:16:38.937 | DownOperation   | Test worker    | INFO : - Database versions to REMOVE locally: [B/(B1)/T=1495707398852]
25-5-17 10:16:38.937 | DownOperation   | Test worker    | INFO :   + Marking databases as DIRTY locally ...
25-5-17 10:16:38.937 | DownOperation   | Test worker    | INFO :     * MASTER->DIRTY: B/(B1)/T=1495707398852
25-5-17 10:16:38.941 | DownOperation   | Test worker    | INFO :     * Deleting own remote database file RemoteFile[name=database-B-0000000001] ...
25-5-17 10:16:38.941 | DatabaseReconci | Test worker    | INFO : Finding winnersApplyBranch.
25-5-17 10:16:38.941 | DatabaseReconci | Test worker    | INFO : Losers Branch: [B/(B1)/T=1495707398852]
25-5-17 10:16:38.941 | DatabaseReconci | Test worker    | INFO : Winners Branch: [A/(A1)/T=1495707398328]
25-5-17 10:16:38.941 | DownOperation   | Test worker    | INFO : - Cleanup occurred: false
25-5-17 10:16:38.942 | DownOperation   | Test worker    | INFO : - Database versions to APPLY locally: [A/(A1)/T=1495707398328]
25-5-17 10:16:38.942 | DownOperation   | Test worker    | INFO : Loading winners database (DEFAULT) ...
25-5-17 10:16:38.942 | DatabaseXmlSeri | Test worker    | INFO : - Loading database (FULL) from file /tmp/syncanytest/syncany-170525101614951-62348-client-B/.syncany/cache/database-A-0000000001 ...
25-5-17 10:16:38.943 | DatabaseXmlPars | Test worker    | INFO :    + Added database version A/(A1)/T=1495707398328
25-5-17 10:16:38.944 | DownOperation   | Test worker    | INFO : Determine file system actions ...
25-5-17 10:16:38.944 | DatabaseConnect | Test worker    | INFO : Found 12 tables.
25-5-17 10:16:38.947 | FileSystemActio | Test worker    | INFO : - Loading current file tree...
25-5-17 10:16:38.947 | FileSystemActio | Test worker    | INFO : - Determine filesystem actions ...
25-5-17 10:16:38.947 | FileSystemActio | Test worker    | INFO :   + Comparing local version: null
25-5-17 10:16:38.947 | FileSystemActio | Test worker    | INFO :     with winning version   : FileVersion [version=1, path=A-file1.jpg, type=FILE, status=NEW, size=1048576, lastModified=Thu May 25 10:16:38 UTC 2017, linkTarget=null, checksum=7edcac250cf9fd7b1f930a7f33b6fd9cd96af7fa, updated=Thu May 25 10:16:38 UTC 2017, posixPermissions=rw-rw-r--, dosAttributes=--a-]
25-5-17 10:16:38.961 | FileSystemActio | Test worker    | INFO :      -> (1) Equals: Nothing to do, winning version equals winning file: FileVersion [version=1, path=A-file1.jpg, type=FILE, status=NEW, size=1048576, lastModified=Thu May 25 10:16:38 UTC 2017, linkTarget=null, checksum=7edcac250cf9fd7b1f930a7f33b6fd9cd96af7fa, updated=Thu May 25 10:16:38 UTC 2017, posixPermissions=rw-rw-r--, dosAttributes=--a-] AND /tmp/syncanytest/syncany-170525101614951-62348-client-B/A-file1.jpg
25-5-17 10:16:38.961 | Downloader      | Test worker    | INFO : Downloading and extracting multichunks ...
25-5-17 10:16:38.961 | FileSystemActio | Test worker    | INFO :    Sorted actions:
25-5-17 10:16:38.961 | DownOperation   | Test worker    | FINE : - Applying file system actions (sorted!) ...
25-5-17 10:16:38.961 | DownOperation   | Test worker    | INFO : - Adding database versions to SQL database ...
25-5-17 10:16:38.961 | DownOperation   | Test worker    | INFO :   + Applying database version (A1)
25-5-17 10:16:38.961 | DownOperation   | Test worker    | FINE :   + Contents: DatabaseVersion [header=A/(A1)/T=1495707398328, chunks=2, multiChunks=1, fileContents=1, fileHistories=1]
25-5-17 10:16:38.998 | ActionFileHandl | Test worker    | INFO : Finishing action for RemoteFile[name=action-down-B-1495707398910] ...
25-5-17 10:16:39.001 | ActionFileHandl | Test worker    | INFO : Deleting action file: RemoteFile[name=action-down-B-1495707398910]
25-5-17 10:16:39.001 | AbstractTransfe | Test worker    | INFO : Cleaning own old action files ...
25-5-17 10:16:39.002 | Cache           | Test worker    | INFO : Cache size okay (1027 KB), no need to clean (keep size is 500 MB)
25-5-17 10:16:39.002 | InternalEventBu | Test worker    | INFO : Event bus 'LocalEventBus': Posting event DownEndSyncExternalEvent (org.syncany.operations.daemon.messages.DownEndSyncExternalEvent@546a6e1) ...
25-5-17 10:16:39.002 | DownOperation   | Test worker    | INFO : Sync down done.
25-5-17 10:16:39.003 | DatabaseConnect | Test worker    | INFO : Found 12 tables.
25-5-17 10:16:39.004 | DatabaseConnect | Test worker    | INFO : Found 12 tables.
25-5-17 10:16:39.007 | DatabaseConnect | Test worker    | INFO : Found 12 tables.
25-5-17 10:16:39.008 | DatabaseConnect | Test worker    | INFO : Found 12 tables.
25-5-17 10:16:39.044 | TestAssertUtil  | Test worker    | FINE :  Comparing database table: select CHECKSUM, DATABASEVERSION_ID, SIZE from chunk order by CHECKSUM asc