Skip to content

Commit 8fcdbe3

Browse files
authored
Merge pull request #11 from SAP/develop
Fix minor issues
2 parents ba07768 + ca8d8bf commit 8fcdbe3

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

commercedbsync/project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ migration.data.tables.custom=
377377
# @values comma separated list of table names.
378378
# @optional true
379379
##
380-
migration.data.tables.excluded=SYSTEMINIT,StoredHttpSessions,itemdeletionmarkers
380+
migration.data.tables.excluded=SYSTEMINIT,StoredHttpSessions,itemdeletionmarkers,tasks_aux_queue,tasks_aux_scheduler,tasks_aux_workers
381381
##
382382
# Tables to include (use table names name without prefix)
383383
#

commercedbsync/src/com/sap/cx/boosters/commercedbsync/service/impl/BlobDatabaseMigrationReportStorageService.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import org.slf4j.LoggerFactory;
2222

2323
import java.io.ByteArrayInputStream;
24+
import java.io.ByteArrayOutputStream;
2425
import java.io.InputStream;
2526
import java.util.ArrayList;
2627
import java.util.List;
@@ -81,9 +82,9 @@ public byte[] getReport(String reportId) throws Exception {
8182
checkReportIdValid(reportId);
8283
final String containerName = migrationContext.getFileStorageContainerName();
8384
CloudBlob blob = cloudBlobClient.getContainerReference(containerName).getBlobReferenceFromServer(reportId);
84-
byte[] output = new byte[blob.getStreamWriteSizeInBytes()];
85-
blob.downloadToByteArray(output, 0);
86-
return output;
85+
ByteArrayOutputStream result = new ByteArrayOutputStream();
86+
blob.download(result);
87+
return result.toByteArray();
8788
}
8889

8990
private void checkReportIdValid(String reportId) {

docs/user/USER-GUIDE-DATA-MIGRATION.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Before you begin, ensure you have met the following requirements:
2929
* The connectivity to the source database from SAP Commerce Cloud happens via a secured channel, such as the self-serviced VPN that can be created in SAP Commerce Cloud Portal. It is obligatory, and the customer's responsibility, to secure the data transmission
3030
* Old type systems have been deleted in the source system
3131
* A check for duplicates has been performed and existing duplicates in the source database have been removed
32-
* The task engine has been disabled in all target nodes (cronjob.timertask.loadonstartup=false)
32+
* The task engine has been disabled in all target nodes (task.engine.loadonstartup=false)
3333

3434

3535
# Limitations
@@ -49,7 +49,7 @@ Add the following extensions to your localextensions.xml:
4949

5050
> **NOTE**: For SAP Commerce Cloud make sure the extensions are actually being loaded by the manifest.json
5151
52-
Make sure you add the source db driver to **commercedbsync/lib** if necessary.
52+
Make sure you add the source/target DB driver to **commercedbsync/lib** if necessary. Use _external-dependencies.xml_ file for this, as 3rd party dependencies are managed by Maven.
5353

5454
## Configure the extensions
5555
Configure the extensions as needed in your **local.properties**. See the [Property Configuration Reference](../configuration/CONFIGURATION-REFERENCE.md).

0 commit comments

Comments
 (0)