aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-migration/src
diff options
context:
space:
mode:
authorEric Hartmann <hartmann.eric@gmail.com>2017-06-29 21:41:53 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-07-05 21:02:58 +0200
commit4b08d04bb8db93c40fa7cffe05ed51dbdac4b81d (patch)
treea2955745a2aad070de89638bb1e22f83288ce8a6 /server/sonar-db-migration/src
parentcd5bbe9a4d96efc6e6371436645de9a1d72c6f78 (diff)
downloadsonarqube-4b08d04bb8db93c40fa7cffe05ed51dbdac4b81d.tar.gz
sonarqube-4b08d04bb8db93c40fa7cffe05ed51dbdac4b81d.zip
SONAR-9480 make WS operations on rules resilient to Elasticsearch errors
Diffstat (limited to 'server/sonar-db-migration/src')
-rw-r--r--server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v65/CreateEsQueueTable.java4
-rw-r--r--server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v65/CreateEsQueueTableTest.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v65/CreateEsQueueTable.java b/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v65/CreateEsQueueTable.java
index a8e8bc70bc9..78eaf82f6f5 100644
--- a/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v65/CreateEsQueueTable.java
+++ b/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v65/CreateEsQueueTable.java
@@ -49,9 +49,9 @@ public class CreateEsQueueTable extends DdlChange {
.setLimit(40)
.build())
.addColumn(VarcharColumnDef.newVarcharColumnDefBuilder()
- .setColumnName("doc_uuid")
+ .setColumnName("doc_id")
.setIsNullable(false)
- .setLimit(255)
+ .setLimit(4000)
.build())
.addColumn(BigIntegerColumnDef.newBigIntegerColumnDefBuilder()
.setColumnName("created_at")
diff --git a/server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v65/CreateEsQueueTableTest.java b/server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v65/CreateEsQueueTableTest.java
index 23a950006f5..aa8603a17e1 100644
--- a/server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v65/CreateEsQueueTableTest.java
+++ b/server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v65/CreateEsQueueTableTest.java
@@ -48,7 +48,7 @@ public class CreateEsQueueTableTest {
db.assertColumnDefinition(TABLE, "uuid", Types.VARCHAR, 40, false);
db.assertColumnDefinition(TABLE, "doc_type", Types.VARCHAR, 40, false);
- db.assertColumnDefinition(TABLE, "doc_uuid", Types.VARCHAR, 255, false);
+ db.assertColumnDefinition(TABLE, "doc_id", Types.VARCHAR, 4000, false);
db.assertColumnDefinition(TABLE, "created_at", Types.BIGINT, null, false);
}
}