This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch 4.15
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.15 by this push:
     new 72f6612  server: Increase max length for VMInstanceVO.backupVolumes 
(#4967)
72f6612 is described below

commit 72f6612971a80f1b87d0a4c9d9d93047cb1af7c1
Author: Olivier Lemasle <[email protected]>
AuthorDate: Fri Apr 30 08:27:56 2021 +0200

    server: Increase max length for VMInstanceVO.backupVolumes (#4967)
    
    The default length is 255, which caused a truncation of data if
    the JSON object representing the backup volumes is too big.
    It caused errors when backups were made on VMs with 3 volumes
    or more.
    
    `vm_instance.backup_volumes` has the type TEXT, which has a
    maximal length of 65535 characters.
    
    Fixes #4965
---
 engine/schema/src/main/java/com/cloud/vm/VMInstanceVO.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/engine/schema/src/main/java/com/cloud/vm/VMInstanceVO.java 
b/engine/schema/src/main/java/com/cloud/vm/VMInstanceVO.java
index 5c81e55..84f1d85 100644
--- a/engine/schema/src/main/java/com/cloud/vm/VMInstanceVO.java
+++ b/engine/schema/src/main/java/com/cloud/vm/VMInstanceVO.java
@@ -200,7 +200,7 @@ public class VMInstanceVO implements VirtualMachine, 
FiniteStateObject<State, Vi
     @Column(name = "backup_external_id")
     protected String backupExternalId;
 
-    @Column(name = "backup_volumes")
+    @Column(name = "backup_volumes", length = 65535)
     protected String backupVolumes;
 
     public VMInstanceVO(long id, long serviceOfferingId, String name, String 
instanceName, Type type, Long vmTemplateId, HypervisorType hypervisorType, long 
guestOSId,

Reply via email to