keith-turner commented on code in PR #4751:
URL: https://github.com/apache/accumulo/pull/4751#discussion_r1688748326
##########
server/tserver/src/main/java/org/apache/accumulo/tserver/tablet/Tablet.java:
##########
@@ -1631,61 +1641,68 @@ public TreeMap<KeyExtent,TabletData> split(byte[] sp)
throws IOException {
Map<TabletFile,FileUtil.FileInfo> firstAndLastRows =
FileUtil.tryToGetFirstAndLastRows(context,
tableConfiguration, getDatafileManager().getFiles());
- synchronized (this) {
- // java needs tuples ...
- TreeMap<KeyExtent,TabletData> newTablets = new TreeMap<>();
+ // This must be acquired before the tablet lock AND completeClose expects
it to be acquired when
+ // called.
+ var lock = lockLogLock();
+ try {
+ synchronized (this) {
Review Comment:
All of the changes in this code block are whitespace changes because of the
addition of a try block.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]