hkeebler commented on a change in pull request #1206: Fix #1181 Update
MasterMetadataUtil to use new Ample api
URL: https://github.com/apache/accumulo/pull/1206#discussion_r294415025
##########
File path:
server/base/src/main/java/org/apache/accumulo/server/metadata/TabletMutatorBase.java
##########
@@ -95,6 +95,21 @@ protected TabletMutatorBase(ServerContext ctx, KeyExtent
extent) {
return this;
}
+ @Override
+ public Ample.TabletMutator putFlushId(long flushId) {
+ Preconditions.checkState(updatesEnabled, "Cannot make updates after
calling mutate.");
+ TabletsSection.ServerColumnFamily.FLUSH_COLUMN.put(mutation,
+ new Value(("" + flushId).getBytes()));
+ return this;
+ }
+
+ @Override
+ public Ample.TabletMutator putTime(String time) {
+ Preconditions.checkState(updatesEnabled, "Cannot make updates after
calling mutate.");
+ TabletsSection.ServerColumnFamily.TIME_COLUMN.put(mutation, new
Value(time.getBytes()));
Review comment:
I'm cleaning up all of these to use the String (or CharSequence) version of
Value() based on
@keith-turner recommendation.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services