Skip to content

Commit bcb399a

Browse files
committed
Change length of recordValue to 2047 to accomodate one extra byte for storing length of string.
1 parent 5045f60 commit bcb399a

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
----------------------------------------------------------------
2+
Thu Mar 09 10:21:10 PST 2023:
3+
Booting Derby version The Apache Software Foundation - Apache Derby - 10.10.2.0 - (1582446): instance a816c00e-0186-c79b-0231-00001df23cd8
4+
on database directory memory:/Users/sdzinama/dev/hadooptree/simbatrunk/hadoop-hdfs-project/hadoop-hdfs-rbf/StateStore with class loader sun.misc.Launcher$AppClassLoader@18b4aac2
5+
Loaded from file:/Users/sdzinama/.m2/repository/org/apache/derby/derby/10.10.2.0/derby-10.10.2.0.jar
6+
java.vendor=Oracle Corporation
7+
java.runtime.version=1.8.0_172-b11
8+
user.dir=/Users/sdzinama/dev/hadooptree/simbatrunk/hadoop-hdfs-project/hadoop-hdfs-rbf
9+
os.name=Mac OS X
10+
os.arch=x86_64
11+
os.version=10.16
12+
derby.system.home=null
13+
Database Class Loader started - derby.database.classpath=''
14+
----------------------------------------------------------------
15+
Thu Mar 09 10:21:14 PST 2023:
16+
Shutting down instance a816c00e-0186-c79b-0231-00001df23cd8 on database directory memory:/Users/sdzinama/dev/hadooptree/simbatrunk/hadoop-hdfs-project/hadoop-hdfs-rbf/StateStore with class loader sun.misc.Launcher$AppClassLoader@18b4aac2

hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/store/driver/impl/StateStoreMySQLImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public <T extends BaseRecord> boolean initRecordStorage(String className, Class<
103103
Statement statement = connection.createStatement()) {
104104
String sql = String.format("CREATE TABLE %s ("
105105
+ "recordKey VARCHAR (255) NOT NULL,"
106-
+ "recordValue VARCHAR (2048) NOT NULL, "
106+
+ "recordValue VARCHAR (2047) NOT NULL, "
107107
+ "PRIMARY KEY(recordKey))", tableName);
108108
statement.execute(sql);
109109
return true;

0 commit comments

Comments
 (0)